git: busdma: Add PROTECTED bus_dma_tag_create() flag.

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Sat Jan 8 07:17:16 PST 2011


commit c26842b6106804dc56cbcd5031662d4553b57a0c
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Mon Dec 27 16:24:03 2010 +0800

    busdma: Add PROTECTED bus_dma_tag_create() flag.
    
    PROTECTED
      All of the functions called with the dma_tag are already protected by
      the caller, so busdma code need not to protect the internal data
      structures.  Panic, if the "defered dmamap load callback" is going to
      happen.
    
    When used along with PRIVBZONE, ALLOCALL and ALLOCNOW, it could greatly
    reduce the work load of fixing all of the drivers that mal-use busdma
    functions.

Summary of changes:
 sys/platform/pc32/i386/busdma_machdep.c   |   10 ++++++++++
 sys/platform/pc64/x86_64/busdma_machdep.c |   10 ++++++++++
 sys/sys/bus_dma.h                         |    2 ++
 3 files changed, 22 insertions(+), 0 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c26842b6106804dc56cbcd5031662d4553b57a0c


-- 
DragonFly BSD source repository





More information about the Commits mailing list