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 4CB0294127B for ; Tue, 20 Feb 2024 07:48:10 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=zh44iYPQeMulcd9/IMArczDFo3MKTw82scScxe1fiuY=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1708415288; v=1; b=kx24r4s3mIwwI5iqijTsxBy+DgmVIW9HaAwGH6TUYPMfV6C7O9Aa9OECKNc9+8/vSqAGicav 9x9czvat0zMT4AEqfMmgCcuoQPDTj3PPNGGJv0yJWmtpMcKonRgUEKk05xcUBZLNt6vl39DU1MA uIjTEg6dsn26hB0ueKZvbOJI= X-Received: by 127.0.0.2 with SMTP id fnl3YY7687511xGl6vytAxqU; Mon, 19 Feb 2024 23:48:08 -0800 X-Received: from sgoci-sdnproxy-4.icoremail.net (sgoci-sdnproxy-4.icoremail.net [129.150.39.64]) by mx.groups.io with SMTP id smtpd.web10.8650.1708415287131670814 for ; Mon, 19 Feb 2024 23:48:08 -0800 X-Received: from prodtpl.icoremail.net (unknown [10.12.1.20]) by hzbj-icmmx-7 (Coremail) with SMTP id AQAAfwB3fnozWdRlaZErCQ--.25535S2; Tue, 20 Feb 2024 15:48:03 +0800 (CST) X-Received: from phytium.com.cn (unknown [218.76.62.144]) by mail (Coremail) with SMTP id AQAAfwDneYUtWdRl2j8AAA--.298S3; Tue, 20 Feb 2024 15:47:57 +0800 (CST) From: "Xiong Yining" To: devel@edk2.groups.io Cc: quic_llindhol@quicinc.com, ardb+tianocore@kernel.org, graeme@xora.org.uk, marcin.juszkiewicz@linaro.org, chenbaozi@phytium.com.cn, Xiong Yining Subject: [edk2-devel] [PATCH v2 0/1] Add support for generating SRAT tables Date: Tue, 20 Feb 2024 07:47:35 +0000 Message-Id: <20240220074736.3249691-1-xiongyining1480@phytium.com.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAfwDneYUtWdRl2j8AAA--.298S3 X-CM-SenderInfo: x0lr0wp1lqx0bjrumio6sk53xlxphulrpou0/1tbiAQABBmXTrXETWwAAsk X-Coremail-Antispam: 1Uk129KBjvdXoWruF4Uuw4kAw4rXFy5WrW3Jrb_yoWkZFc_Ga n3A393Jw4vqF4kGayUtr13JrW8AFWrGw18Wa4fJw13KFyrArsxWF4DXw4fAw18Xa13Kw1f CFn5tr1fAw4IgjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8wcxFpf9Il3svdxBIdaVrnU Uv73VFW2AGmfu7jjvjm3AaLaJ3UjIYCTnIWjDUYxBIdaVFxhVjvjDU0xZFpf9x0zRUUUUU UUUU= 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,xiongyining1480@phytium.com.cn List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: SfhpSCCr1lAj59dLzohvsrI9x7686176AA= 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=kx24r4s3; dmarc=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 SbsaQemu can configure with numa-related arguments, but OS cannot identify the numa architecture without SRAT tables. We add supporting for generating SRAT tables at runtime to solve this issue. the numa-related information and memory information can be obtained via SMC calls which is provided on the EDK2 patch "get rid of DeviceTree from SbsaQemu" https://openfw.io/edk2-devel/20240131132400.3022662-1-xiongyining1480@phytium.com.cn/ when this patch is applied, there is only the first memory node can be identified by OS, this is because UEFI only allocates the first memory node memory space for SbsaQemu platform. we can use patch "Support multi memory nodes" to solve it. changes in v2: - fix the compile error which is caused by redundant "+" in SbsaQemuAcpiDxe.h. Xiong Yining (1): SbsaQemu: AcpiDxe: Create SRAT table at runtime .../Drivers/SbsaQemuAcpiDxe/SbsaQemuAcpiDxe.h | 27 ++++++ .../Include/Library/SbsaQemuHardwareInfoLib.h | 11 +++ .../Drivers/SbsaQemuAcpiDxe/SbsaQemuAcpiDxe.c | 92 +++++++++++++++++++ .../SbsaQemuHardwareInfoLib.c | 36 ++++++++ 4 files changed, 166 insertions(+) -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#115639): https://edk2.groups.io/g/devel/message/115639 Mute This Topic: https://groups.io/mt/104463804/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-