]> 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)
committerAlexander Motin <mav@FreeBSD.org>
Fri, 16 Apr 2021 19:50:34 +0000 (15:50 -0400)
commit3e347834200b5d91a33384e696793e4ac20a44d4
treee517d4df649b31c524bc3033e6629f8c23b4542e
parent8434a65ce49bd6bc6779f0e57b0ce0f4bc46f48e
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.

MFC after: 1 week
Sponsored by: iXsystems, Inc.
sys/dev/pms/freebsd/driver/ini/src/agdef.h
sys/dev/pms/freebsd/driver/ini/src/agtiapi.c