------- Comment From niklas.schne...@ibm.com 2020-05-07 09:31 EDT------- Ok I can provide a backport. pci_dev_is_added() was added in
44bda4b7d26e9 PCI: Fix is_added/is_busmaster race condition It looks to me like we can just replace the call with "dev-is_added" but I'll have to test this. Indeed, the first patch alone fixes the original problem, the second only fixes a racing deadlock that could happen when /sys/bus/pci/devices/<dev>/recover (which previously didn't work) collides with /sys/bus/pci/slots/<slot>/power. This should be quite hard to hit but nevertheless I'd like this to get fixed as well. ------- Comment From niklas.schne...@ibm.com 2020-05-07 09:32 EDT------- "dev->is_added" of course. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1870320 Title: [UBUNTU 18.04] zpcictl --reset - contribution for kernel Status in Ubuntu on IBM z Systems: Confirmed Status in linux package in Ubuntu: Fix Released Status in linux source package in Bionic: Confirmed Status in linux source package in Eoan: Fix Released Status in linux source package in Focal: Fix Released Status in linux source package in Groovy: Fix Released Bug description: This Bug tracks the necessary backport for the Linux Kernel to enable proper reset/recovery of PCI Functions in the error state. There is a related fix to s390-tools but the relevant zpcictl command is not part of Ubuntu 18.04 Upstream this includes the following commits: In the Kernel: 17cdec960cf776b20b1fb08c622221babe591d51 s390/pci: Recover handle in clp_set_pci_fn() Backport patch attached. 576c75e36c689bec6a940e807bae27291ab0c0de s390/pci: Fix possible deadlock in recover_store() applies cleanly but for the second a small backport change is necessary. These fixes are already in 20.04 but need also be applied to 18.04. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/1870320/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp