From 5447e3db6f583263848a85b112af7c6fa0088265 Mon Sep 17 00:00:00 2001 From: Pavel Cahyna Date: Thu, 27 Jul 2023 15:27:05 +0200 Subject: [PATCH] Add vendor ID for NVIDIA BMCs Patch from Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=903616;filename=0615-nvidia-iana.patch;msg=10 Resolves: rhbz2218358 --- 0022-nvidia-iana.patch | 36 ++++++++++++++++++++++++++++++++++++ ipmitool.spec | 1 + 2 files changed, 37 insertions(+) create mode 100644 0022-nvidia-iana.patch diff --git a/0022-nvidia-iana.patch b/0022-nvidia-iana.patch new file mode 100644 index 0000000..28276f8 --- /dev/null +++ b/0022-nvidia-iana.patch @@ -0,0 +1,36 @@ +Description: Add IANA ID for NVIDIA hardware + Add the NVIDIA IANA ID to the hardcoded list used in ipmitool <= 1.8.18. + After upstream commit "9d41136 ID:491 - Fetch vendor IDs from IANA", ipmitool + generates a list of vendor IDs dynamically at build time, so we can drop this + patch in future releases. +Author: dann frazier +Origin: backport +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=903616 +Forwarded: not-needed +Last-Update: 2018-07-11 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +Index: ipmitool-1.8.18/include/ipmitool/ipmi.h +=================================================================== +--- ipmitool-1.8.18.orig/include/ipmitool/ipmi.h ++++ ipmitool-1.8.18/include/ipmitool/ipmi.h +@@ -279,6 +279,7 @@ typedef enum IPMI_OEM { + /* 4769 for [IBM Corporation] */ + IPMI_OEM_IBM_4769 = 4769, + IPMI_OEM_MAGNUM = 5593, ++ IPMI_OEM_NVIDIA = 5703, + IPMI_OEM_TYAN = 6653, + IPMI_OEM_QUANTA = 7244, + IPMI_OEM_NEWISYS = 9237, +Index: ipmitool-1.8.18/lib/ipmi_strings.c +=================================================================== +--- ipmitool-1.8.18.orig/lib/ipmi_strings.c ++++ ipmitool-1.8.18/lib/ipmi_strings.c +@@ -96,6 +96,7 @@ const struct valstr ipmi_oem_info[] = { + { IPMI_OEM_IBM_4769, "IBM Corporation" }, + { IPMI_OEM_IBM_20301, "IBM eServer X" }, + { IPMI_OEM_ADLINK_24339, "ADLINK Technology Inc." }, ++ { IPMI_OEM_NVIDIA, "NVIDIA Corporation" }, + { 0xffff , NULL }, + }; + diff --git a/ipmitool.spec b/ipmitool.spec index 6212f0d..836c041 100644 --- a/ipmitool.spec +++ b/ipmitool.spec @@ -28,6 +28,7 @@ Patch12: 0012-lanplus-cipher-retry.patch Patch13: 0013-lanplus-Cleanup.-Refix-6dec83ff-fix-be2c0c4b.patch Patch20: 0020-plugins-open-Fix-for-interrupted-select.patch Patch21: 0021-open-checking-received-msg-id-against-expectation.patch +Patch22: 0022-nvidia-iana.patch BuildRequires: openssl-devel readline-devel ncurses-devel %{?systemd_requires}