]> git.ipfire.org Git - thirdparty/linux.git/commit
x86/CPU/AMD: Print AGESA string from DMI additional information entry
authorYazen Ghannam <yazen.ghannam@amd.com>
Sat, 7 Mar 2026 14:10:24 +0000 (08:10 -0600)
committerBorislav Petkov (AMD) <bp@alien8.de>
Wed, 1 Apr 2026 18:54:16 +0000 (20:54 +0200)
commitbc91133e260c8113c1119073c03b93c12aa41738
tree74fdd5508374ea8ec166efaed21fa2e860da79ec
parentda55ebe166d71c8c6925c5cfd77fc74bed40aaef
x86/CPU/AMD: Print AGESA string from DMI additional information entry

Type 40 entries (Additional Information) are summarized in section 7.41 as
part of the SMBIOS specification.  Generally, these entries aren't interesting
to save.

However on some AMD Zen systems, the AGESA version is stored here. This is
useful to save to the kernel message logs for debugging. It can be used to
cross-reference issues.

Implement an iterator for the Additional Information entries. Use this to find
and print the AGESA string. Do so in AMD code, since the use case is
AMD-specific.

  [ bp: Match only "AGESA". ]

Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Co-developed-by: "Mario Limonciello (AMD)" <superm1@kernel.org>
Signed-off-by: "Mario Limonciello (AMD)" <superm1@kernel.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Link: https://patch.msgid.link/20260307141024.819807-6-superm1@kernel.org
arch/x86/kernel/cpu/amd.c
drivers/firmware/dmi_scan.c
include/linux/dmi.h