HomeFreeBSD

mpt(4): Remove incorrect S/G segments limits.

Description

mpt(4): Remove incorrect S/G segments limits.

First, two of those four checks are unreachable.
Second, I don't believe there should be ">=" instead of ">".
Third, bus_dma(9) already returns the same EFBIG if ">".

This fixes false I/O errors in worst S/G cases with maxphys >= 2MB.

MFC after: 1 week

(cherry picked from commit 0f29396e493bd87ffa6a63fcb602b12e79d21a1e)

Details

Provenance
mavAuthored on Apr 17 2021, 2:41 PM
Parents
rG87c0db9d0174: Cirrus-CI: use FreeBSD 13.0 image for base system CI build
Branches
Unknown
Tags
Unknown