[PATCH] powerpc: use the generic dma coherent remap allocator
Christophe Leroy
christophe.leroy at c-s.fr
Thu Aug 15 00:21:42 AEST 2019
Le 14/08/2019 à 15:22, Christoph Hellwig a écrit :
> This switches to using common code for the DMA allocations, including
> potential use of the CMA allocator if configured.
>
> Switching to the generic code enables DMA allocations from atomic
> context, which is required by the DMA API documentation, and also
> adds various other minor features drivers start relying upon. It
> also makes sure we have on tested code base for all architectures
> that require uncached pte bits for coherent DMA allocations.
>
> Another advantage is that consistent memory allocations now share
> the general vmalloc pool instead of needing an explicit careout
> from it.
>
> Signed-off-by: Christoph Hellwig <hch at lst.de>
Tested-by: Christophe Leroy <christophe.leroy at c-s.fr> # tested on 8xx
> ---
> arch/powerpc/Kconfig | 12 -
> arch/powerpc/include/asm/book3s/32/pgtable.h | 12 +-
> arch/powerpc/include/asm/nohash/32/pgtable.h | 12 +-
> arch/powerpc/mm/dma-noncoherent.c | 318 +------------------
> arch/powerpc/mm/mem.c | 4 -
> arch/powerpc/mm/ptdump/ptdump.c | 9 -
> arch/powerpc/platforms/Kconfig.cputype | 2 +
> 7 files changed, 17 insertions(+), 352 deletions(-)
>
More information about the Linuxppc-dev
mailing list