On Fri, Feb 11, 2022 at 02:29:33PM +0000, bugzilla-daemon@xxxxxxxxxx wrote: > https://bugzilla.kernel.org/show_bug.cgi?id=215590 > > Summary: PCI link is down after suspend after we try to plug > device > Kernel Version: 5.4 and 5.11 > Hardware: x86-64 > OS: Linux > Tree: Mainline > Severity: high > Priority: P1 > Regression: No > > Created attachment 300434 > --> https://bugzilla.kernel.org/attachment.cgi?id=300434&action=edit > dmesg log > > PCI link is not coming up > > we have been facing a race condition between AER and hoptplug stack which is > happening after suspend when device is unplugged, to avoid that we have used > below three patches. > > 1 - To Avoid lockdep > > https://lore.kernel.org/linux-pci/908047f7699d9de9ec2efd6b79aa752d73dab4b6.1595329748.git.lukas@xxxxxxxxx/ > > 2 - AER sleep transition patch > https://lore.kernel.org/linux-pci/20220127025418.1989642-1-kai.heng.feng@xxxxxxxxxxxxx/ > > 3 - DPC sleep transition patch > https://lore.kernel.org/linux-pci/20220127025418.1989642-2-kai.heng.feng@xxxxxxxxxxxxx/ > > > Additional info when we are using unplug using sysfs we dont see the issue