1 --- a/drivers/pci/Kconfig
2 +++ b/drivers/pci/Kconfig
3 @@ -71,6 +71,12 @@ config XEN_PCIDEV_FRONTEND
4 The PCI device frontend driver allows the kernel to import arbitrary
5 PCI devices from a PCI backend to support PCI driver domains.
7 +config PCI_DISABLE_COMMON_QUIRKS
8 + bool "PCI disable common quirks"
11 + If you don't know what to do here, say N.
14 bool "Interrupts on hypertransport devices"
16 --- a/drivers/pci/quirks.c
17 +++ b/drivers/pci/quirks.c
18 @@ -41,6 +41,7 @@ static void quirk_mmio_always_on(struct
19 DECLARE_PCI_FIXUP_CLASS_EARLY(PCI_ANY_ID, PCI_ANY_ID,
20 PCI_CLASS_BRIDGE_HOST, 8, quirk_mmio_always_on);
22 +#ifndef CONFIG_PCI_DISABLE_COMMON_QUIRKS
23 /* The Mellanox Tavor device gives false positive parity errors
24 * Mark this device with a broken_parity_status, to allow
25 * PCI scanning code to "skip" this now blacklisted device.
26 @@ -3015,6 +3016,7 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_I
27 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x65f9, quirk_intel_mc_errata);
28 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x65fa, quirk_intel_mc_errata);
30 +#endif /* !CONFIG_PCI_DISABLE_COMMON_QUIRKS */
33 * Ivytown NTB BAR sizes are misreported by the hardware due to an erratum. To
34 @@ -3071,6 +3073,8 @@ static void fixup_debug_report(struct pc
38 +#ifndef CONFIG_PCI_DISABLE_COMMON_QUIRKS
41 * Some BIOS implementations leave the Intel GPU interrupts enabled,
42 * even though no one is handling them (f.e. i915 driver is never loaded).
43 @@ -3105,6 +3109,8 @@ DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_IN
44 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x010a, disable_igfx_irq);
45 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x0152, disable_igfx_irq);
47 +#endif /* !CONFIG_PCI_DISABLE_COMMON_QUIRKS */
50 * PCI devices which are on Intel chips can skip the 10ms delay
51 * before entering D3 mode.