All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/7] smbios: missing strings, RISC-V processor ID
@ 2024-01-29 21:04 Heinrich Schuchardt
  2024-01-29 21:04 ` [PATCH 1/7] cmd: smbios: always use '0x%04x' for printing handles Heinrich Schuchardt
                   ` (6 more replies)
  0 siblings, 7 replies; 14+ messages in thread
From: Heinrich Schuchardt @ 2024-01-29 21:04 UTC (permalink / raw)
  To: Tom Rini
  Cc: Ilias Apalodimas, Simon Glass, Peter Robinson, u-boot,
	Heinrich Schuchardt

When a string value cannot be provided we should not create a string
'Unknown' but just set the string index to 0 as suggested by the
SMBIOS specification. Program dmidecode will render this as
'Not Specified'.

Set the chassis handle in the type 2 structure.

In the type 4 structure fill the RISC-V SMBIOS Processor ID.

Correct the output formatting of the smbios command:

* Add a missing colon after UUID.
* Format handle references consistently.
* Render missing strings as 'Not Specified'.

Heinrich Schuchardt (7):
  cmd: smbios: always use '0x%04x' for printing handles
  cmd: smbios: add missing colon after UUID
  cmd: smbios: replace missing string by 'Not Specified'
  smbios: string table always needs two terminating NUL bytes
  smbios: if a string value is unknown, use string number 0
  smbios: provide type 4 RISC-V SMBIOS Processor ID
  smbios: correctly fill chassis handle

 cmd/smbios.c            | 12 ++++++++----
 drivers/cpu/riscv_cpu.c | 12 ++++++++++++
 lib/smbios.c            | 38 +++++++++++++++++++++++---------------
 3 files changed, 43 insertions(+), 19 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2024-02-01  8:42 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-29 21:04 [PATCH 0/7] smbios: missing strings, RISC-V processor ID Heinrich Schuchardt
2024-01-29 21:04 ` [PATCH 1/7] cmd: smbios: always use '0x%04x' for printing handles Heinrich Schuchardt
2024-01-29 21:04 ` [PATCH 2/7] cmd: smbios: add missing colon after UUID Heinrich Schuchardt
2024-02-01  8:40   ` Ilias Apalodimas
2024-01-29 21:04 ` [PATCH 3/7] cmd: smbios: replace missing string by 'Not Specified' Heinrich Schuchardt
2024-01-29 21:04 ` [PATCH 4/7] smbios: string table always needs two terminating NUL bytes Heinrich Schuchardt
2024-01-31 17:15   ` Matthias Brugger
2024-01-31 18:02     ` Heinrich Schuchardt
2024-02-01  8:38   ` Ilias Apalodimas
2024-01-29 21:04 ` [PATCH 5/7] smbios: if a string value is unknown, use string number 0 Heinrich Schuchardt
2024-02-01  8:41   ` Ilias Apalodimas
2024-01-29 21:04 ` [PATCH 6/7] smbios: provide type 4 RISC-V SMBIOS Processor ID Heinrich Schuchardt
2024-01-29 21:04 ` [PATCH 7/7] smbios: correctly fill chassis handle Heinrich Schuchardt
2024-02-01  8:42   ` Ilias Apalodimas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.