]> git.ipfire.org Git - thirdparty/linux.git/commit
scsi: lpfc: Restrict support for 32 byte CDBs to specific HBAs
authorJustin Tee <justin.tee@broadcom.com>
Thu, 12 Sep 2024 23:24:42 +0000 (16:24 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 13 Sep 2024 01:21:19 +0000 (21:21 -0400)
commit05ab4e7846f1103377133c00295a9a910cc6dfc2
treee5a69056a68891e3017dd23d2efe17e8d37c6ae7
parentfc318cac66ac50398f9fc7cbec7b339e6d08a7e6
scsi: lpfc: Restrict support for 32 byte CDBs to specific HBAs

An older generation of HBAs are failing FCP discovery due to usage of an
outdated field in FCP command WQEs.

Fix by checking the SLI Interface Type register for applicable support of
32 Byte CDB commands, and restore a setting for a WQE path using normal 16
byte CDBs.

Fixes: af20bb73ac25 ("scsi: lpfc: Add support for 32 byte CDBs")
Cc: stable@vger.kernel.org # v6.10+
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Link: https://lore.kernel.org/r/20240912232447.45607-4-justintee8345@gmail.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_hw4.h
drivers/scsi/lpfc/lpfc_init.c
drivers/scsi/lpfc/lpfc_scsi.c