public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 00/10] SMBIOS improvements
@ 2024-08-16 15:46 Raymond Mao
  2024-08-16 15:46 ` [PATCH 01/10] sysinfo: Add sysinfo API for accessing data area Raymond Mao
                   ` (11 more replies)
  0 siblings, 12 replies; 40+ messages in thread
From: Raymond Mao @ 2024-08-16 15:46 UTC (permalink / raw)
  To: u-boot
  Cc: Raymond Mao, Tom Rini, Tuomas Tynkkynen, Heinrich Schuchardt,
	Ilias Apalodimas, Simon Glass, Bin Meng, Alper Nebi Yasak,
	Kever Yang, Jonas Karlman, Stefan Roese, Marek Behún,
	Wan Yee Lau, Caleb Connolly, Alexander Gendin, Michal Simek,
	Masahisa Kojima, Max Krummenacher, Francesco Dolcini,
	Sean Anderson, Oleksandr Suvorov, Peter Robinson

Motivations for changes:
Current SMBIOS library and command-line tool is not fully matching with
the requirements:
1. Missing support for other mandatory types (#7, #9, #16, #17, #19).
2. Only a few platforms support SMBIOS node from the device tree.
3. Values of some fields are hardcoded in the library other than fetching
   from the device hardware.
4. Embedded data with dynamic length is not supported (E.g. Contained
   Object Handles in Type #2 and Contained Elements in Type #3)

Changes:
1. Refactor the SMBIOS library and command-line tool to better align with
   the SMBIOS spec.
2. Create an arch-specific driver for all aarch64-based platforms to fetch
   SMBIOS private data from the device hardware.
3. Create a sysinfo driver to poppulate platform SMBIOS private data.
4. Put device tree SMBIOS node as a fallback solution when SMBIOS data is
   missing from sysinfo driver.
5. Add support for Type #7 (Cache Information) and link its handles to
   Type #4.

Once this patch is acceptted, subsequent patch sets will add other missing
types (#9, #16, #17, #19).

Raymond Mao (10):
  sysinfo: Add sysinfo API for accessing data area
  sysinfo: Add sysinfo driver and data structure for SMBIOS
  smbios: Refactor SMBIOS library
  smbios: ignore the non-existence of platform sysinfo detect
  armv8: Add arch-specific sysinfo driver
  sysinfo: Add sysinfo driver for SMBIOS type 7
  smbios: Add support to SMBIOS type 7
  armv8: Add sysinfo driver for cache information
  configs: Enable sysinfo for QEMU Arm64
  tests: update smbios pytest

 arch/arm/cpu/armv8/Makefile      |   5 +
 arch/arm/cpu/armv8/sysinfo.c     | 391 ++++++++++++++++++++++++++
 cmd/smbios.c                     | 350 ++++++++++++++++++++++-
 configs/qemu_arm64_defconfig     |   2 +
 drivers/misc/Kconfig             |   2 +-
 drivers/sysinfo/Makefile         |   1 +
 drivers/sysinfo/smbios_plat.c    | 442 +++++++++++++++++++++++++++++
 drivers/sysinfo/smbios_plat.h    | 131 +++++++++
 drivers/sysinfo/sysinfo-uclass.c |  20 ++
 include/smbios.h                 | 240 ++++++++++++++--
 include/sysinfo.h                | 124 ++++++++-
 lib/Makefile                     |   2 +
 lib/smbios.c                     | 461 ++++++++++++++++++++++++++-----
 test/py/tests/test_smbios.py     |   2 +-
 14 files changed, 2058 insertions(+), 115 deletions(-)
 create mode 100644 arch/arm/cpu/armv8/sysinfo.c
 create mode 100644 drivers/sysinfo/smbios_plat.c
 create mode 100644 drivers/sysinfo/smbios_plat.h

-- 
2.25.1


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

end of thread, other threads:[~2024-10-21 17:24 UTC | newest]

Thread overview: 40+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-16 15:46 [PATCH 00/10] SMBIOS improvements Raymond Mao
2024-08-16 15:46 ` [PATCH 01/10] sysinfo: Add sysinfo API for accessing data area Raymond Mao
2024-08-16 15:46 ` [PATCH 02/10] sysinfo: Add sysinfo driver and data structure for SMBIOS Raymond Mao
2024-08-26  9:01   ` Michal Simek
2024-08-26  9:52   ` Michal Simek
2024-08-29 14:05   ` Simon Glass
2024-08-16 15:46 ` [PATCH 03/10] smbios: Refactor SMBIOS library Raymond Mao
2024-08-26  9:34   ` Michal Simek
2024-09-09 15:30   ` Heinrich Schuchardt
2024-08-16 15:46 ` [PATCH 04/10] smbios: ignore the non-existence of platform sysinfo detect Raymond Mao
2024-08-26  9:39   ` Michal Simek
2024-08-16 15:46 ` [PATCH 05/10] armv8: Add arch-specific sysinfo driver Raymond Mao
2024-08-19 11:09   ` Caleb Connolly
2024-08-26 15:32   ` Michal Simek
2024-08-16 15:46 ` [PATCH 06/10] sysinfo: Add sysinfo driver for SMBIOS type 7 Raymond Mao
2024-08-16 15:46 ` [PATCH 07/10] smbios: Add support to " Raymond Mao
2024-08-16 15:46 ` [PATCH 08/10] armv8: Add sysinfo driver for cache information Raymond Mao
2024-08-16 15:46 ` [PATCH 09/10] configs: Enable sysinfo for QEMU Arm64 Raymond Mao
2024-08-16 15:46 ` [PATCH 10/10] tests: update smbios pytest Raymond Mao
2024-08-19 22:19   ` Tom Rini
2024-10-21 15:23     ` Raymond Mao
2024-10-21 17:23       ` Tom Rini
2024-08-17 15:58 ` [PATCH 00/10] SMBIOS improvements Simon Glass
2024-08-19 23:03   ` Caleb Connolly
2024-08-26 17:58     ` Simon Glass
2024-08-26 18:23       ` Tom Rini
2024-08-26 18:50         ` Heinrich Schuchardt
2024-08-26 19:12         ` Simon Glass
2024-08-26 19:59           ` Tom Rini
2024-09-15 17:57             ` Heinrich Schuchardt
2024-09-15 18:28               ` Tom Rini
2024-09-19 14:13                 ` Simon Glass
2024-09-19 17:48                   ` Tom Rini
2024-10-07 14:47                     ` Raymond Mao
2024-09-03 16:06   ` Raymond Mao
2024-09-10 18:44     ` Simon Glass
2024-09-10 19:20       ` Raymond Mao
2024-09-10 20:15         ` Simon Glass
2024-08-19 11:56 ` Caleb Connolly
2024-09-09 13:37   ` Raymond Mao

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