@@ -1407,8 +1407,12 @@ static int __pci_enable_link_state(struct pci_dev *pdev, int state, bool locked)
* the _OSC method), we can't honor that request.
*/
if (aspm_disabled) {
- pci_warn(pdev, "can't override BIOS ASPM; OS doesn't have ASPM control\n");
- return -EPERM;
+ if (aspm_support_enabled && pdev->aspm_os_control)
+ pci_info(pdev, "BIOS can't program ASPM, let OS control it\n");
+ else {
+ pci_warn(pdev, "can't override BIOS ASPM; OS doesn't have ASPM control\n");
+ return -EPERM;
+ }
}
if (!locked)
@@ -465,6 +465,7 @@ struct pci_dev {
unsigned int no_command_memory:1; /* No PCI_COMMAND_MEMORY */
unsigned int rom_bar_overlap:1; /* ROM BAR disable broken */
unsigned int rom_attr_enabled:1; /* Display of ROM attribute enabled? */
+ unsigned int aspm_os_control:1; /* Display of ROM attribute enabled? */
pci_dev_flags_t dev_flags;
atomic_t enable_cnt; /* pci_enable_device has been called */