HomeFreeBSD

mrsas: Use mrsas_sge64 instead of iovec for the S/G list for passthru.

Description

mrsas: Use mrsas_sge64 instead of iovec for the S/G list for passthru.

The DMA scatter/gather list for mrsas passthrough ioctl commands is
stored in a SGL at the end of the DCMD frame. Given the SGL member at
the end of the DCMD frame it seems likely this S/G list is formatted
as a fixed-width structure such as the type mrsas_sge64 and not as a
iovec which contains a kernel pointer and length that vary with the
native architecture size.

Reviewed by: imp
Obtained from: CheriBSD
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D40727

Details

Provenance
jhbAuthored on Jun 28 2023, 6:10 PM
Reviewer
imp
Differential Revision
D40727: mrsas: Use mrsas_sge64 instead of iovec for the S/G list for passthru.
Parents
rG3767de839742: arm64 pmap: Tidy up pmap_promote_l2() calls
Branches
Unknown
Tags
Unknown