diff options
author | Marc Zyngier <maz@kernel.org> | 2021-11-04 18:01:30 +0000 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2021-11-11 09:50:31 +0100 |
commit | f21082fb20dbfb3e42b769b59ef21c2a7f2c7c1f (patch) | |
tree | 91c4b15fcf32754fd9209be5d02fa42f68887b89 /drivers | |
parent | 2226667a145db2e1f314d7f57fd644fe69863ab9 (diff) | |
download | linux-stable-f21082fb20dbfb3e42b769b59ef21c2a7f2c7c1f.tar.gz linux-stable-f21082fb20dbfb3e42b769b59ef21c2a7f2c7c1f.tar.bz2 linux-stable-f21082fb20dbfb3e42b769b59ef21c2a7f2c7c1f.zip |
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 <rsalvaterra@gmail.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Rui Salvaterra <rsalvaterra@gmail.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Bjorn Helgaas <helgaas@kernel.org>
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
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/pci/quirks.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index aedb78c86ddc..003950c738d2 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -5851,3 +5851,9 @@ DECLARE_PCI_FIXUP_ENABLE(PCI_VENDOR_ID_PERICOM, 0x2303, pci_fixup_pericom_acs_store_forward); DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_PERICOM, 0x2303, pci_fixup_pericom_acs_store_forward); + +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); |