Linux SCSI subsystem development
 help / color / mirror / Atom feed
* [PATCH 0/2] scsi: smartpqi: fix PCIe hot reset recovery
@ 2026-05-06 14:01 Mateusz Nowicki
  2026-05-06 14:01 ` [PATCH 1/2] scsi: smartpqi: add pci_error_handlers for bus " Mateusz Nowicki
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Mateusz Nowicki @ 2026-05-06 14:01 UTC (permalink / raw)
  To: don.brace
  Cc: martin.petersen, James.Bottomley, storagedev, linux-scsi,
	linux-kernel

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-05-07 10:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-06 14:01 [PATCH 0/2] scsi: smartpqi: fix PCIe hot reset recovery Mateusz Nowicki
2026-05-06 14:01 ` [PATCH 1/2] scsi: smartpqi: add pci_error_handlers for bus " Mateusz Nowicki
2026-05-06 14:01 ` [PATCH 2/2] scsi: smartpqi: increase SIS ctrl ready resume timeout to 180s Mateusz Nowicki
2026-05-06 22:21 ` [PATCH 0/2] scsi: smartpqi: fix PCIe hot reset recovery Laurence Oberman
2026-05-07  1:45   ` Laurence Oberman
2026-05-07 10:27     ` mateusz.nowicki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox