Message ID | 20240815032259.27719-3-hui.wang@canonical.com |
---|---|
State | New |
Headers | show |
Series | Enable ASPM for nvme controller when working in RAID on mode | expand |
diff --git a/drivers/pci/controller/vmd.c b/drivers/pci/controller/vmd.c index c9c200adefd2..e33d213a34fb 100644 --- a/drivers/pci/controller/vmd.c +++ b/drivers/pci/controller/vmd.c @@ -751,6 +751,8 @@ static int vmd_pm_enable_quirk(struct pci_dev *pdev, void *userdata) if (!(features & VMD_FEAT_BIOS_PM_QUIRK)) return 0; + pdev->aspm_os_control = 1; + pci_enable_link_state_locked(pdev, PCIE_LINK_STATE_ALL); pos = pci_find_ext_capability(pdev, PCI_EXT_CAP_ID_LTR);