Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: ufshcd: set max_segment_size in the scsi host template

We need to also mirror the value to the device to ensure IOMMU merging
doesn't undo it, and the SCSI host level parameter will ensure that.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Christoph Hellwig and committed by
Martin K. Petersen
552a990c bdd17bde

+1 -2
+1 -2
drivers/scsi/ufs/ufshcd.c
··· 4586 4586 struct request_queue *q = sdev->request_queue; 4587 4587 4588 4588 blk_queue_update_dma_pad(q, PRDT_DATA_BYTE_COUNT_PAD - 1); 4589 - blk_queue_max_segment_size(q, PRDT_DATA_BYTE_COUNT_MAX); 4590 - 4591 4589 return 0; 4592 4590 } 4593 4591 ··· 7019 7021 .sg_tablesize = SG_ALL, 7020 7022 .cmd_per_lun = UFSHCD_CMD_PER_LUN, 7021 7023 .can_queue = UFSHCD_CAN_QUEUE, 7024 + .max_segment_size = PRDT_DATA_BYTE_COUNT_MAX, 7022 7025 .max_host_blocked = 1, 7023 7026 .track_queue_depth = 1, 7024 7027 .sdev_groups = ufshcd_driver_groups,