powerpc: Dynamic DMA zone limits
authorScott Wood <scottwood@freescale.com>
Fri, 8 Aug 2014 23:40:42 +0000 (18:40 -0500)
committerScott Wood <scottwood@freescale.com>
Wed, 3 Sep 2014 22:58:21 +0000 (17:58 -0500)
commit1c98025c6c95bc057a25e2c6596de23288c68160
tree37475259871168c9835b78ecd3d233f870945fa1
parent78eb9094ca08a40b8f9d3e113a2b88e0b7dbad1d
powerpc: Dynamic DMA zone limits

Platform code can call limit_zone_pfn() to set appropriate limits
for ZONE_DMA and ZONE_DMA32, and dma_direct_alloc_coherent() will
select a suitable zone based on a device's mask and the pfn limits that
platform code has configured.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Cc: Shaohui Xie <Shaohui.Xie@freescale.com>
arch/powerpc/Kconfig
arch/powerpc/include/asm/pgtable.h
arch/powerpc/kernel/dma.c
arch/powerpc/mm/mem.c