diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2024-01-28 19:27:26 +0100 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2024-01-28 19:27:26 +0100 |
commit | 9446f45f8a204ebce12263d882275f923ed7c6ed (patch) | |
tree | 87b6791c9f9d8b20ab6ac18c37ef6fbaa6585329 /SOURCES/0001-Remove-REBAR-size-quirk-for-Sapphire-RX-5600-XT-Puls.patch | |
parent | 39c562cfc5782e1ff081f1a08edeb9bb4948864e (diff) | |
download | kernel-fsync-9446f45f8a204ebce12263d882275f923ed7c6ed.tar.gz kernel-fsync-9446f45f8a204ebce12263d882275f923ed7c6ed.zip |
kernel 6.6.13
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.patch | 34 |
1 files changed, 20 insertions, 14 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 index 0174537..dd8f961 100644 --- 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 @@ -1,28 +1,34 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Jan200101 <sentrycraft123@gmail.com> -Date: Fri, 1 Dec 2023 20:31:09 +0100 -Subject: [PATCH] Remove REBAR size quirk for Sapphire RX 5600 XT Pulse +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 partially reverts commit 907830b0fc9e374d00f3c83de5e426157b482c01. - -Signed-off-by: Jan200101 <sentrycraft123@gmail.com> +This reverts commit 907830b0fc9e374d00f3c83de5e426157b482c01. --- - drivers/pci/pci.c | 5 ----- - 1 file changed, 5 deletions(-) + 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 55bc3576a985..aca636182525 100644 +index a607f277c..3174fa871 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c -@@ -3755,11 +3755,6 @@ u32 pci_rebar_get_possible_sizes(struct pci_dev *pdev, int bar) +@@ -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); - +- 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; ++ return (cap & PCI_REBAR_CAP_SIZES) >> 4; } EXPORT_SYMBOL(pci_rebar_get_possible_sizes); + +-- +2.30.2 + |