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 <xiongyining1...@phytium.com.cn> 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/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-