From 1b175a64e31f71cae56b39e78344fe6133db40de Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Wed, 4 Dec 2024 00:01:10 +0530 Subject: [PATCH] soc/intel/ptl: Populate SMBIOS Type 4 with unique serial number This commit enhances the SMBIOS Type 4 table by populating the "serial number" field with the unique SoC QDF information retrieved via PMC IPC. This improvement provides more accurate and detailed processor information for Panther Lake SoCs and onwards, aiding in: - System identification - Diagnostics - Asset management Previously, the serial number field was not populated. TEST=Able to build and boot google/fatcat. Example of SMBIOS Type 4 output: Before this commit: Serial Number: Not Specified Asset Tag: Not Specified Part Number: Not Specified After this commit: Serial Number: ABCD (Example SoC QDF information) Asset Tag: Not Specified Part Number: Not Specified Change-Id: I38a0bb0e44c619393b8f058ae30fbf2f9719b724 Signed-off-by: Subrata Banik Reviewed-on: https://review.coreboot.org/c/coreboot/+/85456 Tested-by: build bot (Jenkins) Reviewed-by: Eric Lai --- src/soc/intel/pantherlake/cpu.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/soc/intel/pantherlake/cpu.c b/src/soc/intel/pantherlake/cpu.c index 28fa1d890f..4b3c95040e 100644 --- a/src/soc/intel/pantherlake/cpu.c +++ b/src/soc/intel/pantherlake/cpu.c @@ -15,6 +15,8 @@ #include #include #include +#include +#include #include #include #include @@ -234,3 +236,14 @@ int soc_skip_ucode_update(u32 current_patch_id, u32 new_patch_id) return 0; } + +/* Override SMBIOS type 4 processor serial numbers */ +const char *smbios_processor_serial_number(void) +{ + char *qdf = retrieve_soc_qdf_info_via_pmc_ipc(); + + if (qdf != NULL) + return qdf; + else + return ""; +}