• Mika Westerberg's avatar
    PCI/DPC: Do not enable DPC if AER control is not allowed by the BIOS · 4e5fad42
    Mika Westerberg authored
    Commit eed85ff4 ("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: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
    Signed-off-by: default avatarBjorn Helgaas <helgaas@kernel.org>
    4e5fad42
portdrv_acpi.c 1.6 KB