PCI/ASPM: pci_enable_link_state: Add argument to acquire bus lock
The VMD driver calls pci_enabled_link_state as a callback from pci_bus_walk. Both will acquire the pci_bus_sem lock leading to a lockdep warning. Add an argument to pci_enable_link_state to set whether the lock should be acquired. In the VMD driver, set the argument to false since the lock will already be obtained by pci_bus_walk. Still, review comments needs to be addressed. However, this fix is helping to unblock CI execution for now. References: https://gitlab.freedesktop.org/drm/intel/-/issues/8316 Reported-by:Ville Syrjälä <ville.syrjala@linux.intel.com> Fixes: de82f60f ("PCI/ASPM: Add pci_enable_link_state()") Link: https://lore.kernel.org/linux-pci/ZBjko%2FifunIwsK2v@intel.com/ Signed-off-by:
David E. Box <david.e.box@linux.intel.com> Signed-off-by:
Swati Sharma <swati2.sharma@intel.com> Signed-off-by:
Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230330121135.15414-1-swati2.sharma@intel.com
Loading
Please register or sign in to comment