From 4ec32ade318b314c089488247bbc61db9899479f Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Tue, 9 Dec 2025 18:24:39 +0100 Subject: [PATCH] - Resolves: RHEL-115187, Enhance lsvpd to update VPD for Nvidia OTS Adapters - Resolves: RHEL-102476, Update to 1.7.17 --- .gitignore | 1 + lsvpd-add-FRU-number-for-Spyre-cards.patch | 22 ++++++++++++++++++++++ lsvpd.spec | 22 +++++++++++++++++++++- sources | 2 +- 4 files changed, 45 insertions(+), 2 deletions(-) create mode 100644 lsvpd-add-FRU-number-for-Spyre-cards.patch diff --git a/.gitignore b/.gitignore index e4eea77..0f5158a 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ lsvpd-1.6.8.tar.gz /lsvpd-1.7.12.tar.gz /lsvpd-1.7.14.tar.gz /lsvpd-1.7.15.tar.gz +/lsvpd-1.7.17.tar.gz diff --git a/lsvpd-add-FRU-number-for-Spyre-cards.patch b/lsvpd-add-FRU-number-for-Spyre-cards.patch new file mode 100644 index 0000000..22be373 --- /dev/null +++ b/lsvpd-add-FRU-number-for-Spyre-cards.patch @@ -0,0 +1,22 @@ +commit 1d2dc3d83734ea7c669905993adcae386b1db91d +Author: Sathvika Vasireddy +Date: Thu Dec 4 21:32:42 2025 +0530 + + lsvpd: Add FRU number for Spyre cards + + Update setCustomVPDFields to print FRU number for Spyre devices. + + Signed-off-by: Sathvika Vasireddy + +diff --git a/src/internal/sys_interface/sysfstreecollector.cpp b/src/internal/sys_interface/sysfstreecollector.cpp +index 7af2fb7..f7e074a 100644 +--- a/src/internal/sys_interface/sysfstreecollector.cpp ++++ b/src/internal/sys_interface/sysfstreecollector.cpp +@@ -1731,6 +1731,7 @@ ERROR: + case 0x101406A7: + case 0x101406A8: + fillMe->mFeatureCode.setValue("ECSE", 95, __FILE__, __LINE__); ++ fillMe->mFRU.setValue("03PN188", 100, __FILE__, __LINE__); + fillMe->addDeviceSpecific( "CC", "Customer Card ID Number", "2E1F", 95); + break; + case 0x15b31021: // Nvidia ConnectX-7 PF diff --git a/lsvpd.spec b/lsvpd.spec index 4b24d26..35ef482 100644 --- a/lsvpd.spec +++ b/lsvpd.spec @@ -1,11 +1,14 @@ Name: lsvpd -Version: 1.7.15 +Version: 1.7.17 Release: 1%{?dist} Summary: VPD/hardware inventory utilities for Linux License: GPLv2+ URL: https://github.com/power-ras/%{name}/releases Source: https://github.com/power-ras/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz +# upstream patches +# lsvpd: Enhance tools to print device information in tuple format +Patch10: lsvpd-add-FRU-number-for-Spyre-cards.patch BuildRequires: gcc-c++ BuildRequires: libvpd-devel >= 2.2.9 @@ -15,6 +18,8 @@ BuildRequires: automake BuildRequires: libtool BuildRequires: librtas-devel BuildRequires: make +BuildRequires: systemd-rpm-macros +Requires: systemd Requires(post): %{_sbindir}/vpdupdate @@ -44,10 +49,20 @@ on POWER PC based systems. %make_install %post +# Post-install script for vpdupdate +# Always enable the service +systemctl -q enable vpdupdate.service >/dev/null 2>&1 || : +systemctl daemon-reload >/dev/null 2>&1 || : + %{_sbindir}/vpdupdate & # Ignore the vpdupdate failures and enforce a success exit 0 +%preun +# Pre-uninstall script for vpdupdate +systemctl -q disable vpdupdate.service >/dev/null 2>&1 || : +systemctl daemon-reload >/dev/null 2>&1 || : + %files %{!?_licensedir:%global license %%doc} %license COPYING @@ -66,8 +81,13 @@ exit 0 %config %{_sysconfdir}/lsvpd/cpu_mod_conv.conf %config %{_sysconfdir}/lsvpd/nvme_templates.conf %dir %{_sysconfdir}/lsvpd +%{_unitdir}/vpdupdate.service %changelog +* Tue Dec 09 2025 Than Ngo - 1.7.17-1 +- Resolves: RHEL-115187, Enhance lsvpd to update VPD for Nvidia OTS Adapters +- Resolves: RHEL-102476, Update to 1.7.17 + * Fri Dec 08 2023 Than Ngo - 1.7.15-1 - Resolves: RRHEL-11475, update to 1.7.15 diff --git a/sources b/sources index a01d6cc..0ba5fad 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (lsvpd-1.7.15.tar.gz) = 5e70bf52fec7b7c6ede3dca2a0def9fa10ba36c4421a8b875928c7eb4036c24ad828d8381f233896aed36b8fdc014a38b05b000d883dc23d209f7bbd2b781305 +SHA512 (lsvpd-1.7.17.tar.gz) = 4f2ddc1e25a1f3b1b38e102d5fa8e12dffaea37fbfb405c77ac80f6a3ec38ab827a3b2f8f33a926d29347f7d4a144d4a65fb6f8c8aa7280854e99acfd133b9c2