DragonFly commits List (threaded) for 2009-02
DragonFly BSD
DragonFly commits List (threaded) for 2009-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

DragonFly-2.3.0.111.gf3f55 master sys/platform/pc32/i386 busdma_machdep.c


From: Sepherosa Ziehau <sephe@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 17 Feb 2009 03:31:23 -0800 (PST)

commit f3f5501900ce606821ddfa39a779d312e6d7426d
Author: Sepherosa Ziehau <sephe@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]