]> asedeno.scripts.mit.edu Git - linux.git/commit
PCI/DPC: Enable DPC only if AER is available
authorKeith Busch <keith.busch@intel.com>
Wed, 24 Jan 2018 23:03:18 +0000 (17:03 -0600)
committerBjorn Helgaas <helgaas@kernel.org>
Fri, 26 Jan 2018 22:49:40 +0000 (16:49 -0600)
commiteed85ff4c0da72640dcf7c0737c5a08bca2958e7
treeea6c3e9286e0d3bf2d36f6fa7eac37bde287c9d6
parentaa6ca5a9d7d08bc151f9de6101fe466fae4255c0
PCI/DPC: Enable DPC only if AER is available

The "Determination of DPC Control" implementation note in PCIe r4.0, sec
6.1.10, recommends the operating system always link DPC control to the
control of AER, as the two functionalities are strongly connected.

To avoid conflicts over whether platform firmware or the OS controls DPC,
enable DPC only if AER is enabled in the OS, and the device's error
handling does not have firmware-first AER handling.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Bjorn Helgaas <helgaas@kernel.org>
drivers/pci/pcie/Kconfig
drivers/pci/pcie/pcie-dpc.c
drivers/pci/pcie/portdrv_core.c