HomeFreeBSD

mpi3mr: configure larger max I/O size if the HBA firmware supports it

Description

mpi3mr: configure larger max I/O size if the HBA firmware supports it

The max I/O size that an mpi3mr HBA supports is reported in the IOCFacts
structure (with 0 representing the legacy max I/O size of 1 MB).
By default, set the max I/O size of devices attached to mpi3mr controllers
to the smaller of the HBA's max I/O size and the kernel's maxphys.
Allow this default to be overriden by a global tunable
"hw.mpi3mr.max_sgl_entries" or by a per-controller tunable
"dev.mpi3mr.N.max_sgl_entries".

Sponsored by: Netflix
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D49090

(cherry picked from commit f2605f67a13eb1f1427ee58a097791ca25359a5e)

Details

Provenance
chsAuthored on Apr 23 2025, 11:11 PM
impCommitted on Apr 30 2025, 5:05 PM
Reviewer
imp
Differential Revision
D49090: mpi3mr: configure larger max I/O size if the HBA firmware supports it
Parents
rG1fc80c01391e: mpi3mr: Track IO per target counter during queue poll with local variable
Branches
Unknown
Tags
Unknown