DragonFly-2.3.0.111.gf3f55 master sys/platform/pc32/i386 busdma_machdep.c
Sepherosa Ziehau
sephe at crater.dragonflybsd.org
Tue Feb 17 03:33:49 PST 2009
commit f3f5501900ce606821ddfa39a779d312e6d7426d
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date: Sat Jan 17 12:35:27 2009 +0800
Bounce page fix
- In bus_dma_tag_create(), make sure that:
o Alignment is power of 2
o Boundary is power of 2
o Max segment size is less than boundary
Obtained-from: FreeBSD
- When counting the pages needed by maxsize, round up the maxsize to
multiple page size first.
- For bounce zones, always round up its alignment and boundary to
page size.
- Pass 'flags' to alloc_bounce_pages(), so we could assign 'mflags'
to contigmalloc().
Summary of changes:
sys/platform/pc32/i386/busdma_machdep.c | 49 ++++++++++++++++++++++--------
1 files changed, 36 insertions(+), 13 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f3f5501900ce606821ddfa39a779d312e6d7426d
--
DragonFly BSD source repository
More information about the Commits
mailing list