]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - queue-4.4/pci-mark-atheros-ar9462-to-avoid-bus-reset.patch
drop drm-rockchip-shutdown-drm-subsystem-on-shutdown.patch from 4.4.y and 4.9.y
[thirdparty/kernel/stable-queue.git] / queue-4.4 / pci-mark-atheros-ar9462-to-avoid-bus-reset.patch
1 From 6afb7e26978da5e86e57e540fdce65c8b04f398a Mon Sep 17 00:00:00 2001
2 From: James Prestwood <james.prestwood@linux.intel.com>
3 Date: Mon, 7 Jan 2019 13:32:48 -0800
4 Subject: PCI: Mark Atheros AR9462 to avoid bus reset
5
6 From: James Prestwood <james.prestwood@linux.intel.com>
7
8 commit 6afb7e26978da5e86e57e540fdce65c8b04f398a upstream.
9
10 When using PCI passthrough with this device, the host machine locks up
11 completely when starting the VM, requiring a hard reboot. Add a quirk to
12 avoid bus resets on this device.
13
14 Fixes: c3e59ee4e766 ("PCI: Mark Atheros AR93xx to avoid bus reset")
15 Link: https://lore.kernel.org/linux-pci/20190107213248.3034-1-james.prestwood@linux.intel.com
16 Signed-off-by: James Prestwood <james.prestwood@linux.intel.com>
17 Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
18 CC: stable@vger.kernel.org # v3.14+
19 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
20
21 ---
22 drivers/pci/quirks.c | 1 +
23 1 file changed, 1 insertion(+)
24
25 --- a/drivers/pci/quirks.c
26 +++ b/drivers/pci/quirks.c
27 @@ -3141,6 +3141,7 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_A
28 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_ATHEROS, 0x0032, quirk_no_bus_reset);
29 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_ATHEROS, 0x003c, quirk_no_bus_reset);
30 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_ATHEROS, 0x0033, quirk_no_bus_reset);
31 +DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_ATHEROS, 0x0034, quirk_no_bus_reset);
32
33 static void quirk_no_pm_reset(struct pci_dev *dev)
34 {