]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
scsi: qedf: Fix firmware halt over suspend and resume
authorNilesh Javali <njavali@marvell.com>
Mon, 7 Aug 2023 09:37:24 +0000 (15:07 +0530)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 30 Oct 2023 11:00:08 +0000 (12:00 +0100)
commite5bf99ca06ee7d6e1d3f982fb25808701ed874db
tree26dc43be80b378c4eb597e5f26c183eca49bf3da
parent6fea6afe8957dc7f5f8a4f9591c98ed62676cd38
scsi: qedf: Fix firmware halt over suspend and resume

BugLink: https://bugs.launchpad.net/bugs/2038969
commit ef222f551e7c4e2008fc442ffc9edcd1a7fd8f63 upstream.

While performing certain power-off sequences, PCI drivers are called to
suspend and resume their underlying devices through PCI PM (power
management) interface. However the hardware does not support PCI PM
suspend/resume operations so system wide suspend/resume leads to bad MFW
(management firmware) state which causes various follow-up errors in driver
when communicating with the device/firmware.

To fix this driver implements PCI PM suspend handler to indicate
unsupported operation to the PCI subsystem explicitly, thus avoiding system
to go into suspended/standby mode.

Fixes: 61d8658b4a43 ("scsi: qedf: Add QLogic FastLinQ offload FCoE driver framework.")
Signed-off-by: Saurav Kashyap <skashyap@marvell.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Link: https://lore.kernel.org/r/20230807093725.46829-1-njavali@marvell.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/scsi/qedf/qedf_main.c