Re: [PATCH v3] scsi: ufs: Increase the maximum data buffer size

Bart Van Assche
2022-08-04T17:48:08Z

On 8/3/22 18:50, yohan.joung@sk.com wrote:
> In block layer, max_segment_size is obtained from get_max_segment_size.
> seg_boundary_mask is set to PAGE_SIZE - 1 in the ufs driver.
> The segment size is the PAGE size, and the max buffer size is
> segment size * max segment count ( PAGE SIZE * 128 ) = 512 KiB in block layer
> Right?

Thanks for having reported this. I had overlooked that the UFS host
controller driver sets the dma_boundary member of the host_template
field. Is my understanding correct that UFS host controllers should
support DMA segments that consist of multiple physical pages?

Thanks,

Bart.