add DDR5 memory type
Resolves: rhbz#2029784 Signed-off-by: Coiby Xu <coxu@redhat.com>
This commit is contained in:
parent
84e3ebcb4d
commit
2b1063ab2e
@ -0,0 +1,34 @@
|
|||||||
|
From 7e25483a392e292c58cea67ba4d052856c2f35d0 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Prabhakar pujeri <prabhakar.pujeri@gmail.com>
|
||||||
|
Date: Mon, 19 Oct 2020 14:38:04 +0200
|
||||||
|
Subject: [PATCH] Add new memory device types from SMBIOS spec 3.4.0
|
||||||
|
|
||||||
|
Added 2 more new values (0x22 and 0x23).
|
||||||
|
|
||||||
|
Signed-off-by: Coiby Xu <coxu@redhat.com>
|
||||||
|
---
|
||||||
|
dmidecode.c | 6 ++++--
|
||||||
|
1 file changed, 4 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/dmidecode.c b/dmidecode.c
|
||||||
|
index 8b6f5af..97ba941 100644
|
||||||
|
--- a/dmidecode.c
|
||||||
|
+++ b/dmidecode.c
|
||||||
|
@@ -2639,10 +2639,12 @@ static const char *dmi_memory_device_type(u8 code)
|
||||||
|
"LPDDR4",
|
||||||
|
"Logical non-volatile device",
|
||||||
|
"HBM",
|
||||||
|
- "HBM2" /* 0x21 */
|
||||||
|
+ "HBM2",
|
||||||
|
+ "DDR5",
|
||||||
|
+ "LPDDR5" /* 0x23 */
|
||||||
|
};
|
||||||
|
|
||||||
|
- if (code >= 0x01 && code <= 0x21)
|
||||||
|
+ if (code >= 0x01 && code <= 0x23)
|
||||||
|
return type[code - 0x01];
|
||||||
|
return out_of_spec;
|
||||||
|
}
|
||||||
|
--
|
||||||
|
2.31.1
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
Summary: Tool to analyse BIOS DMI data
|
Summary: Tool to analyse BIOS DMI data
|
||||||
Name: dmidecode
|
Name: dmidecode
|
||||||
Version: 3.3
|
Version: 3.3
|
||||||
Release: 6%{?dist}
|
Release: 7%{?dist}
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Source0: https://download.savannah.gnu.org/releases/%{name}/%{name}-%{version}.tar.xz
|
Source0: https://download.savannah.gnu.org/releases/%{name}/%{name}-%{version}.tar.xz
|
||||||
@ -14,6 +14,7 @@ Patch1: 0002-dmidecode-Add-new-processor-characteristics-bits-from-SMBIOS
|
|||||||
Patch2: 0003-dmidecode-Missing-comma-in-the-dmi_slot_type.patch
|
Patch2: 0003-dmidecode-Missing-comma-in-the-dmi_slot_type.patch
|
||||||
Patch3: 0004-dmidecode-Skip-details-of-uninstalled-memory-modules.patch
|
Patch3: 0004-dmidecode-Skip-details-of-uninstalled-memory-modules.patch
|
||||||
Patch4: 0005-dmidecode-Add-new-processor-upgrades-from-SMBIOS-spec-3.4.0.patch
|
Patch4: 0005-dmidecode-Add-new-processor-upgrades-from-SMBIOS-spec-3.4.0.patch
|
||||||
|
Patch5: 0006-dmidedecode-Add-new-memory-device-types-from-SMBIOS-spec-3.4.0.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
dmidecode reports information about x86 & ia64 hardware as described in the
|
dmidecode reports information about x86 & ia64 hardware as described in the
|
||||||
@ -33,6 +34,7 @@ I/O ports (e.g. serial, parallel, USB).
|
|||||||
%patch2 -p1
|
%patch2 -p1
|
||||||
%patch3 -p1
|
%patch3 -p1
|
||||||
%patch4 -p1
|
%patch4 -p1
|
||||||
|
%patch5 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%make_build CFLAGS="%{optflags}" LDFLAGS="%{__global_ldflags}"
|
%make_build CFLAGS="%{optflags}" LDFLAGS="%{__global_ldflags}"
|
||||||
@ -52,6 +54,9 @@ I/O ports (e.g. serial, parallel, USB).
|
|||||||
%{_mandir}/man8/*
|
%{_mandir}/man8/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jan 05 2022 Coiby Xu <coxu@redhat.com> - 1:3.3-7
|
||||||
|
- Resolves: rhbz#2029784
|
||||||
|
|
||||||
* Mon Dec 06 2021 Coiby Xu <coxu@redhat.com> - 1:3.3-6
|
* Mon Dec 06 2021 Coiby Xu <coxu@redhat.com> - 1:3.3-6
|
||||||
- Resolves: rhbz#2024078
|
- Resolves: rhbz#2024078
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user