public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [edk2-devel] [PATCH v4 0/6] get rid of DeviceTree from SbsaQemu
@ 2024-01-31 10:00 Xiong Yining
  2024-01-31 10:00 ` [edk2-devel] [PATCH v4 1/6] Platform/SbsaQemu: read amount of cpus during init Xiong Yining
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Xiong Yining @ 2024-01-31 10:00 UTC (permalink / raw)
  To: devel
  Cc: quic_llindhol, ardb+tianocore, graeme, marcin.juszkiewicz,
	chenbaozi, 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 in v4.

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 callback of DeviceTree when SMC calls defined on patch 6 failled.
-replace FdtHelperGetMpidr() with SbsaQemuGetMpidr() on patch 4 to compile successfully.

Marcin Juszkiewicz (4):
  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

 .../Qemu/SbsaQemu/OemMiscLib/OemMiscLib.c     |  10 +-
 .../Qemu/SbsaQemu/OemMiscLib/OemMiscLib.inf   |   6 +-
 Platform/Qemu/SbsaQemu/SbsaQemu.dsc           |   1 -
 .../Drivers/SbsaQemuAcpiDxe/SbsaQemuAcpiDxe.c |  15 +-
 .../SbsaQemuAcpiDxe/SbsaQemuAcpiDxe.inf       |   4 +-
 .../SbsaQemuPlatformDxe/SbsaQemuPlatformDxe.c |   9 +-
 .../SbsaQemuPlatformDxe.inf                   |   4 +-
 .../Include/IndustryStandard/SbsaQemuSmc.h    |   2 +
 .../SbsaQemu/Include/Library/FdtHelperLib.h   |  36 ---
 .../Include/Library/SbsaQemuHardwareInfoLib.h |  28 ++
 .../Library/FdtHelperLib/FdtHelperLib.c       |  98 -------
 .../Library/FdtHelperLib/FdtHelperLib.inf     |  33 ---
 .../SbsaQemuHardwareInfoLib.c                 | 256 ++++++++++++++++++
 .../SbsaQemuHardwareInfoLib.inf               |   2 +
 .../Library/SbsaQemuLib/SbsaQemuLib.inf       |   2 +-
 .../Library/SbsaQemuLib/SbsaQemuMem.c         |  52 +---
 16 files changed, 321 insertions(+), 237 deletions(-)
 delete mode 100644 Silicon/Qemu/SbsaQemu/Include/Library/FdtHelperLib.h
 delete mode 100644 Silicon/Qemu/SbsaQemu/Library/FdtHelperLib/FdtHelperLib.c
 delete mode 100644 Silicon/Qemu/SbsaQemu/Library/FdtHelperLib/FdtHelperLib.inf

-- 
2.34.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#114870): https://edk2.groups.io/g/devel/message/114870
Mute This Topic: https://groups.io/mt/104072176/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-01-31 10:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-31 10:00 [edk2-devel] [PATCH v4 0/6] get rid of DeviceTree from SbsaQemu Xiong Yining
2024-01-31 10:00 ` [edk2-devel] [PATCH v4 1/6] Platform/SbsaQemu: read amount of cpus during init Xiong Yining
2024-01-31 10:00 ` [edk2-devel] [PATCH v4 2/6] Platform/SbsaQemu: use PcdCoreCount directly Xiong Yining
2024-01-31 10:00 ` [edk2-devel] [PATCH v4 3/6] Platform/SbsaQemu: move FdtHandlerLib to SbsaQemuHardwareInfoLib Xiong Yining
2024-01-31 10:00 ` [edk2-devel] [PATCH v4 4/6] Platform/SbsaQemu: hang if there is no cpu information Xiong Yining
2024-01-31 10:00 ` [edk2-devel] [PATCH v4 5/6] Platform/SbsaQemu: get the information of memory via SMC calls Xiong Yining
2024-01-31 10:00 ` [edk2-devel] [PATCH v4 6/6] Platform/SbsaQemu: add DeviceTree fallbacks to parse memory information Xiong Yining

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox