]> git.baikalelectronics.ru Git - kernel.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)
commitf692d2c81a22580089939df230e1149e13797b99
treeea6c3e9286e0d3bf2d36f6fa7eac37bde287c9d6
parent53e2353ecdea58240a05f70f2163a7df81a6966b
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