Re: [PATCH 1/4] powerpc: Dynamic DMA zone limits

2014-10-14 Thread Scott Wood
On Mon, 2014-10-13 at 20:00 +1100, Michael Ellerman wrote: On Mon, 2014-10-13 at 18:14 +1100, Anton Blanchard wrote: Hi Scott, 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

Re: [PATCH 1/4] powerpc: Dynamic DMA zone limits

2014-10-14 Thread Benjamin Herrenschmidt
On Tue, 2014-10-14 at 09:39 +0200, Scott Wood wrote: For a short-term workaround, I'd rather leave CONFIG_ZONE_DMA32 where it is and put #ifdef CONFIG_FSL_SOC (with a comment) around the whole thing. I'd like to not enable CONFIG_ZONE_DMA32 when we don't need it, ie, on !BOOKE 64-bit Cheers,

Re: [PATCH 1/4] powerpc: Dynamic DMA zone limits

2014-10-14 Thread Scott Wood
On Tue, 2014-10-14 at 18:57 +1100, Benjamin Herrenschmidt wrote: On Tue, 2014-10-14 at 09:39 +0200, Scott Wood wrote: For a short-term workaround, I'd rather leave CONFIG_ZONE_DMA32 where it is and put #ifdef CONFIG_FSL_SOC (with a comment) around the whole thing. I'd like to not

Re: [PATCH 1/4] powerpc: Dynamic DMA zone limits

2014-10-13 Thread Anton Blanchard
Hi Scott, 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. This patch breaks my POWER8 box: ipr

Re: [PATCH 1/4] powerpc: Dynamic DMA zone limits

2014-10-13 Thread Benjamin Herrenschmidt
On Mon, 2014-10-13 at 18:14 +1100, Anton Blanchard wrote: Hi Scott, 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

Re: [PATCH 1/4] powerpc: Dynamic DMA zone limits

2014-10-13 Thread Michael Ellerman
On Mon, 2014-10-13 at 18:14 +1100, Anton Blanchard wrote: Hi Scott, 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

[PATCH 1/4] powerpc: Dynamic DMA zone limits

2014-08-08 Thread Scott Wood
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 scottw...@freescale.com Cc: Shaohui