]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: pm8001: Increase request sg length to support 4MiB requests
authorIgor Pylypiv <ipylypiv@google.com>
Fri, 25 Oct 2024 18:50:09 +0000 (18:50 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 7 Nov 2024 01:45:20 +0000 (20:45 -0500)
commit53b550de463529f88c78526288260d4194cf4061
tree5b1b6a6cc87d860fdb9de9833cb1b04bff2609ef
parent4501ea5f0a5ca1a3fe58ef7b48f1bd3829c6c7e5
scsi: pm8001: Increase request sg length to support 4MiB requests

Increasing the per-request size maximum to 4MiB (8192 sectors x 512
bytes) runs into the per-device DMA scatter gather list limit
(max_segments) for users of the io vector system calls (e.g. readv and
writev).

Increase the max scatter gather list length to 1024 to enable kernel to
send 4MiB (1024 * 4KiB page size) requests.

Signed-off-by: Igor Pylypiv <ipylypiv@google.com>
Link: https://lore.kernel.org/r/20241025185009.3278297-1-ipylypiv@google.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/pm8001/pm8001_defs.h
drivers/scsi/pm8001/pm8001_init.c