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 B0B4D740032 for ; Thu, 28 Mar 2024 06:20:06 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=EDqNvfbVPeyTaKCJthjzCLkIa4AY8X7mu4d6yCcTqOM=; 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=1711606805; v=1; b=IEoKY058MHLA0x95Q29wAeuVNN84Zr89wKkhANQBgTddks65NVDY6Q9+kfy8JKKry8iKDezk NF1Ugwkk2LEMaImNTjmXd4lPFnxVl2JxiM2CYVUtTXwGuG3St9uRdTQVSw1o5Kc7Y5g9oohYRbk 6zGVaarL46HhN1RP/5LgpavH7cv94m8hxiFH6jtWiB8n/Insl50Ajdm5G82SJxHc39ShdxTj1EQ HlLNbCFo6O+9+ht843Kc2Cx0W5Kra4sQ7pbNod4toy/oNtdVLtlQirjjCaA2O9HmwWr+QWwXu8W bHyXzjcyXw9uhUOxwMFiWCf443YbVF12w/N2fh65tKbHw== X-Received: by 127.0.0.2 with SMTP id mc4xYY7687511xAxE9dD7de1; Wed, 27 Mar 2024 23:20:05 -0700 X-Received: from zg8tmja5ljk3lje4ms43mwaa.icoremail.net (zg8tmja5ljk3lje4ms43mwaa.icoremail.net [209.97.181.73]) by mx.groups.io with SMTP id smtpd.web11.9417.1711606804174648423 for ; Wed, 27 Mar 2024 23:20:04 -0700 X-Received: from prodtpl.icoremail.net (unknown [10.12.1.20]) by hzbj-icmmx-6 (Coremail) with SMTP id AQAAfwAHDwsODAVmYnpXBw--.9801S2; Thu, 28 Mar 2024 14:19:58 +0800 (CST) X-Received: from phytium.com.cn (unknown [218.76.62.144]) by mail (Coremail) with SMTP id AQAAfwB3MS79CwVmDGMAAA--.1885S3; Thu, 28 Mar 2024 14:19:41 +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 v4 0/1] Add support for generating SRAT tables Date: Thu, 28 Mar 2024 06:19:34 +0000 Message-Id: <20240328061935.3810595-1-xiongyining1480@phytium.com.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAfwB3MS79CwVmDGMAAA--.1885S3 X-CM-SenderInfo: x0lr0wp1lqx0bjrumio6sk53xlxphulrpou0/1tbiAQARBmYDI2QGjAADs9 X-Coremail-Antispam: 1Uk129KBjvJXoW7Ww4DWFWUZFWfuw1kur1Dtrb_yoW8Ww45pF 4IkFn09r1DtryxCrsxJw1xZw1rWF4fXF4DGrZxW3WDZw43WFWjvr4xtr1vkF1DGrZ7A3Wk ua1Igw1j9F1kC3DanT9S1TB71UUUUUDqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj 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 23:20:04 -0700 Reply-To: devel@edk2.groups.io,xiongyining1480@phytium.com.cn List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: xpsw9UAaomWqKzhBarAafiiWx7686176AA= 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=IEoKY058; 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 v4: - rename variable names. - Link to v3 https://openfw.io/edk2-devel/20240327135934.3802327-1-xiongyining1480@phytium.com.cn/ 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 (#117193): https://edk2.groups.io/g/devel/message/117193 Mute This Topic: https://groups.io/mt/105192388/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-