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 847FAAC1683 for ; Wed, 27 Mar 2024 14:00:47 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=sOUH6zuLePbHKQgnMKRJMVujfnh/qEA0+e2DLZZUCbM=; 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:Resent-Date:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20240206; t=1711548046; v=1; b=LY4+rRe8fxmbS3lkRn/QKyGRDqIv3cKmduZYNw2ZXtxaWSfmT3IHahvElIR0lzescoUS73i6 hiu2ehJ04q78+MxBvEmL6dmTaUMEP3lSomEt/A+vGWBkVN68dJfKm/x7HHLR4ZBNENS49E/uOVu +Z9XLaE6bZgxn5pOaGIi0BtASPuM3uc8PdGVIWsEywyBzhl3xZcDVxkm2RypQjpi5VygCxdt8No xjSOdi6alCHXQN48EqXxYZXSe0HXiMlfB/4z9KTBpRFmHskMWMb5LMi33cbLFbORRs2B0/wXCpl iWWsjDl4Yf/8phQCJTAs00HqRTxlAsyIA9tGpyNH43Nzw== X-Received: by 127.0.0.2 with SMTP id 7pTwYY7687511xuLQ36DQV6b; Wed, 27 Mar 2024 07:00:46 -0700 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.38382.1711548042510981704 for ; Wed, 27 Mar 2024 07:00:44 -0700 X-Received: from prodtpl.icoremail.net (unknown [10.12.1.20]) by hzbj-icmmx-7 (Coremail) with SMTP id AQAAfwAHKXCGJgRmGRIXEA--.13429S2; Wed, 27 Mar 2024 22:00:38 +0800 (CST) X-Received: from phytium.com.cn (unknown [218.76.62.144]) by mail (Coremail) with SMTP id AQAAfwCXIfGBJgRmpXcAAA--.533S3; Wed, 27 Mar 2024 22:00:33 +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 v3 0/1] Add support for generating SRAT tables Date: Wed, 27 Mar 2024 13:59:33 +0000 Message-Id: <20240327135934.3802327-1-xiongyining1480@phytium.com.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAfwCXIfGBJgRmpXcAAA--.533S3 X-CM-SenderInfo: x0lr0wp1lqx0bjrumio6sk53xlxphulrpou0/1tbiAQARBmYDI2QFKwACsY X-Coremail-Antispam: 1Uk129KBjvJXoW7Ww4DWFWUZFWfuw1kur1Dtrb_yoW8XFyxpF 4IkFn09r1DKryxCrsxJw1xZw1rWF1fWF4DGrZxur1DZw43WFW0vrWxtr1kuF1DGr97Zw1D ua1Igw1UuF1kC3DanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj DUYxn0WfASr-VFAU7a7-sFnT9fnUUIcSsGvfJ3UbIYCTnIWIevJa73UjIFyTuYvj4RJUUU UUUUU 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 Resent-Date: Wed, 27 Mar 2024 07:00:44 -0700 Reply-To: devel@edk2.groups.io,xiongyining1480@phytium.com.cn List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: PtWAXJL6SALn9ZWPAHyepqbox7686176AA= Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=LY4+rRe8; 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 v3: - Rename SbsaQemuHardwareInfoLib to HardwareInfoLib and use newer function names. - modify the condition for creating SRAT tables from node greater than 0 to node greater than 1 because we think it's UMA architecture when node is equal to 1. - Link to v2: https://openfw.io/edk2-devel/20240220074736.3249691-1-xiongyining1480@phytium.com.cn/ 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/HardwareInfoLib.h | 10 ++ .../Drivers/SbsaQemuAcpiDxe/SbsaQemuAcpiDxe.c | 92 +++++++++++++++++++ .../SbsaQemuHardwareInfoLib.c | 36 ++++++++ 4 files changed, 165 insertions(+) -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#117166): https://edk2.groups.io/g/devel/message/117166 Mute This Topic: https://groups.io/mt/105177555/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-