1
0
forked from rpms/kernel

Enable all disabled pci devices by moving to unmaintained list

This commit is contained in:
Andrew Lukoshko 2024-04-08 17:54:19 +00:00
parent 5974bbba60
commit 9af2c67c68
3 changed files with 95 additions and 208 deletions

View File

@ -1,206 +0,0 @@
From 6d54fccc87035126469abc4d856d9c138004634d Mon Sep 17 00:00:00 2001
From: Andrew Lukoshko <alukoshko@almalinux.org>
Date: Mon, 8 Apr 2024 13:11:50 +0000
Subject: [PATCH 1/4] Empty rh_disabled_pci_devices and
rh_unmaintained_pci_devices lists
---
kernel/rh_messages.h | 178 -------------------------------------------
1 file changed, 178 deletions(-)
diff --git a/kernel/rh_messages.h b/kernel/rh_messages.h
index 5b7570edb..44b4523dd 100644
--- a/kernel/rh_messages.h
+++ b/kernel/rh_messages.h
@@ -119,188 +119,10 @@ static const struct pci_device_id rh_deprecated_pci_devices[] = {
};
static const struct pci_device_id rh_disabled_pci_devices[] = {
- { 0x1011, 0x0046, 0x103c, 0x10c2 },
- { 0x1011, 0x0046, 0x9005, 0x0364 },
- { 0x1011, 0x0046, 0x9005, 0x0365 },
- { 0x1011, 0x0046, 0x9005, 0x1364 },
- { 0x1028, 0x0001, 0x1028, 0x0001 },
- { 0x1028, 0x0002, 0x1028, 0x0002 },
- { 0x1028, 0x0002, 0x1028, 0x00d1 },
- { 0x1028, 0x0002, 0x1028, 0x00d9 },
- { 0x1028, 0x0003, 0x1028, 0x0003 },
- { 0x1028, 0x0004, 0x1028, 0x00d0 },
- { 0x1028, 0x000a, 0x1028, 0x0106 },
- { 0x1028, 0x000a, 0x1028, 0x011b },
- { 0x1028, 0x000a, 0x1028, 0x0121 },
- { 0x9005, 0x0200, 0x9005, 0x0200 },
- { 0x9005, 0x0283, 0x9005, 0x0283 },
- { 0x9005, 0x0284, 0x9005, 0x0284 },
- { 0x9005, 0x0285, PCI_ANY_ID, PCI_ANY_ID },
- { 0x9005, 0x0285, 0x1014, 0x02F2 },
- { 0x9005, 0x0285, 0x1014, 0x0312 },
- { 0x9005, 0x0285, 0x1028, PCI_ANY_ID },
- { 0x9005, 0x0285, 0x1028, 0x0287 },
- { 0x9005, 0x0285, 0x103C, 0x3227 },
- { 0x9005, 0x0285, 0x17aa, PCI_ANY_ID },
- { 0x9005, 0x0285, 0x17aa, 0x0286 },
- { 0x9005, 0x0285, 0x17aa, 0x0287 },
- { 0x9005, 0x0285, 0x9005, 0x0285 },
- { 0x9005, 0x0285, 0x9005, 0x0286 },
- { 0x9005, 0x0285, 0x9005, 0x0287 },
- { 0x9005, 0x0285, 0x9005, 0x0288 },
- { 0x9005, 0x0285, 0x9005, 0x0289 },
- { 0x9005, 0x0285, 0x9005, 0x028a },
- { 0x9005, 0x0285, 0x9005, 0x028b },
- { 0x9005, 0x0285, 0x9005, 0x028e },
- { 0x9005, 0x0285, 0x9005, 0x028f },
- { 0x9005, 0x0285, 0x9005, 0x0290 },
- { 0x9005, 0x0285, 0x9005, 0x0291 },
- { 0x9005, 0x0285, 0x9005, 0x0292 },
- { 0x9005, 0x0285, 0x9005, 0x0293 },
- { 0x9005, 0x0285, 0x9005, 0x0294 },
- { 0x9005, 0x0285, 0x9005, 0x0296 },
- { 0x9005, 0x0285, 0x9005, 0x0297 },
- { 0x9005, 0x0285, 0x9005, 0x0298 },
- { 0x9005, 0x0285, 0x9005, 0x0299 },
- { 0x9005, 0x0285, 0x9005, 0x029a },
- { 0x9005, 0x0285, 0x9005, 0x02a4 },
- { 0x9005, 0x0285, 0x9005, 0x02a5 },
- { 0x9005, 0x0286, PCI_ANY_ID, PCI_ANY_ID },
- { 0x9005, 0x0286, 0x1014, 0x9540 },
- { 0x9005, 0x0286, 0x1014, 0x9580 },
- { 0x9005, 0x0286, 0x9005, 0x028c },
- { 0x9005, 0x0286, 0x9005, 0x028d },
- { 0x9005, 0x0286, 0x9005, 0x029b },
- { 0x9005, 0x0286, 0x9005, 0x029c },
- { 0x9005, 0x0286, 0x9005, 0x029d },
- { 0x9005, 0x0286, 0x9005, 0x029e },
- { 0x9005, 0x0286, 0x9005, 0x029f },
- { 0x9005, 0x0286, 0x9005, 0x02a0 },
- { 0x9005, 0x0286, 0x9005, 0x02a1 },
- { 0x9005, 0x0286, 0x9005, 0x02a2 },
- { 0x9005, 0x0286, 0x9005, 0x02a3 },
- { 0x9005, 0x0286, 0x9005, 0x02a6 },
- { 0x9005, 0x0286, 0x9005, 0x0800 },
- { 0x9005, 0x0287, 0x9005, 0x0800 },
- { 0x9005, 0x0288, PCI_ANY_ID, PCI_ANY_ID },
- { 0x19a2, 0x0222, PCI_ANY_ID, PCI_ANY_ID },
- { 0x19a2, 0x0712, PCI_ANY_ID, PCI_ANY_ID },
- { 0x19a2, 0x212, PCI_ANY_ID, PCI_ANY_ID },
- { 0x19a2, 0x702, PCI_ANY_ID, PCI_ANY_ID },
- { 0x19a2, 0x703, PCI_ANY_ID, PCI_ANY_ID },
- { 0x19a2, 0x0700, PCI_ANY_ID, PCI_ANY_ID },
- { 0x19a2, 0x0211, PCI_ANY_ID, PCI_ANY_ID },
- { 0x19a2, 0x0710, PCI_ANY_ID, PCI_ANY_ID },
- { 0x19a2, 0x0221, PCI_ANY_ID, PCI_ANY_ID },
- { 0x19a2, 0xe220, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0x1ae5, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0xe100, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0xe131, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0xe180, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0xe260, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0xf095, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0xf098, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0xf0a1, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0xf0a5, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0xf0d1, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0xf0d5, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0xf0e1, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0xf0e5, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0xf0f5, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0xf0f6, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0xf0f7, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0xf180, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0xf700, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0xf800, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0xf900, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0xf980, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0xfa00, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0xfb00, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0xfc00, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0xfc10, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0xfc20, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0xfc50, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0xfd00, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0xfd11, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0xfd12, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0xfe00, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0xfe05, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0xfe11, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0xfe12, PCI_ANY_ID, PCI_ANY_ID },
- { 0x19a2, 0x0704, PCI_ANY_ID, PCI_ANY_ID },
- { 0x19a2, 0x0714, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1000, 0x0060, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1000, 0x0078, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1000, 0x007C, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1000, 0x0411, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1000, 0x0413, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1028, 0x0015, PCI_ANY_ID, PCI_ANY_ID },
- { 0x15B3, 0x1002, PCI_ANY_ID, PCI_ANY_ID },
- { 0x15B3, 0x6340, PCI_ANY_ID, PCI_ANY_ID },
- { 0x15B3, 0x634A, PCI_ANY_ID, PCI_ANY_ID },
- { 0x15B3, 0x6354, PCI_ANY_ID, PCI_ANY_ID },
- { 0x15B3, 0x6368, PCI_ANY_ID, PCI_ANY_ID },
- { 0x15B3, 0x6372, PCI_ANY_ID, PCI_ANY_ID },
- { 0x15B3, 0x6732, PCI_ANY_ID, PCI_ANY_ID },
- { 0x15B3, 0x673C, PCI_ANY_ID, PCI_ANY_ID },
- { 0x15B3, 0x6746, PCI_ANY_ID, PCI_ANY_ID },
- { 0x15B3, 0x6750, PCI_ANY_ID, PCI_ANY_ID },
- { 0x15B3, 0x675A, PCI_ANY_ID, PCI_ANY_ID },
- { 0x15B3, 0x6764, PCI_ANY_ID, PCI_ANY_ID },
- { 0x15B3, 0x676E, PCI_ANY_ID, PCI_ANY_ID },
- { 0x15B3, 0xA2DC, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1000, 0x0064, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1000, 0x0065, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1000, 0x0070, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1000, 0x0072, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1000, 0x0074, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1000, 0x0076, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1000, 0x0077, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1000, 0x007E, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1077, 0x2422, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1077, 0x2432, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1077, 0x5422, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1077, 0x5432, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1077, 0x8001, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1077, 0x8021, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1077, 0x8044, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1077, 0x8432, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1077, 0xF000, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1077, 0x8022, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1077, 0x8032, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1077, 0x8042, PCI_ANY_ID, PCI_ANY_ID },
{0} /* Terminating entry */
};
static const struct pci_device_id rh_unmaintained_pci_devices[] = {
- { 0x10df, 0xe220, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0x0724, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0xe200, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0xf011, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0xf015, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0xf100, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0xfc40, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1000, 0x005b, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1000, 0x0071, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1000, 0x0073, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1000, 0x0079, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1000, 0x006E, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1000, 0x0080, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1000, 0x0081, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1000, 0x0082, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1000, 0x0083, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1000, 0x0084, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1000, 0x0085, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1000, 0x0086, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1000, 0x0087, PCI_ANY_ID, PCI_ANY_ID },
- { 0x177d, 0xa01e, PCI_ANY_ID, PCI_ANY_ID },
- { 0x177d, 0xa034, PCI_ANY_ID, PCI_ANY_ID },
- { 0x177d, 0x0011, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1077, 0x2031, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1077, 0x2532, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1077, 0x8031, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1924, 0x0803, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1924, 0x0813, PCI_ANY_ID, PCI_ANY_ID },
{0} /* Terminating entry */
};
--
2.27.0

View File

@ -0,0 +1,93 @@
From 8cf73633b3209471b169913199b79c4d1c2170b4 Mon Sep 17 00:00:00 2001
From: Andrew Lukoshko <alukoshko@almalinux.org>
Date: Mon, 8 Apr 2024 17:49:33 +0000
Subject: [PATCH] Enable all disabled pci devices by moving to unmaintained
list
---
kernel/rh_messages.h | 64 ++++++++++++++++++++++----------------------
1 file changed, 32 insertions(+), 32 deletions(-)
diff --git a/kernel/rh_messages.h b/kernel/rh_messages.h
index 5b7570edb..12a3523e4 100644
--- a/kernel/rh_messages.h
+++ b/kernel/rh_messages.h
@@ -119,6 +119,38 @@ static const struct pci_device_id rh_deprecated_pci_devices[] = {
};
static const struct pci_device_id rh_disabled_pci_devices[] = {
+ {0} /* Terminating entry */
+};
+
+static const struct pci_device_id rh_unmaintained_pci_devices[] = {
+ { 0x10df, 0xe220, PCI_ANY_ID, PCI_ANY_ID },
+ { 0x10df, 0x0724, PCI_ANY_ID, PCI_ANY_ID },
+ { 0x10df, 0xe200, PCI_ANY_ID, PCI_ANY_ID },
+ { 0x10df, 0xf011, PCI_ANY_ID, PCI_ANY_ID },
+ { 0x10df, 0xf015, PCI_ANY_ID, PCI_ANY_ID },
+ { 0x10df, 0xf100, PCI_ANY_ID, PCI_ANY_ID },
+ { 0x10df, 0xfc40, PCI_ANY_ID, PCI_ANY_ID },
+ { 0x1000, 0x005b, PCI_ANY_ID, PCI_ANY_ID },
+ { 0x1000, 0x0071, PCI_ANY_ID, PCI_ANY_ID },
+ { 0x1000, 0x0073, PCI_ANY_ID, PCI_ANY_ID },
+ { 0x1000, 0x0079, PCI_ANY_ID, PCI_ANY_ID },
+ { 0x1000, 0x006E, PCI_ANY_ID, PCI_ANY_ID },
+ { 0x1000, 0x0080, PCI_ANY_ID, PCI_ANY_ID },
+ { 0x1000, 0x0081, PCI_ANY_ID, PCI_ANY_ID },
+ { 0x1000, 0x0082, PCI_ANY_ID, PCI_ANY_ID },
+ { 0x1000, 0x0083, PCI_ANY_ID, PCI_ANY_ID },
+ { 0x1000, 0x0084, PCI_ANY_ID, PCI_ANY_ID },
+ { 0x1000, 0x0085, PCI_ANY_ID, PCI_ANY_ID },
+ { 0x1000, 0x0086, PCI_ANY_ID, PCI_ANY_ID },
+ { 0x1000, 0x0087, PCI_ANY_ID, PCI_ANY_ID },
+ { 0x177d, 0xa01e, PCI_ANY_ID, PCI_ANY_ID },
+ { 0x177d, 0xa034, PCI_ANY_ID, PCI_ANY_ID },
+ { 0x177d, 0x0011, PCI_ANY_ID, PCI_ANY_ID },
+ { 0x1077, 0x2031, PCI_ANY_ID, PCI_ANY_ID },
+ { 0x1077, 0x2532, PCI_ANY_ID, PCI_ANY_ID },
+ { 0x1077, 0x8031, PCI_ANY_ID, PCI_ANY_ID },
+ { 0x1924, 0x0803, PCI_ANY_ID, PCI_ANY_ID },
+ { 0x1924, 0x0813, PCI_ANY_ID, PCI_ANY_ID },
{ 0x1011, 0x0046, 0x103c, 0x10c2 },
{ 0x1011, 0x0046, 0x9005, 0x0364 },
{ 0x1011, 0x0046, 0x9005, 0x0365 },
@@ -272,36 +304,4 @@ static const struct pci_device_id rh_disabled_pci_devices[] = {
{0} /* Terminating entry */
};
-static const struct pci_device_id rh_unmaintained_pci_devices[] = {
- { 0x10df, 0xe220, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0x0724, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0xe200, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0xf011, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0xf015, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0xf100, PCI_ANY_ID, PCI_ANY_ID },
- { 0x10df, 0xfc40, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1000, 0x005b, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1000, 0x0071, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1000, 0x0073, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1000, 0x0079, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1000, 0x006E, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1000, 0x0080, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1000, 0x0081, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1000, 0x0082, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1000, 0x0083, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1000, 0x0084, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1000, 0x0085, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1000, 0x0086, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1000, 0x0087, PCI_ANY_ID, PCI_ANY_ID },
- { 0x177d, 0xa01e, PCI_ANY_ID, PCI_ANY_ID },
- { 0x177d, 0xa034, PCI_ANY_ID, PCI_ANY_ID },
- { 0x177d, 0x0011, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1077, 0x2031, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1077, 0x2532, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1077, 0x8031, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1924, 0x0803, PCI_ANY_ID, PCI_ANY_ID },
- { 0x1924, 0x0813, PCI_ANY_ID, PCI_ANY_ID },
- {0} /* Terminating entry */
-};
-
#endif /* __RH_MESSAGES_H */
--
2.27.0

View File

@ -962,7 +962,7 @@ Patch1: patch-%{patchversion}-redhat.patch
Patch1001: 0001-nvme-pci-add-BOGUS_NID-for-Intel-0a54-device.patch
# Bring back deprecated PCI ids #CFHack #CFHack2024
Patch2001: 0001-Empty-rh_disabled_pci_devices-and-rh_unmaintained_pc.patch
Patch2001: 0001-Enable-all-disabled-pci-devices-by-moving-to-unmaint.patch
Patch2002: 0002-Bring-back-deprecated-pci-ids-to-mptsas-mptspi-drive.patch
Patch2003: 0003-Bring-back-deprecated-pci-ids-to-hpsa-driver.patch
Patch2004: 0004-Bring-back-deprecated-pci-ids-to-qla2xxx-driver.patch
@ -1700,7 +1700,7 @@ cp -a %{SOURCE1} .
%if !%{nopatches}
ApplyPatch 0001-Empty-rh_disabled_pci_devices-and-rh_unmaintained_pc.patch
ApplyPatch 0001-Enable-all-disabled-pci-devices-by-moving-to-unmaint.patch
ApplyPatch 0002-Bring-back-deprecated-pci-ids-to-mptsas-mptspi-drive.patch
ApplyPatch 0003-Bring-back-deprecated-pci-ids-to-hpsa-driver.patch
ApplyPatch 0004-Bring-back-deprecated-pci-ids-to-qla2xxx-driver.patch