]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
PCI: hv: Retry PCI bus D0 entry on invalid device state
authorWei Hu <weh@microsoft.com>
Thu, 7 May 2020 05:03:00 +0000 (13:03 +0800)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 11 May 2020 11:05:05 +0000 (12:05 +0100)
commitc81992e7f4aa19a055dbff5bd6c6d5ff9408f2fb
tree354897c6740870db26889831086d7a0a610d77fa
parent83cc3508ffaa6e2cd364d29418d35fab6f069b51
PCI: hv: Retry PCI bus D0 entry on invalid device state

When kdump is triggered, some PCI devices may have not been shut down
cleanly before the kdump kernel starts.

This causes the initial attempt to enter D0 state in the kdump kernel to
fail with invalid device state returned from Hyper-V host.

When this happens, explicitly call hv_pci_bus_exit() and retry to enter
the D0 state.

Link: https://lore.kernel.org/r/20200507050300.10974-1-weh@microsoft.com
Signed-off-by: Wei Hu <weh@microsoft.com>
[lorenzo.pieralisi@arm.com: commit log]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
drivers/pci/controller/pci-hyperv.c