[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/1] dmidecode: Update the sockets in Processor Update section
From: |
Jessie Chen |
Subject: |
[PATCH 1/1] dmidecode: Update the sockets in Processor Update section |
Date: |
Mon, 25 Nov 2024 15:45:26 +0800 |
From: Jessie Chen <ychen39@lenovo.com>
When running the dmidecode command to check SMBIOS Processor Information
(type 4), the "Upagrade" for CPU in the result shows "<OUT OF SPEC>",
because the latest version of the dmidecode source code doesn't cover
the sockets beyond 50h in the Processor Information — Processor Upgrade
section of SMBIOS version 3.8. So, add the parts of the SMBIOS 3.8
Processor Information — Processor Upgrade section beyond socket 50h to
the end of "dmi_processor_upgrade" in the source code, and update the
conditional statements to include the current last value, 57h.
Signed-off-by: Jessie Chen <ychen39@lenovo.com>
---
dmidecode.c | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/dmidecode.c b/dmidecode.c
index 547cb48..103ca3f 100644
--- a/dmidecode.c
+++ b/dmidecode.c
@@ -1462,10 +1462,17 @@ static const char *dmi_processor_upgrade(u8 code)
"Socket BGA1190",
"Socket BGA4129",
"Socket LGA4710",
- "Socket LGA7529" /* 0x50 */
+ "Socket LGA7529", /* 0x50 */
+ "Socket BGA1964", /* 0x51 */
+ "Socket BGA1792", /* 0x52 */
+ "Socket BGA2049", /* 0x53 */
+ "Socket BGA2551", /* 0x54 */
+ "Socket LGA1851", /* 0x55 */
+ "Socket BGA2114", /* 0x56 */
+ "Socket BGA2833" /* 0x57 */
};
- if (code >= 0x01 && code <= 0x50)
+ if (code >= 0x01 && code <= 0x57)
return upgrade[code - 0x01];
return out_of_spec;
}
--
2.34.1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH 1/1] dmidecode: Update the sockets in Processor Update section,
Jessie Chen <=