Message ID | 20170302232104.10136-4-andi@firstfloor.org (mailing list archive) |
---|---|
State | New, archived |
Delegated to: | Bjorn Helgaas |
Headers | show |
diff --git a/arch/x86/events/intel/uncore.c b/arch/x86/events/intel/uncore.c index 758c1aa5009d..4cc2ee3d0165 100644 --- a/arch/x86/events/intel/uncore.c +++ b/arch/x86/events/intel/uncore.c @@ -875,6 +875,12 @@ static int uncore_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id struct intel_uncore_box *box; int phys_id, pkg, ret; + /* + * Force MMCONFIG for all accesses, as we can otherwise + * have significant lock contention on the type1 IO port spinlock. + */ + pci_bus_force_mmconfig(pdev->bus); + phys_id = uncore_pcibus_to_physid(pdev->bus); if (phys_id < 0) return -ENODEV;