From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id CCCFAAC124F for ; Wed, 21 Feb 2024 13:22:30 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=1DPXZFHUfkbnSgrEDJ/IulnMph7KhTmMueOhaSa/bwU=; c=relaxed/simple; d=groups.io; h=Message-ID:Date:MIME-Version:User-Agent:Subject:To:References:From:Organization:In-Reply-To:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20140610; t=1708521749; v=1; b=RmlGYBQ4HNqdS8PRzfNVrVYlAVK6pvOixQmfaLP3ciU1HfkDYGYs5hkbm3uv9f3VIgdNXssW CIEIarPTeqKJ2QBFyv9prpXRO2plPly48PZQS3chh065nOqqMfgAWyLEz0oxHRorWYHUvocJBGP rAOP/rVIUuhQzNR0sACWC/co= X-Received: by 127.0.0.2 with SMTP id lvDhYY7687511x3eOCt9TE3j; Wed, 21 Feb 2024 05:22:29 -0800 X-Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) by mx.groups.io with SMTP id smtpd.web11.12582.1708521748588309954 for ; Wed, 21 Feb 2024 05:22:28 -0800 X-Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-a3f48422fb6so81995766b.3 for ; Wed, 21 Feb 2024 05:22:28 -0800 (PST) X-Gm-Message-State: HXlpXDhKiFXXQZNT9pG1oG2Jx7686176AA= X-Google-Smtp-Source: AGHT+IFiLWNQ5wJt9Kp6fVgdXukeLqsOpkh/eGDrxwfGFFtxC40yoIFF2OP6iwz+TrjaYiod0kTAWw== X-Received: by 2002:a17:906:34c3:b0:a3e:b407:65ab with SMTP id h3-20020a17090634c300b00a3eb40765abmr5108061ejb.50.1708521746561; Wed, 21 Feb 2024 05:22:26 -0800 (PST) X-Received: from [192.168.200.106] (83.11.4.146.ipv4.supernova.orange.pl. [83.11.4.146]) by smtp.gmail.com with ESMTPSA id lg13-20020a170906f88d00b00a3f0dbdf106sm1383081ejb.105.2024.02.21.05.22.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 21 Feb 2024 05:22:26 -0800 (PST) Message-ID: Date: Wed, 21 Feb 2024 14:22:25 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [edk2-devel] [PATCH 1/1] SbsaQemu: AcpiDxe: Create SRAT table at runtime To: devel@edk2.groups.io, xiongyining1480@phytium.com.cn References: <408b0a68-216b-4232-ae4f-6db71924c662@linaro.org> <10410.1708416193840628556@groups.io> From: "Marcin Juszkiewicz" Organization: Linaro In-Reply-To: <10410.1708416193840628556@groups.io> Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,marcin.juszkiewicz@linaro.org List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Language: pl-PL, en-GB, en-HK Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=RmlGYBQ4; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=linaro.org (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io W dniu 20.02.2024 o 9:03 AM, Xiong Yining pisze: > This is beacuse UEFI only allocates the first memory node memory space > for SbsaQemu platform,  i refer to implemet of "OvmfPkg/Fdt/HighMemDxe" > and add the support for other memory nodes via GCD services. Maybe you > can apply patch "support multi memory nodes" together with this patch. Collected patches: 6ea06a5ae4c9 (tag: multi-node-v3) SbsaQemu: add memory space for the high memory nodes 6cad2691e06e (tag: srat-v2) SbsaQemu: AcpiDxe: Create SRAT table at runtime 86c5fc908bd4 Platform/SbsaQemu: add DeviceTree fallbacks to parse memory information a2e8ffb1e046 Platform/SbsaQemu: get the information of memory via SMC calls 6007fcaae876 Platform/SbsaQemu: hang if there is no cpu information dc9360e2e2c8 Platform/SbsaQemu: move FdtHandlerLib to SbsaQemuHardwareInfoLib 5a0a7fa00139 Platform/SbsaQemu: use PcdCoreCount directly 9bebc3a2a7b9 Platform/SbsaQemu: read amount of cpus during init e7ec1d2d346b (tag: nodt-v5) Platform/SbsaQemu: add SbsaQemuHardwareInfoLib And effect is nice. QEMU args: -smp 4,sockets=4,maxcpus=4 -m 4G,slots=2,maxmem=5G -object memory-backend-ram,size=1G,id=m0 -object memory-backend-ram,size=3G,id=m1 -numa node,nodeid=0,cpus=0-1,memdev=m0 -numa node,nodeid=1,cpus=2,memdev=m1 -numa node,nodeid=2,cpus=3 EDK2 reports 4GB ram, Linux gets 4GB ram too. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#115724): https://edk2.groups.io/g/devel/message/115724 Mute This Topic: https://groups.io/mt/104074353/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-