]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scsi: qla2xxx: Query FW again before proceeding with login
authorAnil Gurumurthy <agurumurthy@marvell.com>
Wed, 10 Dec 2025 10:16:02 +0000 (15:46 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 17 Dec 2025 03:34:23 +0000 (22:34 -0500)
commit42b2dab4340d39b71334151e10c6d7d9b0040ffa
tree495f5a5a137b82ddcb0be2649cb5b9a4ef6f4c6d
parentb6df15aec8c3441357d4da0eaf4339eb20f5999f
scsi: qla2xxx: Query FW again before proceeding with login

Issue occurred during a continuous reboot test of several thousand
iterations specific to a fabric topo with dual mode target where it
sends a PLOGI/PRLI and then sends a LOGO. The initiator was also in the
process of discovery and sent a PLOGI to the switch. It then queried a
list of ports logged in via mbx 75h and the GPDB response indicated that
the target was logged in. This caused a mismatch in the states between
the driver and FW.  Requery the FW for the state and proceed with the
rest of discovery process.

Fixes: a4239945b8ad ("scsi: qla2xxx: Add switch command to simplify fabric discovery")
Cc: stable@vger.kernel.org
Signed-off-by: Anil Gurumurthy <agurumurthy@marvell.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Reviewed-by: Himanshu Madhani <hmadhani2024@gmail.com>
Link: https://patch.msgid.link/20251210101604.431868-11-njavali@marvell.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_init.c
drivers/scsi/qla2xxx/qla_isr.c