From 7f1d99472e5dd083d95ac10a815bca16216b1d2c Mon Sep 17 00:00:00 2001 From: jc_gargma Date: Fri, 19 Nov 2021 09:04:51 -0800 Subject: Updated to 5.15.3 --- ...Add-MSI-masking-quirk-for-Nvidia-ION-AHCI.patch | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 0004-PCI-Add-MSI-masking-quirk-for-Nvidia-ION-AHCI.patch (limited to '0004-PCI-Add-MSI-masking-quirk-for-Nvidia-ION-AHCI.patch') diff --git a/0004-PCI-Add-MSI-masking-quirk-for-Nvidia-ION-AHCI.patch b/0004-PCI-Add-MSI-masking-quirk-for-Nvidia-ION-AHCI.patch new file mode 100644 index 0000000..4fdb40c --- /dev/null +++ b/0004-PCI-Add-MSI-masking-quirk-for-Nvidia-ION-AHCI.patch @@ -0,0 +1,40 @@ +From d791f46784859b98205808be0e08fc70eeb91d45 Mon Sep 17 00:00:00 2001 +From: Marc Zyngier +Date: Thu, 4 Nov 2021 18:01:30 +0000 +Subject: [PATCH 4/8] PCI: Add MSI masking quirk for Nvidia ION AHCI + +The ION AHCI device pretends that MSI masking isn't a thing, while it +actually implements it and needs MSIs to be unmasked to work. Add a quirk +to that effect. + +Reported-by: Rui Salvaterra +Signed-off-by: Marc Zyngier +Signed-off-by: Thomas Gleixner +Tested-by: Rui Salvaterra +Reviewed-by: Thomas Gleixner +Cc: Bjorn Helgaas +Link: https://lore.kernel.org/r/CALjTZvbzYfBuLB+H=fj2J+9=DxjQ2Uqcy0if_PvmJ-nU-qEgkg@mail.gmail.com +Link: https://lore.kernel.org/r/20211104180130.3825416-3-maz@kernel.org +For: https://bugs.archlinux.org/task/72734 +For: https://bugs.archlinux.org/task/72777 +--- + drivers/pci/quirks.c | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c +index 6c957124f84d..208fa03acdda 100644 +--- a/drivers/pci/quirks.c ++++ b/drivers/pci/quirks.c +@@ -5796,3 +5796,9 @@ static void apex_pci_fixup_class(struct pci_dev *pdev) + } + DECLARE_PCI_FIXUP_CLASS_HEADER(0x1ac1, 0x089a, + PCI_CLASS_NOT_DEFINED, 8, apex_pci_fixup_class); ++ ++static void nvidia_ion_ahci_fixup(struct pci_dev *pdev) ++{ ++ pdev->dev_flags |= PCI_DEV_FLAGS_HAS_MSI_MASKING; ++} ++DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_NVIDIA, 0x0ab8, nvidia_ion_ahci_fixup); +-- +2.33.1 + -- cgit v1.2.1