Skip to content

Implement all missing SMBIOS types required by distro tooling

Raymond Mao u-boot 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest6 patches 3 repliesIn review
  2. v56 patches 12 repliesSuperseded
  3. v45 patches 4 repliesSuperseded

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6smbios: Fix duplicated smbios handleslib/smbios.c+23 -190 replies
2/6smbios: add support for dynamic generation of Type 9 system slot tablesarch/arm/dts/smbios_generic.dtsi cmd/smbios.c include/smbios.h +2 more+549 -30 replies
3/6smbios: add support for dynamic generation of Type 16 tablearch/arm/dts/smbios_generic.dtsi cmd/smbios.c drivers/sysinfo/smbios.c +4 more+387 -00 replies
4/6smbios: add support for dynamic generation of Type 17 tablearch/arm/dts/smbios_generic.dtsi cmd/smbios.c include/smbios.h +2 more+677 -00 replies
5/6smbios: add support for dynamic generation of Type 19 tablearch/arm/dts/smbios_generic.dtsi cmd/smbios.c include/smbios.h +2 more+183 -00 replies
6/6smbios: print the properties only when they exist in a specified version of speccmd/smbios.c include/smbios.h+86 -110 replies

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by.

PatchIlias Apalodimas
SeriesT-b
1/6R-b
2/6
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [PATCH v6 0/6] Implement all missing SMBIOS types required by distro tooling

From: Raymond Mao <[email protected]>

This series finish the last missing puzzle of required SMBIOS types by:
1) Fixing duplicated handles when multiple instances exist in one type;
2) Implementing the rest of required types 9/16/17/19;
3) Adding version control when printing properties for all types.

Type 9/16/17/19 are generally DT-based, the idea is to write these tables using a hybrid approach:
Explicit DT definitions under existing '/smbios/smbios' take precedence, with fallback to scan and interpret values from the entire DT.

Moreover, all below APIs:
smbios_get_val_si()
smbios_get_u64_si()
smbios_add_prop_si()
are on top of sysinfo, thus allow vendors to get values from other subsystems by implementing their own sysinfo driver if needed.

Raymond Mao (6):
smbios: Fix duplicated smbios handles
smbios: add support for dynamic generation of Type 9 system slot
tables
smbios: add support for dynamic generation of Type 16 table
smbios: add support for dynamic generation of Type 17 table
smbios: add support for dynamic generation of Type 19 table
smbios: print the properties only when they exist in a specified
version of spec

 arch/arm/dts/smbios_generic.dtsi |   12 +
 cmd/smbios.c                     |  365 +++++++++-
 drivers/sysinfo/smbios.c         |    5 +
 include/smbios.h                 |  151 ++++
 include/smbios_def.h             |  250 +++++++
 include/sysinfo.h                |    4 +
 lib/smbios.c                     | 1151 +++++++++++++++++++++++++++++-
 7 files changed, 1905 insertions(+), 33 deletions(-)
Signature · 1 line
2.25.1