]> git.baikalelectronics.ru Git - kernel.git/commit
PCI/DPC: Do not enable DPC if AER control is not allowed by the BIOS
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 27 Mar 2018 10:48:35 +0000 (13:48 +0300)
committerBjorn Helgaas <helgaas@kernel.org>
Fri, 30 Mar 2018 22:33:34 +0000 (17:33 -0500)
commit6d6e2186c628f3eede76ba93f5cf445c2b8aba16
tree285135222d701aeb166b22cfa9e6f0828d8381cc
parent8ac2859be4d9629ad919720d86be9634425ce6d9
PCI/DPC: Do not enable DPC if AER control is not allowed by the BIOS

Commit 56251246761f ("PCI/DPC: Enable DPC only if AER is available") made
DPC control dependent whether AER is enabled in the OS.  However, it does
not take into account situations where BIOS has not given OS control of
AER:

  acpi PNP0A08:00: _OSC: OS supports [ExtendedConfig ASPM ClockPM Segments MSI]
  acpi PNP0A08:00: _OSC: platform does not support [AER]
  acpi PNP0A08:00: _OSC: OS now controls [PCIeHotplug PME PCIeCapability]

I think here it is better not to enable DPC even if the capability is
available because then it would be against what "Determination of DPC
Control" note in PCIe 4.0 sec 6.1.10 recommends.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Bjorn Helgaas <helgaas@kernel.org>
drivers/pci/pcie/portdrv_acpi.c
drivers/pci/pcie/portdrv_core.c