public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH v3 0/3] ArmPkg,MdePkg: Add Universal/Smbios and Drivers/VersionInfoPeim
@ 2020-11-11  0:17 Rebecca Cran
  2020-11-11  0:17 ` [PATCH v3 1/3] ArmPkg: Add ARM SMC Architecture functions to ArmStdSmc.h Rebecca Cran
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Rebecca Cran @ 2020-11-11  0:17 UTC (permalink / raw)
  To: devel
  Cc: Rebecca Cran, Leif Lindholm, Ard Biesheuvel, Michael D Kinney,
	Liming Gao, Zhiguang Liu

Much of the data for the SMBIOS tables is generic, and need not be
duplicated for each platform. This patch series introduces
ArmPkg/Universal/Smbios, which is largely copied from
edk2-platforms/Silicon/HiSilicon/Drivers/Smbios and generates SMBIOS
tables 0,1,2,3,4,713,32 and uses a combination of PCDs and calls into a
new OemMiscLib to get information which varies between platforms.

I plan to submit a patch against SbsaQemu to update it to use this new
functionality.

CHANGES FROM v2:

Fixed a bug in the processor characteristics handling.

Added new code to detect the cache size and architecture in a
generic way.

Removed various definitions from ArmLibPrivate.h that appear to be
obsolete.

Rebecca Cran (3):
  ArmPkg: Add ARM SMC Architecture functions to ArmStdSmc.h
  MdePkg: Update IndustryStandard/SmBios.h with processor status data
  ArmPkg: add Universal/Smbios as a generic SMBIOS library

 ArmPkg/ArmPkg.dec                             |  16 +
 .../VersionInfoPeim/VersionInfoPeim.inf       |  46 ++
 .../ProcessorSubClassDxe.inf                  |  55 ++
 .../Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf    |  89 +++
 ArmPkg/Include/Chipset/AArch64.h              |   4 +
 ArmPkg/Include/Guid/VersionInfoHobGuid.h      |  29 +
 ArmPkg/Include/IndustryStandard/ArmStdSmc.h   |  13 +
 ArmPkg/Include/Library/ArmLib.h               |   6 +
 ArmPkg/Include/Library/OemMiscLib.h           |  86 +++
 ArmPkg/Library/ArmLib/AArch64/AArch64Lib.h    |   6 +
 ArmPkg/Library/ArmLib/ArmLibPrivate.h         | 100 ++-
 .../ProcessorSubClassDxe/ProcessorSubClass.h  |  34 +
 .../Smbios/SmbiosMiscDxe/SmbiosMisc.h         | 217 ++++++
 MdePkg/Include/IndustryStandard/SmBios.h      |  13 +
 .../Drivers/VersionInfoPeim/VersionInfoPeim.c |  90 +++
 ArmPkg/Library/ArmLib/AArch64/AArch64Lib.c    |  15 +
 ArmPkg/Library/ArmLib/Arm/ArmV7Lib.c          |  17 +
 .../ProcessorSubClassDxe/ProcessorSubClass.c  | 723 ++++++++++++++++++
 .../SmbiosMiscDxe/SmbiosMiscDataTable.c       |  50 ++
 .../SmbiosMiscDxe/SmbiosMiscEntryPoint.c      | 167 ++++
 .../SmbiosMiscDxe/Type00/MiscBiosVendorData.c |  99 +++
 .../Type00/MiscBiosVendorFunction.c           | 232 ++++++
 .../Type01/MiscSystemManufacturerData.c       |  43 ++
 .../Type01/MiscSystemManufacturerFunction.c   | 171 +++++
 .../Type02/MiscBaseBoardManufacturerData.c    |  51 ++
 .../MiscBaseBoardManufacturerFunction.c       | 184 +++++
 .../Type03/MiscChassisManufacturerData.c      |  58 ++
 .../Type03/MiscChassisManufacturerFunction.c  | 182 +++++
 .../MiscNumberOfInstallableLanguagesData.c    |  39 +
 ...MiscNumberOfInstallableLanguagesFunction.c | 154 ++++
 .../Type32/MiscBootInformationData.c          |  41 +
 .../Type32/MiscBootInformationFunction.c      |  66 ++
 .../Library/ArmLib/AArch64/AArch64Support.S   |   3 +
 .../Library/ArmLib/AArch64/ArmLibSupportV8.S  |   2 +-
 ArmPkg/Library/ArmLib/Arm/ArmLibSupportV7.S   |   4 +
 ArmPkg/Library/ArmLib/Arm/ArmLibSupportV7.asm |   6 +-
 .../ProcessorSubClassStrings.uni              |  23 +
 .../SmbiosMiscDxe/SmbiosMiscLibString.uni     |  21 +
 .../SmbiosMiscDxe/Type00/MiscBiosVendor.uni   |  18 +
 .../Type01/MiscSystemManufacturer.uni         |  21 +
 .../Type02/MiscBaseBoardManufacturer.uni      |  21 +
 .../Type03/MiscChassisManufacturer.uni        |  18 +
 .../MiscNumberOfInstallableLanguages.uni      |  43 ++
 43 files changed, 3239 insertions(+), 37 deletions(-)
 create mode 100644 ArmPkg/Drivers/VersionInfoPeim/VersionInfoPeim.inf
 create mode 100644 ArmPkg/Universal/Smbios/ProcessorSubClassDxe/ProcessorSubClassDxe.inf
 create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf
 create mode 100644 ArmPkg/Include/Guid/VersionInfoHobGuid.h
 create mode 100644 ArmPkg/Include/Library/OemMiscLib.h
 create mode 100644 ArmPkg/Universal/Smbios/ProcessorSubClassDxe/ProcessorSubClass.h
 create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMisc.h
 create mode 100644 ArmPkg/Drivers/VersionInfoPeim/VersionInfoPeim.c
 create mode 100644 ArmPkg/Universal/Smbios/ProcessorSubClassDxe/ProcessorSubClass.c
 create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMiscDataTable.c
 create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMiscEntryPoint.c
 create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type00/MiscBiosVendorData.c
 create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type00/MiscBiosVendorFunction.c
 create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type01/MiscSystemManufacturerData.c
 create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type01/MiscSystemManufacturerFunction.c
 create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type02/MiscBaseBoardManufacturerData.c
 create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type02/MiscBaseBoardManufacturerFunction.c
 create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type03/MiscChassisManufacturerData.c
 create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type03/MiscChassisManufacturerFunction.c
 create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type13/MiscNumberOfInstallableLanguagesData.c
 create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type13/MiscNumberOfInstallableLanguagesFunction.c
 create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type32/MiscBootInformationData.c
 create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type32/MiscBootInformationFunction.c
 create mode 100644 ArmPkg/Universal/Smbios/ProcessorSubClassDxe/ProcessorSubClassStrings.uni
 create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMiscLibString.uni
 create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type00/MiscBiosVendor.uni
 create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type01/MiscSystemManufacturer.uni
 create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type02/MiscBaseBoardManufacturer.uni
 create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type03/MiscChassisManufacturer.uni
 create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type13/MiscNumberOfInstallableLanguages.uni

-- 
2.26.2


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

end of thread, other threads:[~2020-12-07 17:11 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-11  0:17 [PATCH v3 0/3] ArmPkg,MdePkg: Add Universal/Smbios and Drivers/VersionInfoPeim Rebecca Cran
2020-11-11  0:17 ` [PATCH v3 1/3] ArmPkg: Add ARM SMC Architecture functions to ArmStdSmc.h Rebecca Cran
2020-11-12 21:49   ` [edk2-devel] " Sami Mujawar
2020-11-19 12:00   ` Leif Lindholm
2020-11-11  0:17 ` [PATCH v3 2/3] MdePkg: Update IndustryStandard/SmBios.h with processor status data Rebecca Cran
2020-11-11  1:18   ` 回复: " gaoliming
2020-11-13 11:25   ` [edk2-devel] " Sami Mujawar
2020-11-19 12:05   ` Leif Lindholm
2020-11-11  0:17 ` [PATCH v3 3/3] ArmPkg: add Universal/Smbios as a generic SMBIOS library Rebecca Cran
2020-11-16 13:43   ` [edk2-devel] " Sami Mujawar
2020-11-17  3:27     ` Rebecca Cran
2020-11-19 12:58   ` Leif Lindholm
2020-12-07  4:59     ` Rebecca Cran
2020-12-07 17:11       ` Leif Lindholm

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