diff --git a/backport-Add-new-memory-device-types-from-SMBIOS-spec-3.4.0.patch b/backport-Add-new-memory-device-types-from-SMBIOS-spec-3.4.0.patch new file mode 100644 index 0000000000000000000000000000000000000000..6aa4b4ae63813eee16449523c69849495cdd7da3 --- /dev/null +++ b/backport-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: [PATCH] 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; + } +-- +2.27.0 + diff --git a/dmidecode.spec b/dmidecode.spec index 2dc31bfd48ef2747710c145910f97ae5079ca74f..26cfd1784b712b44a36a8ce6ce8b80960045471e 100644 --- a/dmidecode.spec +++ b/dmidecode.spec @@ -1,6 +1,6 @@ Name: dmidecode Version: 3.3 -Release: 6 +Release: 7 Epoch: 1 Summary: DMI data report tool @@ -13,6 +13,7 @@ Patch2: man-pages-Improve-roff-formatting.patch Patch3: dmidecode-Split-table-fetching-from-decoding.patch Patch4: dmidecode-Write-the-whole-dump-file-at-once.patch Patch5: dmidecode-Do-not-let-dump-bin-overwrite-an-existing-.patch +Patch6: backport-Add-new-memory-device-types-from-SMBIOS-spec-3.4.0.patch Patch6000: bugfix-compat_uuid.patch @@ -56,6 +57,12 @@ make %{?_smp_mflags} CFLAGS="%{__global_cflags}" LDFLAGS="%{__global_ldflags}" %{_mandir}/man8/*.8.gz %changelog +* Fri Sep 20 2024 liyunqing - 1:3.3-7 +- Type:backport +- ID:NA +- SUG:NA +- DESC: Add support for memory type ddr5 + * Mon Apr 17 2023 Cunshu Ni - 1:3.3-6 - fix CVE-2023-30630