2 Commits

7 changed files with 42 additions and 57 deletions

Binary file not shown.

Binary file not shown.

BIN
dmidecode-3.7.tar.xz LFS Normal file

Binary file not shown.

BIN
dmidecode-3.7.tar.xz.sig Normal file

Binary file not shown.

View File

@@ -1,12 +1,39 @@
-------------------------------------------------------------------
Fri Mar 28 07:06:40 UTC 2025 - Bernhard Wiedemann <bwiedemann@suse.com>
Fri Dec 19 14:22:37 UTC 2025 - Jean Delvare <jdelvare@suse.com>
- Use %autosetup to work with rpm-4.20 (bsc#1240154)
- Update to upstream version 3.7:
* Memory sizes use binary unit prefixes.
* The word "Firmware" is now used instead of "BIOS".
* Support for SMBIOS 3.8.0. This includes a new processor family.
* Support for SMBIOS 3.9.0. This includes chassis type name
adjustments, new rack attributes, slot ID for more slot types,
and new memory device form factors and types.
* Decode HPE OEM records 193, 195, 202, 211, 226, 229, 232 and
244.
* Update HPE OEM records 203, 216, 242 and 245.
* EDSFF slot names now include their .S/.L suffix.
* Obsoletes dmioem-update-hpe-oem-type-238.patch.
-------------------------------------------------------------------
Mon Jul 29 15:23:07 UTC 2024 - Jean Delvare <jdelvare@suse.com>
Wed May 29 19:54:25 UTC 2024 - Andreas Schwab <schwab@suse.de>
- Update to upstream version 3.6 (jsc#PED-8647):
- Enable build on riscv64
-------------------------------------------------------------------
Sun May 19 15:19:23 UTC 2024 - Jean Delvare <jdelvare@suse.com>
Update for HPE servers from upstream:
- dmioem-update-hpe-oem-type-238.patch: Decode PCI bus segment in
HPE type 238 records.
- Drop legacy Provides: and Obsoletes: tags. The split from the
pmtools package happened 15 years ago so they are no longer
relevant.
-------------------------------------------------------------------
Thu Apr 25 12:41:17 UTC 2024 - Jean Delvare <jdelvare@suse.com>
- Update to upstream version 3.6:
* Support for SMBIOS 3.6.0. This includes new memory device types, new
processor upgrades, and Loongarch support.
* Support for SMBIOS 3.7.0. This includes new port types, new processor
@@ -25,13 +52,11 @@ Mon Jul 29 15:23:07 UTC 2024 - Jean Delvare <jdelvare@suse.com>
dmioem-hpe-oem-record-237-firmware-change.patch and
use-read_file-to-read-from-dump.patch.
Update for HPE servers from upstream:
- dmioem-update-hpe-oem-type-238.patch: Decode PCI bus segment in
HPE type 238 records.
-------------------------------------------------------------------
Mon Feb 26 07:51:57 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
- Drop legacy Provides: and Obsoletes: tags. The split from the
pmtools package happened 15 years ago so they are no longer
relevant.
- Use %autosetup macro. Allows to eliminate the usage of deprecated
PatchN.
-------------------------------------------------------------------
Thu Apr 27 10:55:57 UTC 2023 - Jean Delvare <jdelvare@suse.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package dmidecode
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
Name: dmidecode
Version: 3.6
Version: 3.7
Release: 0
Summary: DMI table decoder
License: GPL-2.0-or-later
@@ -27,10 +27,9 @@ Source0: http://download.savannah.gnu.org/releases/%{name}/%{name}-%{vers
Source1: http://download.savannah.gnu.org/releases/%{name}/%{name}-%{version}.tar.xz.sig
# https://savannah.nongnu.org/project/memberlist-gpgkeys.php?group=dmidecode
Source2: %{name}.keyring
Patch1: dmioem-update-hpe-oem-type-238.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: xz
ExclusiveArch: %ix86 ia64 x86_64 %arm aarch64
ExclusiveArch: %ix86 ia64 x86_64 %arm aarch64 riscv64
%description
Dmidecode reports information about your system's hardware as described
@@ -57,7 +56,7 @@ install -dm 755 %{buildroot}%{_sbindir}
install -dm 755 %{buildroot}%{_mandir}/man8
install -dm 755 %{buildroot}%{_docdir}/%{name}
install -dm 755 %{buildroot}%{_datadir}/bash-completion/completions/
%ifarch ia64 %arm aarch64
%ifarch ia64 %arm aarch64 riscv64
for i in dmidecode ; do
%else
for i in dmidecode vpddecode ownership biosdecode ; do

View File

@@ -1,39 +0,0 @@
From: Jerry Hoemann <jerry.hoemann@hpe.com>
Date: Thu, 16 May 2024 13:12:43 +0200
Subject: dmioem: Update HPE OEM Type 238
Git-commit: 190a23ecfd6d743cb6efbc04bb4d95f0584fd68d
Patch-mainline: yes
New field: PCI Segment Number.
Signed-off-by: Jerry Hoemann <jerry.hoemann@hpe.com>
Signed-off-by: Jean Delvare <jdelvare@suse.de>
---
dmioem.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
--- dmidecode-3.6.orig/dmioem.c
+++ dmidecode-3.6/dmioem.c
@@ -1346,14 +1346,20 @@ static int dmi_decode_hp(const struct dm
* 0x0C | Parent Hub | BYTE | Instance number of internal Hub
* 0x0D | Port Speed | BYTE | Enumerated value of speed configured by BIOS
* 0x0E | Device Path| STRING| UEFI Device Path of USB endpoint
+ * 0x0F | PCI Seg | WORD | PCI Segment number of the USB controller
*/
if (gen < G9) return 0;
pr_handle_name("%s Proliant USB Port Connector Correlation Record", company);
if (h->length < 0x0F) break;
if (!(opt.flags & FLAG_QUIET))
pr_attr("Associated Handle", "0x%04X", WORD(data + 0x4));
- pr_attr("PCI Device", "%02x:%02x.%x", data[0x6],
- data[0x7] >> 3, data[0x7] & 0x7);
+ if (h->length < 0x11)
+ pr_attr("PCI Device", "%02x:%02x.%x", data[0x6],
+ data[0x7] >> 3, data[0x7] & 0x7);
+ else
+ pr_attr("PCI Device", "%04x:%02x:%02x.%x",
+ WORD(data + 0xF), data[0x6],
+ data[0x7] >> 3, data[0x7] & 0x7);
dmi_hp_238_loc("Location", data[0x8]);
dmi_hp_238_flags("Management Port", WORD(data + 0x9));
pr_attr("Port Instance", "%d", data[0xB]);