scsi: lpfc: Set max DMA segment size to HBA supported SGE length
authorJustin Tee <justin.tee@broadcom.com>
Mon, 9 Jan 2023 23:33:09 +0000 (15:33 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 12 Jan 2023 05:03:14 +0000 (00:03 -0500)
commitb5c894cf430e779826612cf2acb508d78bf210ce
treec112f7ba5a7df50e80f6699fae19904b2f96e6b8
parent7ab07683aa4ccf324dc369808ceb0b138d590f07
scsi: lpfc: Set max DMA segment size to HBA supported SGE length

During I/O, the following warning message occasionally appears:

DMA-API: lpfc 0000:04:00.0: mapping sg segment longer than device claims to
support [len=131072] [max=65536]

The HBA is capable of supporting 131,072 bytes, so notify DMA layer via the
dma_set_max_seg_size() API during hba initialization.

Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_init.c