On 03/02/17 15:21, Andi Kleen wrote: > From: Andi Kleen <ak@xxxxxxxxxxxxxxx> > > x86 traditionally used mmconfig only for extended config space accesses > with offsets larger than 256. For lower offsets it uses the classic > Type 1 IO port access. This is quite slow and also requires taking > a global spin lock to protect the Type 1 IO port mailbox. > > IIRC (I added it originally) it was merely to be conservative; > I don't remember any actual cases where mmconfig did not work > after passing the other sanity checks. But most devices > don't use extended config space, so most devices were never > tested with MMCONFIG. Starting to use MMCONFIG everywhere > unconditionally seems somewhat risky as we never tested this > I would rather enable it by default, but having a command-line switch to disable it. This seems a helluva lot saner than mucking with the entire PCI bus from an individual device driver. Also, it seems crazy to say we will take this penalty forever. My opinion is we should enable it in the absence of evidence of malfunctions, but if we end up having problems we could put an ACPI date cutoff quirk in. -hpa