* [edk2-devel] [PATCH v5 0/7] get rid of DeviceTree from SbsaQemu
@ 2024-01-31 13:24 Xiong Yining
0 siblings, 0 replies; only message in thread
From: Xiong Yining @ 2024-01-31 13:24 UTC (permalink / raw)
To: devel; +Cc: Xiong Yining
Many thanks to Marcin Juszkiewicz for his previous work on get rid of DeviceTree from
SbsaQemu https://openfw.io/edk2-devel/20240124-no-dt-for-cpu-v3-0-5375fcf09037@linaro.org/.
To stop the use of DeviceTree on the EDK2 , we add the support for getting the memory
information via SMC calls based on his patch.
TF-A part: https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/25891.
To be compatible with old TF-A, if the SMC calls failed, we can pase DeviceTree data
directly.
Changes in v4:
-patch 6 add the support for getting the hardware information of memory via SMC calls.
-patch 7 add the fallbacks of DeviceTree when SMC calls defined on patch 6 failled.
-replace FdtHelperGetMpidr() with SbsaQemuGetMpidr() on patch 4 to compile successfully.
Changes in v5:
-add the patch "Platform/SbsaQemu: add SbsaQemuHardwareInfoLib" provided by Marcin Juszkiewicz.
Marcin Juszkiewicz (5):
Platform/SbsaQemu: add SbsaQemuHardwareInfoLib
Platform/SbsaQemu: read amount of cpus during init
Platform/SbsaQemu: use PcdCoreCount directly
Platform/SbsaQemu: move FdtHandlerLib to SbsaQemuHardwareInfoLib
Platform/SbsaQemu: hang if there is no cpu information
Xiong Yining (2):
Platform/SbsaQemu: get the information of memory via SMC calls
Platform/SbsaQemu: add DeviceTree fallbacks to parse memory
information
Platform/Qemu/SbsaQemu/SbsaQemu.dsc | 4 +-
.../Qemu/SbsaQemu/OemMiscLib/OemMiscLib.inf | 6 +-
.../SbsaQemuAcpiDxe/SbsaQemuAcpiDxe.inf | 4 +-
.../SbsaQemuPlatformDxe.inf | 4 +-
.../Library/FdtHelperLib/FdtHelperLib.inf | 33 --
.../SbsaQemuHardwareInfoLib.inf | 34 ++
.../Library/SbsaQemuLib/SbsaQemuLib.inf | 2 +-
.../Include/IndustryStandard/SbsaQemuSmc.h | 17 +-
.../SbsaQemu/Include/Library/FdtHelperLib.h | 36 --
.../Include/Library/SbsaQemuHardwareInfoLib.h | 73 ++++
.../Qemu/SbsaQemu/OemMiscLib/OemMiscLib.c | 10 +-
.../Drivers/SbsaQemuAcpiDxe/SbsaQemuAcpiDxe.c | 15 +-
.../SbsaQemuPlatformDxe/SbsaQemuPlatformDxe.c | 9 +-
.../Library/FdtHelperLib/FdtHelperLib.c | 98 -----
.../SbsaQemuHardwareInfoLib.c | 354 ++++++++++++++++++
.../Library/SbsaQemuLib/SbsaQemuMem.c | 54 +--
16 files changed, 511 insertions(+), 242 deletions(-)
delete mode 100644 Silicon/Qemu/SbsaQemu/Library/FdtHelperLib/FdtHelperLib.inf
create mode 100644 Silicon/Qemu/SbsaQemu/Library/SbsaQemuHardwareInfoLib/SbsaQemuHardwareInfoLib.inf
delete mode 100644 Silicon/Qemu/SbsaQemu/Include/Library/FdtHelperLib.h
create mode 100644 Silicon/Qemu/SbsaQemu/Include/Library/SbsaQemuHardwareInfoLib.h
delete mode 100644 Silicon/Qemu/SbsaQemu/Library/FdtHelperLib/FdtHelperLib.c
create mode 100644 Silicon/Qemu/SbsaQemu/Library/SbsaQemuHardwareInfoLib/SbsaQemuHardwareInfoLib.c
--
2.34.1
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#114896): https://edk2.groups.io/g/devel/message/114896
Mute This Topic: https://groups.io/mt/104074475/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-01-31 13:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-31 13:24 [edk2-devel] [PATCH v5 0/7] get rid of DeviceTree from SbsaQemu Xiong Yining
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox