aboutsummaryrefslogtreecommitdiff
path: root/SOURCES/0001-Remove-REBAR-size-quirk-for-Sapphire-RX-5600-XT-Puls.patch
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2024-04-06 17:05:32 +0200
committerJan200101 <sentrycraft123@gmail.com>2024-04-06 17:05:32 +0200
commit684f5ef56790771b425c7007c9dfcfbd8ea1a300 (patch)
tree118298a92be197f4a59d03cf2a5b447cbe9b9354 /SOURCES/0001-Remove-REBAR-size-quirk-for-Sapphire-RX-5600-XT-Puls.patch
parentc0c9b770e4f24e17886587762c42194b6e524720 (diff)
downloadkernel-fsync-684f5ef56790771b425c7007c9dfcfbd8ea1a300.tar.gz
kernel-fsync-684f5ef56790771b425c7007c9dfcfbd8ea1a300.zip
kernel 6.8.2
Diffstat (limited to 'SOURCES/0001-Remove-REBAR-size-quirk-for-Sapphire-RX-5600-XT-Puls.patch')
-rw-r--r--SOURCES/0001-Remove-REBAR-size-quirk-for-Sapphire-RX-5600-XT-Puls.patch34
1 files changed, 0 insertions, 34 deletions
diff --git a/SOURCES/0001-Remove-REBAR-size-quirk-for-Sapphire-RX-5600-XT-Puls.patch b/SOURCES/0001-Remove-REBAR-size-quirk-for-Sapphire-RX-5600-XT-Puls.patch
deleted file mode 100644
index dd8f961..0000000
--- a/SOURCES/0001-Remove-REBAR-size-quirk-for-Sapphire-RX-5600-XT-Puls.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-From 4b4ce124699c160925e5fdeb147a78f79d38351f Mon Sep 17 00:00:00 2001
-From: Simon May <simon.may@protonmail.ch>
-Date: Sun, 19 Sep 2021 23:45:59 +0200
-Subject: [PATCH] Revert "PCI: Add a REBAR size quirk for Sapphire RX 5600 XT
- Pulse"
-
-This reverts commit 907830b0fc9e374d00f3c83de5e426157b482c01.
----
- drivers/pci/pci.c | 9 +--------
- 1 file changed, 1 insertion(+), 8 deletions(-)
-
-diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
-index a607f277c..3174fa871 100644
---- a/drivers/pci/pci.c
-+++ b/drivers/pci/pci.c
-@@ -3755,14 +3755,8 @@ u32 pci_rebar_get_possible_sizes(struct pci_dev *pdev, int bar)
- return 0;
-
- pci_read_config_dword(pdev, pos + PCI_REBAR_CAP, &cap);
-- cap = FIELD_GET(PCI_REBAR_CAP_SIZES, cap);
-
-- /* Sapphire RX 5600 XT Pulse has an invalid cap dword for BAR 0 */
-- if (pdev->vendor == PCI_VENDOR_ID_ATI && pdev->device == 0x731f &&
-- bar == 0 && cap == 0x700)
-- return 0x3f00;
--
-- return cap;
-+ return (cap & PCI_REBAR_CAP_SIZES) >> 4;
- }
- EXPORT_SYMBOL(pci_rebar_get_possible_sizes);
-
---
-2.30.2
-