Skip to content

scsi: smartpqi: fix PCIe hot reset recovery

Mateusz Nowicki linux-scsi lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2scsi: smartpqi: add pci_error_handlers for bus reset recoverydrivers/scsi/smartpqi/smartpqi_init.c+47 -00 replies
2/2scsi: smartpqi: increase SIS ctrl ready resume timeout to 180sdrivers/scsi/smartpqi/smartpqi_sis.c+1 -10 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchLaurence Oberman
SeriesT-b R-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] scsi: smartpqi: fix PCIe hot reset recovery

A PCIe bus reset (e.g. "echo 1 > /sys/bus/pci/devices/<bdf>/reset") on a controller without FLR support leaves the HPE SR932i-p Gen10+ unusable until reboot: smartpqi registers no pci_error_handlers, so the driver is not notified, firmware reverts to SIS mode, and all queue mappings are dropped while the driver still drives PQI.

Patch 1 adds .reset_prepare / .reset_done reusing pqi_ofa_ctrl_quiesce() / _unquiesce() / pqi_ctrl_init_resume().

Patch 2 raises SIS_CTRL_READY_RESUME_TIMEOUT_SECS from 90s to 180s, matching the cold-boot path; without this patch 1 fails at the SIS ready check because firmware boot after reset takes ~125s on the SR932i-p Gen10+.

Tested on HPE SR932i-p Gen10+ against Linus' master at 74fe02ce122a.

Note: the From: header is my Posteo address because my employer's SMTP is unavailable for external mailing lists. The Signed-off-by carries the Microchip attribution.

Mateusz Nowicki (2):
scsi: smartpqi: add pci_error_handlers for bus reset recovery
scsi: smartpqi: increase SIS ctrl ready resume timeout to 180s

 drivers/scsi/smartpqi/smartpqi_init.c | 47 +++++++++++++++++++++++++++
 drivers/scsi/smartpqi/smartpqi_sis.c  |  2 +-
 2 files changed, 48 insertions(+), 1 deletion(-)

--
2.43.0