]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
powerpc/fsl_sata: Properly clamp maxio to pessimized size
authorJustin Hibbits <jhibbits@FreeBSD.org>
Fri, 5 Aug 2022 01:28:21 +0000 (21:28 -0400)
committerJustin Hibbits <jhibbits@FreeBSD.org>
Fri, 5 Aug 2022 01:32:03 +0000 (21:32 -0400)
commitc0665d5c82407a41591532ac75bc37a13d3314e6
tree10ca2ec24226d024d3c2a91ec1ccd98ec871f1fe
parente24c5c60d724120d137f9e5db4e59cf67fd06ba2
powerpc/fsl_sata: Properly clamp maxio to pessimized size

The CAM 'maxio' is a 'pessimized' size, assuming 4k pages and one page
per segment.  Since there are at most 63 segments in a transaction with
this driver, and one would necessarily be the indirect segment marker,
clamp the maxio to the minimum of maxphys (tunable) or (63 - 1) pages
(248k).

MFC after: 3 days
sys/powerpc/mpc85xx/fsl_sata.c