kernel_samsung_a53x/drivers/scsi/lpfc
Hannes Reinecke 09da5a2437 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-11-18 22:25:34 +01:00
..
lpfc.h scsi: lpfc: Fix possible file string name overflow when updating firmware 2024-11-18 12:13:12 +01:00
lpfc_attr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_attr.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_bsg.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_bsg.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_compat.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_crtn.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_ct.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_debugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_debugfs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_disc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_els.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_hbadisc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_hw.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_hw4.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_ids.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_init.c scsi: lpfc: Fix possible file string name overflow when updating firmware 2024-11-18 12:13:12 +01:00
lpfc_logmsg.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_mbox.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_mem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_nl.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_nportdisc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_nvme.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_nvme.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_nvmet.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_scsi.c scsi: lpfc: Use unsigned type for num_sge 2024-11-18 22:25:34 +01:00
lpfc_scsi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_sli.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_sli.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_sli4.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_version.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_vport.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_vport.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00