Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6c8fbb9

Browse files
committed
dmidecode: Add new enumerated values for processors
Add 6 new enumerated values for processor families and 7 new enumerated values for processor upgrades from SMBIOS specification version 3.1.0. Signed-off-by: Jean Delvare <jdelvare@suse.de>
1 parent de61f7d commit 6c8fbb9

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed

‎CHANGELOG‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* dmidecode.c: Add support for extended BIOS ROM size (DMI type 0).
66
* dmidecode.c: Add new enumerated values for chassis types
77
(DMI type 3).
8+
* dmidecode.c: Add new enumerated values for processors (DMI type 4).
89

910
2017年04月11日 Jean Delvare <jdelvare@suse.de>
1011

‎dmidecode.c‎

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,9 @@ static const char *dmi_processor_family(const struct dmi_header *h, u16 ver)
736736
{ 0x2A, "Core Solo Mobile" },
737737
{ 0x2B, "Atom" },
738738
{ 0x2C, "Core M" },
739-
739+
{ 0x2D, "Core m3" },
740+
{ 0x2E, "Core m5" },
741+
{ 0x2F, "Core m7" },
740742
{ 0x30, "Alpha" },
741743
{ 0x31, "Alpha 21064" },
742744
{ 0x32, "Alpha 21066" },
@@ -788,6 +790,8 @@ static const char *dmi_processor_family(const struct dmi_header *h, u16 ver)
788790
{ 0x66, "Athlon X4" },
789791
{ 0x67, "Opteron X1000" },
790792
{ 0x68, "Opteron X2000" },
793+
{ 0x69, "Opteron A-Series" },
794+
{ 0x6A, "Opteron X3000" },
791795

792796
{ 0x70, "Hobbit" },
793797

@@ -899,6 +903,8 @@ static const char *dmi_processor_family(const struct dmi_header *h, u16 ver)
899903
{ 0xFA, "i860" },
900904
{ 0xFB, "i960" },
901905

906+
{ 0x100, "ARMv7" },
907+
{ 0x101, "ARMv8" },
902908
{ 0x104, "SH-3" },
903909
{ 0x105, "SH-4" },
904910
{ 0x118, "ARM" },
@@ -1050,7 +1056,7 @@ static void dmi_processor_id(u8 type, const u8 *p, const char *version, const ch
10501056
}
10511057
}
10521058
else if ((type >= 0x0B && type <= 0x15) /* Intel, Cyrix */
1053-
|| (type >= 0x28 && type <= 0x2C) /* Intel */
1059+
|| (type >= 0x28 && type <= 0x2F) /* Intel */
10541060
|| (type >= 0xA1 && type <= 0xB3) /* Intel */
10551061
|| type == 0xB5 /* Intel */
10561062
|| (type >= 0xB9 && type <= 0xC7) /* Intel */
@@ -1062,7 +1068,7 @@ static void dmi_processor_id(u8 type, const u8 *p, const char *version, const ch
10621068
|| type == 0x1F /* AMD */
10631069
|| (type >= 0x38 && type <= 0x3F) /* AMD */
10641070
|| (type >= 0x46 && type <= 0x4F) /* AMD */
1065-
|| (type >= 0x66 && type <= 0x68) /* AMD */
1071+
|| (type >= 0x66 && type <= 0x6A) /* AMD */
10661072
|| (type >= 0x83 && type <= 0x8F) /* AMD */
10671073
|| (type >= 0xB6 && type <= 0xB7) /* AMD */
10681074
|| (type >= 0xE4 && type <= 0xEF)) /* AMD */
@@ -1224,10 +1230,17 @@ static const char *dmi_processor_upgrade(u8 code)
12241230
"Socket LGA1150",
12251231
"Socket BGA1168",
12261232
"Socket BGA1234",
1227-
"Socket BGA1364" /* 0x30 */
1233+
"Socket BGA1364",
1234+
"Socket AM4",
1235+
"Socket LGA1151",
1236+
"Socket BGA1356",
1237+
"Socket BGA1440",
1238+
"Socket BGA1515",
1239+
"Socket LGA3647-1",
1240+
"Socket SP3" /* 0x37 */
12281241
};
12291242

1230-
if (code >= 0x01 && code <= 0x30)
1243+
if (code >= 0x01 && code <= 0x37)
12311244
return upgrade[code - 0x01];
12321245
return out_of_spec;
12331246
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /