[PATCH v2 0/2] scsi: megaraid_sas: fix JBOD I/O hang in kdump
From: Ionut Nechita (Wind River)
Date: Tue Nov 24 2026 - 10:15:14 EST
From: Ionut Nechita <ionut.nechita@xxxxxxxxxxxxx>
On a MegaRAID SAS3508 with SATA drives in JBOD mode, a kdump kernel
(reset_devices) hangs forever reading the dump target: every READ to the
JBOD drives completes with MFI_STAT_SCSI_DONE_WITH_ERROR (0x2d), GOOD
status and no data, and the SCSI midlayer requeues it without limit.
Patch 1 makes such completions consume a retry, so the I/O fails after
cmd->allowed attempts instead of looping. It is a defensive fix and also
covers the hung tasks reported on production systems with the same
firmware status.
Patch 2 fixes the cause in the kdump case. With reset_devices the driver
disables the JBOD sequence map, has no device handle for the drives, and
still sends READ/WRITE down the fast path with DevHandle 0xFFFF. The
controller terminal log shows the firmware rejecting each of them with
"Out of range devHandle ffff". Patch 2 sends such I/O down the firmware
path instead.
The analysis was done on an Intel S2600WFQ with SAS3508 (FW 5.020.00-0838)
and two Intel SSDSC2KB96 SATA SSDs in JBOD, on a 6.18-rt based kernel:
the kdump kernel loops as described, and dropping reset_devices (so the
sequence map is used) lets the dump complete. The two patches are
build-tested (W=1) on next-20261123; they have not been runtime-tested
in the kdump kernel yet.
v1: https://lore.kernel.org/all/20260208180603.568353-2-sunlightlinux@xxxxxxxxx/
Ionut Nechita (2):
scsi: megaraid_sas: retry zero-byte DONE_WITH_ERROR with GOOD status
scsi: megaraid_sas: don't use the fast path for system PDs without a
device handle
drivers/scsi/megaraid/megaraid_sas_fusion.c | 30 ++++++++++++++++++++-
1 file changed, 29 insertions(+), 1 deletion(-)
--
2.55.0