diff --git a/1000-dmidecode-Add-new-memory-device-types-from-SMBIOS-spec-3.4.0.patch b/1000-dmidecode-Add-new-memory-device-types-from-SMBIOS-spec-3.4.0.patch new file mode 100644 index 0000000000000000000000000000000000000000..fda0684c14a19081ad57fd3824b9b59633143554 --- /dev/null +++ b/1000-dmidecode-Add-new-memory-device-types-from-SMBIOS-spec-3.4.0.patch @@ -0,0 +1,32 @@ +From 7e25483a392e292c58cea67ba4d052856c2f35d0 Mon Sep 17 00:00:00 2001 +From: Prabhakar pujeri +Date: Mon, 19 Oct 2020 14:38:04 +0200 +Subject: Add new memory device types from SMBIOS spec 3.4.0 + +Added 2 more new values (0x22 and 0x23). +--- + 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; + } +-- +cgit v1.2.1 + diff --git a/dmidecode.spec b/dmidecode.spec index 02bbee3921c65a578115dc5904f7749456666e92..5d6ee147ecc324a89966d518f1bca816a56c33de 100644 --- a/dmidecode.spec +++ b/dmidecode.spec @@ -1,4 +1,4 @@ -%define anolis_release .0.1 +%define anolis_release .0.2 Summary: Tool to analyse BIOS DMI data Name: dmidecode Version: 3.2 @@ -54,9 +54,13 @@ Patch42: 0002-dmidecode-Skip-details-of-uninstalled-memory-modules.patch Patch43: RHELonly-Missing-comma-in-the-dmi_slot_type.patch Patch44: 0024-dmidecode-Fix-crash-with-u-option.patch +# http://git.savannah.nongnu.org/cgit/dmidecode.git/patch/?id=7e25483a392e292c58cea67ba4d052856c2f35d0 +Patch1000: 1000-dmidecode-Add-new-memory-device-types-from-SMBIOS-spec-3.4.0.patch + BuildRequires: gcc make ExclusiveArch: %{ix86} x86_64 ia64 aarch64 loongarch64 + %description dmidecode reports information about x86 & ia64 hardware as described in the system BIOS according to the SMBIOS/DMI standard. This information @@ -115,6 +119,7 @@ I/O ports (e.g. serial, parallel, USB). %patch42 -p1 %patch43 -p1 %patch44 -p1 +%patch1000 -p1 %build make %{?_smp_mflags} CFLAGS="%{optflags}" LDFLAGS="%{__global_ldflags}" @@ -135,6 +140,9 @@ make %{?_smp_mflags} DESTDIR=%{buildroot} prefix=%{_prefix} install-bin install- %{_mandir}/man8/* %changelog +* Thu Mar 24 2022 Weitao Zhou - 1:3.2-10.0.2 +- Patch: dmidecode Add new memory device types from SMBIOS spec 3.4.0 + * Tue Aug 31 2021 yangxiaoxuan - 1:3.2-10.0.1 - Support loongarch64