diff options
author | Johan Hovold <[email protected]> | 2023-11-28 09:15:08 +0100 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2023-12-11 12:07:59 -0600 |
commit | 49de0dc87965079a8e2803ee4b39f9d946259423 (patch) | |
tree | e98ddb337f14976156eba96d36063965a5da6d32 /drivers/pci/controller/dwc | |
parent | 718ab8226636a1a3a7d281f5d6a7ad7c925efe5a (diff) |
PCI: vmd: Fix potential deadlock when enabling ASPM
The vmd_pm_enable_quirk() helper is called from pci_walk_bus() during
probe to enable ASPM for controllers with VMD_FEAT_BIOS_PM_QUIRK set.
Since pci_walk_bus() already holds a pci_bus_sem read lock, use
pci_enable_link_state_locked() to enable link states in order to avoid a
potential deadlock (e.g. in case someone takes a write lock before
reacquiring the read lock).
Fixes: f492edb40b54 ("PCI: vmd: Add quirk to configure PCIe ASPM and LTR")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Johan Hovold <[email protected]>
[bhelgaas: add "potential" in subject since the deadlock has only been
reported by lockdep, include helper name in commit log]
Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Manivannan Sadhasivam <[email protected]>
Cc: <[email protected]> # 6.3
Cc: Michael Bottini <[email protected]>
Cc: David E. Box <[email protected]>
Diffstat (limited to 'drivers/pci/controller/dwc')
0 files changed, 0 insertions, 0 deletions