]> git.baikalelectronics.ru Git - kernel.git/commit
x86/PCI: Use host bridge _CRS info on systems with >32 bit addressing
authorBjorn Helgaas <bhelgaas@google.com>
Tue, 9 Jun 2015 22:31:38 +0000 (17:31 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 17 Jun 2015 22:24:06 +0000 (17:24 -0500)
commitd25d96d69ff7ed05a6aa1d8caec09c30217aa938
tree72b94698354d39ef2793892c11227abe94438885
parent96d5cf9e84560f52b0d19cb8ede3b13aa04a6d47
x86/PCI: Use host bridge _CRS info on systems with >32 bit addressing

We enable _CRS on all systems from 2008 and later.  On older systems, we
ignore _CRS and assume the whole physical address space (excluding RAM and
other devices) is available for PCI devices, but on systems that support
physical address spaces larger than 4GB, it's doubtful that the area above
4GB is really available for PCI.

After 07f35fabcc6d ("PCI: Allocate 64-bit BARs above 4G when possible"), we
try to use that space above 4GB *first*, so we're more likely to put a
device there.

On Juan's Toshiba Satellite Pro U200, BIOS left the graphics, sound, 1394,
and card reader devices unassigned (but only after Windows had been
booted).  Only the sound device had a 64-bit BAR, so it was the only device
placed above 4GB, and hence the only device that didn't work.

Keep _CRS enabled even on pre-2008 systems if they support physical address
space larger than 4GB.

Fixes: 07f35fabcc6d ("PCI: Allocate 64-bit BARs above 4G when possible")
Reported-and-tested-by: Juan Dayer <jdayer@outlook.com>
Reported-and-tested-by: Alan Horsfield <alan@hazelgarth.co.uk>
Link: https://bugzilla.kernel.org/show_bug.cgi?id=99221
Link: https://bugzilla.opensuse.org/show_bug.cgi?id=907092
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
CC: stable@vger.kernel.org # v3.14+
arch/x86/pci/acpi.c