]> 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)
commit56251246761f7059e64a7c4866b9f4eef17d7b71
treeea6c3e9286e0d3bf2d36f6fa7eac37bde287c9d6
parentdcb51c5b8a4398bdee04a0c6ac9fe61fb4c0091a
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