]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pms(4): Limit maximum I/O size to 256KB instead of 1MB.
authorAlexander Motin <mav@FreeBSD.org>
Fri, 16 Apr 2021 19:39:01 +0000 (15:39 -0400)
committerMark Johnston <markj@FreeBSD.org>
Wed, 26 May 2021 19:30:23 +0000 (15:30 -0400)
commitb62d492067ba38b93200e77bca69e89a9e887eb4
treeab73c7f718b7855cb318e2ca500ca8bf71c6627f
parentfc7402d50da8e072ded892d7ac024d939bc11fae
pms(4): Limit maximum I/O size to 256KB instead of 1MB.

There is a weird limit of AGTIAPI_MAX_DMA_SEGS (128) S/G segments per
I/O since the initial driver import.  I don't know why it was added,
can only guess some hardware limitation, but in worst case it means
maximum I/O size of 508KB.  Respect it to be safe, rounding to 256KB.

Approved by: so
Security: EN-21:14.pms
MFC after: 1 week
Sponsored by: iXsystems, Inc.

(cherry picked from commit 3e347834200b5d91a33384e696793e4ac20a44d4)
(cherry picked from commit 6514cb18d94e9ab46406b7077d207c8b1a551e6e)
sys/dev/pms/freebsd/driver/ini/src/agdef.h
sys/dev/pms/freebsd/driver/ini/src/agtiapi.c