summaryrefslogtreecommitdiff
path: root/drivers/pci/hotplug
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2014-08-30 13:23:01 (GMT)
committerBjorn Helgaas <bhelgaas@google.com>2014-09-13 02:12:14 (GMT)
commit1302fcf0d03e6ea74846c7fee14736306ab2ce4b (patch)
treea7aa92d1b4a0f5c5451d2f13ba82bd1e2761cbd6 /drivers/pci/hotplug
parent302328c00341f1c161bfe32d085d3e6549a08f2d (diff)
downloadlinux-1302fcf0d03e6ea74846c7fee14736306ab2ce4b.tar.xz
PCI: Configure *all* devices, not just hot-added ones
There's not really a good way to determine whether firmware has already configured a device with _HPP/_HPX settings. On legacy systems, the BIOS has probably configured everything, but on UEFI systems it is not required to do so. Per the PCI Firmware Specification, rev 3.1, sec 3.5, if PCI_COMMAND_IO or PCI_COMMAND_MEMORY is set, we can assume firmware has set the corresponding BARs and maybe we can assume it has configured the rest of the device. And if a bridge has PCI_COMMAND_PARITY or PCI_COMMAND_SERR set, we can assume firmware has configured the bridge. But we can't tell much about devices without BARs. I think it should be safe to apply _HPP and _HPX settings anyway, even if firmware has already configured the device, so configure everything we find. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Yinghai Lu <yinghai@kernel.org>
Diffstat (limited to 'drivers/pci/hotplug')
0 files changed, 0 insertions, 0 deletions