2013-05-09 07:45:27 +00:00
|
|
|
diff -up dmidecode-2.12/CHANGELOG.smbios_fix dmidecode-2.12/CHANGELOG
|
|
|
|
--- dmidecode-2.12/CHANGELOG.smbios_fix 2013-05-09 09:44:35.668592078 +0200
|
|
|
|
+++ dmidecode-2.12/CHANGELOG 2013-05-09 09:44:44.742610559 +0200
|
|
|
|
@@ -1,3 +1,10 @@
|
|
|
|
+2013-04-24 Jean Delvare <khali@linux-fr.org>
|
|
|
|
+
|
|
|
|
+ * dmidecode.c: Strip trailig zeroes from memory voltage values
|
|
|
|
+ (DMI type 17).
|
|
|
|
+ * dmidecode.c: Fix support for new processor upgrade types (DMI
|
|
|
|
+ type 4) and new memory device type (DMI type 17.)
|
|
|
|
+
|
|
|
|
2013-04-17 Anton Arapov <anton@redhat.com>
|
|
|
|
|
|
|
|
Update to support SMBIOS specification version 2.8.0.
|
2013-04-26 07:02:07 +00:00
|
|
|
diff -up dmidecode-2.12/dmidecode.c.smbios_fix dmidecode-2.12/dmidecode.c
|
2013-05-09 07:45:27 +00:00
|
|
|
--- dmidecode-2.12/dmidecode.c.smbios_fix 2013-05-09 09:44:26.404573273 +0200
|
|
|
|
+++ dmidecode-2.12/dmidecode.c 2013-05-09 09:44:44.745610565 +0200
|
2013-05-09 07:15:35 +00:00
|
|
|
@@ -69,7 +69,7 @@
|
|
|
|
#define out_of_spec "<OUT OF SPEC>"
|
|
|
|
static const char *bad_index = "<BAD INDEX>";
|
|
|
|
|
|
|
|
-#define SUPPORTED_SMBIOS_VER 0x0207
|
|
|
|
+#define SUPPORTED_SMBIOS_VER 0x0208
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Type-independant Stuff
|
2013-05-09 07:45:27 +00:00
|
|
|
@@ -712,7 +712,6 @@ static const char *dmi_processor_family(
|
2013-04-26 07:02:07 +00:00
|
|
|
{ 0x3D, "Opteron 6200" },
|
|
|
|
{ 0x3E, "Opteron 4200" },
|
|
|
|
{ 0x3F, "FX" },
|
2013-05-09 07:45:27 +00:00
|
|
|
-
|
2013-04-26 07:02:07 +00:00
|
|
|
{ 0x40, "MIPS" },
|
|
|
|
{ 0x41, "MIPS R4000" },
|
|
|
|
{ 0x42, "MIPS R4200" },
|
2013-05-09 07:45:27 +00:00
|
|
|
@@ -729,7 +728,6 @@ static const char *dmi_processor_family(
|
|
|
|
{ 0x4D, "Opteron 6300" },
|
2013-04-26 07:02:07 +00:00
|
|
|
{ 0x4E, "Opteron 3300" },
|
|
|
|
{ 0x4F, "FirePro" },
|
2013-05-09 07:45:27 +00:00
|
|
|
-
|
2013-04-26 07:02:07 +00:00
|
|
|
{ 0x50, "SPARC" },
|
|
|
|
{ 0x51, "SuperSPARC" },
|
|
|
|
{ 0x52, "MicroSPARC II" },
|
2013-05-09 07:45:27 +00:00
|
|
|
@@ -1176,7 +1174,7 @@ static const char *dmi_processor_upgrade
|
2013-04-26 07:02:07 +00:00
|
|
|
"Socket LGA1356-3" /* 0x2C */
|
|
|
|
};
|
|
|
|
|
|
|
|
- if (code >= 0x01 && code <= 0x2A)
|
|
|
|
+ if (code >= 0x01 && code <= 0x2C)
|
|
|
|
return upgrade[code - 0x01];
|
|
|
|
return out_of_spec;
|
|
|
|
}
|
2013-05-09 07:45:27 +00:00
|
|
|
@@ -2236,7 +2234,7 @@ static void dmi_memory_voltage_value(u16
|
2013-05-09 07:15:35 +00:00
|
|
|
if (code == 0)
|
2013-05-09 07:45:27 +00:00
|
|
|
printf(" Unknown");
|
|
|
|
else
|
|
|
|
- printf(" %.3f V", (float)(i16)code / 1000);
|
|
|
|
+ printf(code % 100 ? " %g V" : " %.1f V", (float)code / 1000);
|
2013-05-09 07:15:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static const char *dmi_memory_device_form_factor(u8 code)
|
2013-05-09 07:45:27 +00:00
|
|
|
@@ -2338,7 +2336,7 @@ static void dmi_memory_device_type_detai
|
2013-04-26 07:02:07 +00:00
|
|
|
{
|
|
|
|
int i;
|
|
|
|
|
|
|
|
- for (i = 1; i <= 14; i++)
|
|
|
|
+ for (i = 1; i <= 15; i++)
|
|
|
|
if (code & (1 << i))
|
|
|
|
printf(" %s", detail[i - 1]);
|
|
|
|
}
|
2013-05-09 07:45:27 +00:00
|
|
|
@@ -3657,13 +3655,13 @@ static void dmi_decode(const struct dmi_
|
2013-05-09 07:15:35 +00:00
|
|
|
dmi_memory_device_speed(WORD(data + 0x20));
|
|
|
|
printf("\n");
|
|
|
|
if (h->length < 0x28) break;
|
2013-05-09 07:45:27 +00:00
|
|
|
- printf("\tMinimum voltage: ");
|
|
|
|
+ printf("\tMinimum Voltage: ");
|
2013-05-09 07:15:35 +00:00
|
|
|
dmi_memory_voltage_value(WORD(data + 0x22));
|
|
|
|
printf("\n");
|
2013-05-09 07:45:27 +00:00
|
|
|
- printf("\tMaximum voltage: ");
|
2013-05-09 07:15:35 +00:00
|
|
|
+ printf("\tMaximum Voltage: ");
|
2013-05-09 07:45:27 +00:00
|
|
|
dmi_memory_voltage_value(WORD(data + 0x24));
|
|
|
|
printf("\n");
|
|
|
|
- printf("\tConfigured voltage: ");
|
2013-05-09 07:15:35 +00:00
|
|
|
+ printf("\tConfigured Voltage: ");
|
2013-05-09 07:45:27 +00:00
|
|
|
dmi_memory_voltage_value(WORD(data + 0x26));
|
|
|
|
printf("\n");
|
2013-05-09 07:15:35 +00:00
|
|
|
break;
|