- dmidecode-1.181-decode-CPUID-recent-AMD.patch: Decode the CPUID

of recent AMD processors (DMI type 4).
- dmidecode-1.182-decode-ddr4-memory-type.patch: Add support for
  DDR4 memory type (DMI type 17).
  https://savannah.nongnu.org/bugs/?43370

OBS-URL: https://build.opensuse.org/package/show/Base:System/dmidecode?expand=0&rev=26
This commit is contained in:
Jean Delvare 2014-10-13 12:01:46 +00:00 committed by Git OBS Bridge
parent 8d21a50044
commit f9aebf59d7
4 changed files with 62 additions and 0 deletions

View File

@ -0,0 +1,23 @@
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)
{

View File

@ -0,0 +1,26 @@
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;
}

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Mon Oct 13 14:00:09 CEST 2014 - jdelvare@suse.de
- dmidecode-1.181-decode-CPUID-recent-AMD.patch: Decode the CPUID
of recent AMD processors (DMI type 4).
- dmidecode-1.182-decode-ddr4-memory-type.patch: Add support for
DDR4 memory type (DMI type 17).
https://savannah.nongnu.org/bugs/?43370
-------------------------------------------------------------------
Mon Jan 13 17:31:16 CET 2014 - jdelvare@suse.de

View File

@ -29,6 +29,8 @@ Patch1: dmidecode-1.173-drop-cast.patch
Patch2: dmidecode-1.175-fix-SMBIOS-2.8.0.patch
Patch3: dmidecode-1.176-SMBIOS-2.8-is-supported.patch
Patch4: dmidecode-1.177-decode-pcie3-slot-id.patch
Patch5: dmidecode-1.181-decode-CPUID-recent-AMD.patch
Patch6: dmidecode-1.182-decode-ddr4-memory-type.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExclusiveArch: %ix86 ia64 x86_64 %arm aarch64
Obsoletes: pmtools < 20071117
@ -53,6 +55,8 @@ the BIOS told it to.
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%build
make CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}