]> git.baikalelectronics.ru Git - 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)
commit65d437e3c94851d5382e6185aaa7f65ee07a55db
tree354897c6740870db26889831086d7a0a610d77fa
parent78ebd4ee566f5375a4442957615eb0d8b020bb93
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