From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail04.groups.io (mail04.groups.io [45.79.224.9]) by spool.mail.gandi.net (Postfix) with ESMTPS id 196C7AC0D88 for ; Wed, 17 Apr 2024 11:27:52 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=i/No76dOjPV8m7HqNZC9xPS35OaPBteeZEl2MBjTqro=; 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:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20240206; t=1713353271; v=1; b=IcyospocHckPd0WVh2vhY+SGaF/4a1WQn7RzP3BZCkYYFXGsIQ0P1S6UFlnKP6+5H07G/kOX rpeVd76SWmuw2apzzQ1mx70902hR8utwOtfbm5xuH/30WfZIPFd14veO3sSkmCbWB7MylpcFhtV 0lNK0HrvwTOq6RMZEaeGA0VXWteOMBmMY8A7gohqfVOSo0E+VS1cX+g6ysYGiqwJdcMRDa/CBLm APBSSoaNzUjWp8+ow8mSgHKfcQ3u62J3Jhj6bldFH8H92etkE1UzrABhNekYH3fJp/nZRCkrm+1 gVzAqJml2f3tM7wqpJTQtM1T+hmH1vE0k0sG8KfFEU9eQ== X-Received: by 127.0.0.2 with SMTP id zrV2YY7687511xg0CbZdEpD6; Wed, 17 Apr 2024 04:27:51 -0700 X-Received: from zg8tmja5ljk3lje4ms43mwaa.icoremail.net (zg8tmja5ljk3lje4ms43mwaa.icoremail.net [209.97.181.73]) by mx.groups.io with SMTP id smtpd.web10.10403.1713353270835945908 for ; Wed, 17 Apr 2024 04:27:51 -0700 X-Received: from prodtpl.icoremail.net (unknown [10.12.1.20]) by hzbj-icmmx-7 (Coremail) with SMTP id AQAAfwAHD0cksh9mpElLEw--.13849S2; Wed, 17 Apr 2024 19:27:32 +0800 (CST) X-Received: from phytium.com.cn (unknown [218.76.62.144]) by mail (Coremail) with SMTP id AQAAfwDneaMdsh9mcowAAA--.1062S3; Wed, 17 Apr 2024 19:27:25 +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 0/2] Align the PPTT tables with qemu configuration Date: Wed, 17 Apr 2024 11:26:32 +0000 Message-Id: <20240417112634.120633-1-xiongyining1480@phytium.com.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAfwDneaMdsh9mcowAAA--.1062S3 X-CM-SenderInfo: x0lr0wp1lqx0bjrumio6sk53xlxphulrpou0/1tbiAQASBmYe0uQEdQADsp X-Coremail-Antispam: 1Uk129KBjvdXoW7Jr18Wr48Zw1fCF45AF4DXFb_yoWkKFg_ur srX3ySqw40qF47KFWYgFWfJryrAay0kr18C3Z8twn8KryfAws8Gw1kJay3A3W8Xw15KFy3 WF4qyr1fA3Z7WjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8wcxFpf9Il3svdxBIdaVrnU 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 Resent-Date: Wed, 17 Apr 2024 04:27:51 -0700 Resent-From: xiongyining1480@phytium.com.cn Reply-To: devel@edk2.groups.io,xiongyining1480@phytium.com.cn List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: e5BoAIXAhPCzAEQ8DkAlxHynx7686176AA= 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=Icyospoc; dmarc=none; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.9 as permitted sender) smtp.mailfrom=bounce@groups.io To align the CPU topology information recognized by the operating system with the CPU topology information configured by QEMU, we need to get the information of topology to have complex PPTT tables setups. When creating the pptt table, we considered the cluster layer, SBSA Reference Platform has cluster support on qemu https://lists.gnu.org/archive/html/qemu-devel/2024-03/msg02951.html. We use the SMC to get CPU topology information, the TF-A part is here https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/27189. Signed-off-by: Xiong Yining Xiong Yining (2): Platform/SbsaQemu: get the information of CPU topology via SMC calls Silicon/SbsaQemu: align the PPTT tables with qemu configuration .../Drivers/SbsaQemuAcpiDxe/SbsaQemuAcpiDxe.h | 12 ++ .../Include/IndustryStandard/SbsaQemuAcpi.h | 32 ---- .../Include/IndustryStandard/SbsaQemuSmc.h | 1 + .../Include/Library/HardwareInfoLib.h | 26 ++++ .../Drivers/SbsaQemuAcpiDxe/SbsaQemuAcpiDxe.c | 140 +++++++++++++----- .../SbsaQemuHardwareInfoLib.c | 33 +++++ 6 files changed, 174 insertions(+), 70 deletions(-) -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#117916): https://edk2.groups.io/g/devel/message/117916 Mute This Topic: https://groups.io/mt/105575037/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-