From a50e7366b581897c15730d9a7f3adcbe8ef3f4d059b54215ab450351eeefe56a Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Thu, 3 Sep 2015 09:05:34 +0000 Subject: [PATCH] - Update to upstream version 3.0: * Adds support for SMBIOS 3.0. This includes a new (64-bit) entry point format and new enumerated values for recent hardware. * Adds support for the new kernel interface (as of Linux v4.2) as an alternative to relying on /dev/mem to access the entry point and DMI table. * Adds decoding of Acer-specific DMI type 170 and HP-specific DMI types 212, 219 and 233. * Obsoletes dmidecode-1.173-drop-cast.patch, dmidecode-1.175-fix-SMBIOS-2.8.0.patch, dmidecode-1.176-SMBIOS-2.8-is-supported.patch, dmidecode-1.177-decode-pcie3-slot-id.patch, dmidecode-1.181-decode-CPUID-recent-AMD.patch, and dmidecode-1.182-decode-ddr4-memory-type.patch. * Various minor fixes and clean-ups. OBS-URL: https://build.opensuse.org/package/show/Base:System/dmidecode?expand=0&rev=32 --- dmidecode-1.173-drop-cast.patch | 18 ------- dmidecode-1.175-fix-SMBIOS-2.8.0.patch | 45 ------------------ dmidecode-1.176-SMBIOS-2.8-is-supported.patch | 20 -------- dmidecode-1.177-decode-pcie3-slot-id.patch | 45 ------------------ dmidecode-1.181-decode-CPUID-recent-AMD.patch | 23 --------- dmidecode-1.182-decode-ddr4-memory-type.patch | 26 ---------- dmidecode-2.12.tar.bz2 | 3 -- dmidecode-2.12.tar.bz2.sig | Bin 287 -> 0 bytes dmidecode-3.0.tar.xz | 3 ++ dmidecode-3.0.tar.xz.sig | Bin 0 -> 65 bytes dmidecode.changes | 19 ++++++++ dmidecode.spec | 20 ++------ 12 files changed, 26 insertions(+), 196 deletions(-) delete mode 100644 dmidecode-1.173-drop-cast.patch delete mode 100644 dmidecode-1.175-fix-SMBIOS-2.8.0.patch delete mode 100644 dmidecode-1.176-SMBIOS-2.8-is-supported.patch delete mode 100644 dmidecode-1.177-decode-pcie3-slot-id.patch delete mode 100644 dmidecode-1.181-decode-CPUID-recent-AMD.patch delete mode 100644 dmidecode-1.182-decode-ddr4-memory-type.patch delete mode 100644 dmidecode-2.12.tar.bz2 delete mode 100644 dmidecode-2.12.tar.bz2.sig create mode 100644 dmidecode-3.0.tar.xz create mode 100644 dmidecode-3.0.tar.xz.sig diff --git a/dmidecode-1.173-drop-cast.patch b/dmidecode-1.173-drop-cast.patch deleted file mode 100644 index 44a7519..0000000 --- a/dmidecode-1.173-drop-cast.patch +++ /dev/null @@ -1,18 +0,0 @@ -Subject: Drop unneeded and possibly dangerous cast -Upstream: yes, 1.173 - ---- - dmidecode.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - ---- dmidecode-2.12.orig/dmidecode.c -+++ dmidecode-2.12/dmidecode.c -@@ -2236,7 +2236,7 @@ static void dmi_memory_voltage_value(u16 - if (code == 0) - printf(" Unknown"); - else -- printf(" %.3f V", (float)(i16)code / 1000); -+ printf(" %.3f V", (float)code / 1000); - } - - static const char *dmi_memory_device_form_factor(u8 code) diff --git a/dmidecode-1.175-fix-SMBIOS-2.8.0.patch b/dmidecode-1.175-fix-SMBIOS-2.8.0.patch deleted file mode 100644 index b0b1c0c..0000000 --- a/dmidecode-1.175-fix-SMBIOS-2.8.0.patch +++ /dev/null @@ -1,45 +0,0 @@ -Subject: Fix SMBIOS 2.8.0 support -Upstream: yes, 1.175 - -Fix support for new processor upgrade types (DMI type 4) and new memory -device type (DMI type 17.) ---- - dmidecode.c | 6 ++---- - 1 file changed, 2 insertions(+), 4 deletions(-) - ---- a/dmidecode.c -+++ b/dmidecode.c -@@ -712,7 +712,6 @@ static const char *dmi_processor_family( - { 0x3D, "Opteron 6200" }, - { 0x3E, "Opteron 4200" }, - { 0x3F, "FX" }, -- - { 0x40, "MIPS" }, - { 0x41, "MIPS R4000" }, - { 0x42, "MIPS R4200" }, -@@ -729,7 +728,6 @@ static const char *dmi_processor_family( - { 0x4D, "Opteron 6300" }, - { 0x4E, "Opteron 3300" }, - { 0x4F, "FirePro" }, -- - { 0x50, "SPARC" }, - { 0x51, "SuperSPARC" }, - { 0x52, "MicroSPARC II" }, -@@ -1176,7 +1174,7 @@ static const char *dmi_processor_upgrade - "Socket LGA1356-3" /* 0x2C */ - }; - -- if (code >= 0x01 && code <= 0x2A) -+ if (code >= 0x01 && code <= 0x2C) - return upgrade[code - 0x01]; - return out_of_spec; - } -@@ -2338,7 +2336,7 @@ static void dmi_memory_device_type_detai - { - int i; - -- for (i = 1; i <= 14; i++) -+ for (i = 1; i <= 15; i++) - if (code & (1 << i)) - printf(" %s", detail[i - 1]); - } diff --git a/dmidecode-1.176-SMBIOS-2.8-is-supported.patch b/dmidecode-1.176-SMBIOS-2.8-is-supported.patch deleted file mode 100644 index 749129a..0000000 --- a/dmidecode-1.176-SMBIOS-2.8-is-supported.patch +++ /dev/null @@ -1,20 +0,0 @@ -Subject: Bump SUPPORTED_SMBIOS_VER to 0x0208 -Upstream: yes, 1.176 - -Bump SUPPORTED_SMBIOS_VER so that SMBIOS 2.8 implementations don't trigger -a warning. ---- - dmidecode.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - ---- a/dmidecode.c -+++ b/dmidecode.c -@@ -69,7 +69,7 @@ - #define out_of_spec "" - static const char *bad_index = ""; - --#define SUPPORTED_SMBIOS_VER 0x0207 -+#define SUPPORTED_SMBIOS_VER 0x0208 - - /* - * Type-independant Stuff diff --git a/dmidecode-1.177-decode-pcie3-slot-id.patch b/dmidecode-1.177-decode-pcie3-slot-id.patch deleted file mode 100644 index 21b76d2..0000000 --- a/dmidecode-1.177-decode-pcie3-slot-id.patch +++ /dev/null @@ -1,45 +0,0 @@ -Subject: Decode ID of PCI Express 3 slots -Upstream: yes, 1.177 - -dmidecode.c: Decode ID of PCI Express 3 slots (DMI type 9). -This fixes Savannah bug #40178: -https://savannah.nongnu.org/bugs/?40178 ---- - dmidecode.c | 12 +++++++++++- - 1 file changed, 11 insertions(+), 1 deletion(-) - ---- a/dmidecode.c -+++ b/dmidecode.c -@@ -2,7 +2,7 @@ - * DMI Decode - * - * Copyright (C) 2000-2002 Alan Cox -- * Copyright (C) 2002-2010 Jean Delvare -+ * Copyright (C) 2002-2014 Jean Delvare - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by -@@ -1697,6 +1697,10 @@ static const char *dmi_slot_type(u8 code - "PCI Express 3 x8", - "PCI Express 3 x16" /* 0xB6 */ - }; -+ /* -+ * Note to developers: when adding entries to these lists, check if -+ * function dmi_slot_id below needs updating too. -+ */ - - if (code >= 0x01 && code <= 0x13) - return type[code - 0x01]; -@@ -1790,6 +1794,12 @@ static void dmi_slot_id(u8 code1, u8 cod - case 0xAE: /* PCI Express 2 */ - case 0xAF: /* PCI Express 2 */ - case 0xB0: /* PCI Express 2 */ -+ case 0xB1: /* PCI Express 3 */ -+ case 0xB2: /* PCI Express 3 */ -+ case 0xB3: /* PCI Express 3 */ -+ case 0xB4: /* PCI Express 3 */ -+ case 0xB5: /* PCI Express 3 */ -+ case 0xB6: /* PCI Express 3 */ - printf("%sID: %u\n", prefix, code1); - break; - case 0x07: /* PCMCIA */ diff --git a/dmidecode-1.181-decode-CPUID-recent-AMD.patch b/dmidecode-1.181-decode-CPUID-recent-AMD.patch deleted file mode 100644 index 3a9a585..0000000 --- a/dmidecode-1.181-decode-CPUID-recent-AMD.patch +++ /dev/null @@ -1,23 +0,0 @@ -Subject: Decode the CPUID of recent AMD processors -Upstream: yes, 1.181 ---- - dmidecode.c | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) - ---- a/dmidecode.c -+++ b/dmidecode.c -@@ -1012,11 +1012,11 @@ static void dmi_processor_id(u8 type, co - sig = 1; - else if ((type >= 0x18 && type <= 0x1D) /* AMD */ - || type == 0x1F /* AMD */ -- || (type >= 0x38 && type <= 0x3E) /* AMD */ -- || (type >= 0x46 && type <= 0x49) /* AMD */ -+ || (type >= 0x38 && type <= 0x3F) /* AMD */ -+ || (type >= 0x46 && type <= 0x4F) /* AMD */ - || (type >= 0x83 && type <= 0x8F) /* AMD */ - || (type >= 0xB6 && type <= 0xB7) /* AMD */ -- || (type >= 0xE6 && type <= 0xEF)) /* AMD */ -+ || (type >= 0xE4 && type <= 0xEF)) /* AMD */ - sig = 2; - else if (type == 0x01 || type == 0x02) - { diff --git a/dmidecode-1.182-decode-ddr4-memory-type.patch b/dmidecode-1.182-decode-ddr4-memory-type.patch deleted file mode 100644 index 5cd1047..0000000 --- a/dmidecode-1.182-decode-ddr4-memory-type.patch +++ /dev/null @@ -1,26 +0,0 @@ -Subject: Add support for DDR4 memory type -Upstream: yes, 1.182 -References: savannah#43370 - -Patch from Tomohiro Kimura. The value was taken from preliminary SMBIOS -specification version 3.0.0d. This closes bug #43370. ---- - dmidecode.c | 5 +++-- - 1 file changed, 3 insertions(+), 2 deletions(-) - ---- a/dmidecode.c -+++ b/dmidecode.c -@@ -2311,10 +2311,11 @@ static const char *dmi_memory_device_typ - "Reserved", - "Reserved", - "DDR3", -- "FBD2", /* 0x19 */ -+ "FBD2", -+ "DDR4" /* 0x1A */ - }; - -- if (code >= 0x01 && code <= 0x19) -+ if (code >= 0x01 && code <= 0x1A) - return type[code - 0x01]; - return out_of_spec; - } diff --git a/dmidecode-2.12.tar.bz2 b/dmidecode-2.12.tar.bz2 deleted file mode 100644 index 78b9672..0000000 --- a/dmidecode-2.12.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:913ff3055d563a62a420789b8ee33b038de9afa18ea61254760ddf8ab87a5088 -size 55191 diff --git a/dmidecode-2.12.tar.bz2.sig b/dmidecode-2.12.tar.bz2.sig deleted file mode 100644 index 4c2aa4c4d14dd8bce778fdbf9804c0d54703f50b8a31934d468416d49ccb995f..0000000000000000000000000000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 287 zcmV+)0pR|L0UQJX0RjL91p-lSmVE#U2@pFV0o`T2rIcCZ2meXVh#$p&+ePoQ@R#l= zf}HB}zQ51Kwxg5dWuf_;z`cw`m504ex4%#}E&+q@?AvZNL9_8QySczT{f2UP_g1~; zp(C}b90XAmrvrBrvYmwh7|fgen|NL;=hJSKuVb lDD@nZ_-e#Lnsq0;g?ty|!kn~*ftAJfLf&_FcZW(%u8tN8l3@S< diff --git a/dmidecode-3.0.tar.xz b/dmidecode-3.0.tar.xz new file mode 100644 index 0000000..6d4ee38 --- /dev/null +++ b/dmidecode-3.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7ec35bb193729c1d593a1460b59d82d24b89102ab23fd0416e6cf4325d077e45 +size 58704 diff --git a/dmidecode-3.0.tar.xz.sig b/dmidecode-3.0.tar.xz.sig new file mode 100644 index 0000000000000000000000000000000000000000000000000000000000000000..6bda5b0058f60f24e9f010158d426b399690d1055e8e6ba525d5aa2e4d7cc52c GIT binary patch literal 65 zcmV-H0KWf-KLZ5-Rp<9MhE|BsIPfpX5du}b0GtY98qszVp1M5ND-cgrEZkMm!Gr*x XK$(>wIiP$Y7GsXHiMUw*1i*b