Skip to content
Commit 7d6db80b authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

sparc32: use DMA_DIRECT_REMAP



Use the generic dma remapping allocator instead of open coding it.
This also avoids setting up page tables from irq context which is
generally dangerous and uses the atomic pool instead.

Note that this changes the kernel virtual address at which the
dma coherent memory is mapped from the DVMA_VADDR region to the general
vmalloc pool.  I could not find any indication that this matters
for the hardware.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Tested-by: default avatarAndreas Larsson <andreas@gaisler.com>
Acked-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 837e80b3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment