WSL2-Linux-Kernel/drivers/scsi/lpfc
Hannes Reinecke a74270a1b7 scsi: lpfc: Use unsigned type for num_sge
[ Upstream commit d6c1b19153f92e95e5e1801d540e98771053afae ]

LUNs going into "failed ready running" state observed on >1T and on even
numbers of size (2T, 4T, 6T, 8T and 10T). The issue occurs when DIF is
enabled at the host.

The kernel logs:

  Cannot setup S/G List for HBAIO segs 1/1 SGL 512 SCSI 256: 3 0

The host lpfc driver is failing to setup scatter/gather list (protection
data) for the I/Os.

The return type lpfc_bg_setup_sgl()/lpfc_bg_setup_sgl_prot() causes the
compiler to remove the most significant bit. Use an unsigned type instead.

Signed-off-by: Hannes Reinecke <hare@suse.de>
[dwagner: added commit message]
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Link: https://lore.kernel.org/r/20231220162658.12392-1-dwagner@suse.de
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-01 13:21:47 +01:00
..
Makefile
lpfc.h scsi: lpfc: Fix possible file string name overflow when updating firmware 2024-02-23 08:54:41 +01:00
lpfc_attr.c scsi: lpfc: Fix pt2pt NVMe PRLI reject LOGO loop 2022-02-23 12:03:20 +01:00
lpfc_attr.h
lpfc_bsg.c scsi: lpfc: Fix incorrect big endian type assignment in bsg loopback path 2023-09-19 12:22:29 +02:00
lpfc_bsg.h
lpfc_compat.h
lpfc_crtn.h scsi: lpfc: Rework MIB Rx Monitor debug info logic 2022-11-10 18:15:24 +01:00
lpfc_ct.c Revert "scsi: lpfc: SLI path split: Refactor lpfc_iocbq" 2022-11-03 23:59:14 +09:00
lpfc_debugfs.c scsi: lpfc: Fix the NULL vs IS_ERR() bug for debugfs_create_file() 2023-09-23 11:10:01 +02:00
lpfc_debugfs.h scsi: lpfc: Rework MIB Rx Monitor debug info logic 2022-11-10 18:15:24 +01:00
lpfc_disc.h
lpfc_els.c Revert "scsi: lpfc: SLI path split: Refactor lpfc_iocbq" 2022-11-03 23:59:14 +09:00
lpfc_hbadisc.c scsi: lpfc: Fix EEH support for NVMe I/O 2022-08-17 14:24:20 +02:00
lpfc_hw.h
lpfc_hw4.h Revert "scsi: lpfc: SLI path split: Refactor fast and slow paths to native SLI4" 2022-11-03 23:59:14 +09:00
lpfc_ids.h
lpfc_init.c scsi: lpfc: Fix possible file string name overflow when updating firmware 2024-02-23 08:54:41 +01:00
lpfc_logmsg.h scsi: lpfc: Move cfg_log_verbose check before calling lpfc_dmp_dbg() 2022-06-09 10:22:32 +02:00
lpfc_mbox.c
lpfc_mem.c scsi: lpfc: Rework MIB Rx Monitor debug info logic 2022-11-10 18:15:24 +01:00
lpfc_nl.h
lpfc_nportdisc.c Revert "scsi: lpfc: SLI path split: Refactor lpfc_iocbq" 2022-11-03 23:59:14 +09:00
lpfc_nvme.c Revert "scsi: lpfc: SLI path split: Refactor lpfc_iocbq" 2022-11-03 23:59:14 +09:00
lpfc_nvme.h Revert "scsi: lpfc: SLI path split: Refactor lpfc_iocbq" 2022-11-03 23:59:14 +09:00
lpfc_nvmet.c Revert "scsi: lpfc: SLI path split: Refactor lpfc_iocbq" 2022-11-03 23:59:14 +09:00
lpfc_scsi.c scsi: lpfc: Use unsigned type for num_sge 2024-03-01 13:21:47 +01:00
lpfc_scsi.h
lpfc_sli.c scsi: lpfc: Avoid usage of list iterator variable after loop 2023-03-30 12:47:54 +02:00
lpfc_sli.h Revert "scsi: lpfc: SLI path split: Refactor lpfc_iocbq" 2022-11-03 23:59:14 +09:00
lpfc_sli4.h scsi: lpfc: Fix EEH support for NVMe I/O 2022-08-17 14:24:20 +02:00
lpfc_version.h
lpfc_vport.c
lpfc_vport.h