linux-stable/drivers/scsi/lpfc
James Smart 7f4c5a26f7 scsi: lpfc: Fix pt2pt NVMe PRLI reject LOGO loop
When connected point to point, the driver does not know the FC4's supported
by the other end. In Fabrics, it can query the nameserver.  Thus the driver
must send PRLIs for the FC4s it supports and enable support based on the
acc(ept) or rej(ect) of the respective FC4 PRLI.  Currently the driver
supports SCSI and NVMe PRLIs.

Unfortunately, although the behavior is per standard, many devices have
come to expect only SCSI PRLIs. In this particular example, the NVMe PRLI
is properly RJT'd but the target decided that it must LOGO after seeing the
unexpected NVMe PRLI. The LOGO causes the sequence to restart and login is
now in an infinite failure loop.

Fix the problem by having the driver, on a pt2pt link, remember NVMe PRLI
accept or reject status across logout as long as the link stays "up".  When
retrying login, if the prior NVMe PRLI was rejected, it will not be sent on
the next login.

Link: https://lore.kernel.org/r/20220212163120.15385-1-jsmart2021@gmail.com
Cc: <stable@vger.kernel.org> # v5.4+
Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2022-02-14 22:07:51 -05:00
..
lpfc.h scsi: lpfc: Fix pt2pt NVMe PRLI reject LOGO loop 2022-02-14 22:07:51 -05:00
lpfc_attr.c scsi: lpfc: Fix pt2pt NVMe PRLI reject LOGO loop 2022-02-14 22:07:51 -05:00
lpfc_attr.h
lpfc_bsg.c scsi: lpfc: Add bsg support for retrieving adapter cmf data 2021-08-24 22:56:34 -04:00
lpfc_bsg.h scsi: lpfc: Copyright updates for 14.0.0.1 patches 2021-08-24 22:56:34 -04:00
lpfc_compat.h
lpfc_crtn.h scsi: lpfc: Allow fabric node recovery if recovery is in progress before devloss 2021-10-20 23:33:46 -04:00
lpfc_ct.c scsi: lpfc: Add EDC ELS support 2021-08-24 22:56:33 -04:00
lpfc_debugfs.c SCSI misc on 20220113 2022-01-14 14:37:34 +01:00
lpfc_debugfs.h scsi: lpfc: Adjust CMF total bytes and rxmonitor 2021-12-06 22:35:37 -05:00
lpfc_disc.h scsi: lpfc: Allow fabric node recovery if recovery is in progress before devloss 2021-10-20 23:33:46 -04:00
lpfc_els.c scsi: lpfc: Fix pt2pt NVMe PRLI reject LOGO loop 2022-02-14 22:07:51 -05:00
lpfc_hbadisc.c scsi: lpfc: Trigger SLI4 firmware dump before doing driver cleanup 2021-12-06 22:35:36 -05:00
lpfc_hw.h scsi: lpfc: Use struct_group to isolate cast to larger object 2021-12-13 23:31:40 -05:00
lpfc_hw4.h Merge branch '5.15/scsi-fixes' into 5.16/scsi-staging 2021-10-12 11:58:12 -04:00
lpfc_ids.h
lpfc_init.c scsi: lpfc: Reduce log messages seen after firmware download 2022-02-07 23:45:02 -05:00
lpfc_logmsg.h scsi: lpfc: Copyright updates for 14.0.0.1 patches 2021-08-24 22:56:34 -04:00
lpfc_mbox.c
lpfc_mem.c scsi: lpfc: Copyright updates for 14.0.0.1 patches 2021-08-24 22:56:34 -04:00
lpfc_nl.h
lpfc_nportdisc.c scsi: lpfc: Fix pt2pt NVMe PRLI reject LOGO loop 2022-02-14 22:07:51 -05:00
lpfc_nvme.c Merge branch '5.15/scsi-fixes' into 5.16/scsi-staging 2021-10-12 11:58:12 -04:00
lpfc_nvme.h scsi: lpfc: Add cmf_info sysfs entry 2021-08-24 22:56:34 -04:00
lpfc_nvmet.c scsi: lpfc: Improve PBDE checks during SGL processing 2021-09-14 23:33:22 -04:00
lpfc_scsi.c scsi: lpfc: Change return code on I/Os received during link bounce 2021-12-06 22:35:36 -05:00
lpfc_scsi.h
lpfc_sli.c scsi: lpfc: Reduce log messages seen after firmware download 2022-02-07 23:45:02 -05:00
lpfc_sli.h scsi: lpfc: Add support for the CM framework 2021-08-24 22:56:34 -04:00
lpfc_sli4.h scsi: lpfc: Fix EEH support for NVMe I/O 2021-09-14 23:33:21 -04:00
lpfc_version.h scsi: lpfc: Update lpfc version to 14.0.0.4 2021-12-06 22:35:37 -05:00
lpfc_vport.c scsi: lpfc: Fix NPIV port deletion crash 2021-12-06 22:35:36 -05:00
lpfc_vport.h
Makefile