On Monday 22 March 2010 7:40:18 am Gary Jennejohn wrote:
that
The problem is the drivers that _don't_ reference MAXPHYS. The driver author
at the time "knew" that MAXPHYS was 128k, so he did the MAXPHYS-dependent
calculation and just put the result in the driver (e.g. only supporting up to
32 segments (32 4k pages == 128k) in a bus dma tag as a magic number to
bus_dma_tag_create() w/o documenting that the '32' was derived from 128k or
what the actual hardware limit on nsegments is). These cannot be found by a
simple grep, they require manually inspecting each driver.
--
John Baldwin
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"