[PATCH v2] powerpc: Only do dynamic DMA zone limits on platforms that need it

Scott Wood scottwood at freescale.com
Fri Oct 17 08:39:28 AEDT 2014


On Thu, 2014-10-16 at 17:47 +1100, Michael Ellerman wrote:
> Scott's patch 1c98025c6c95 "Dynamic DMA zone limits" changed
> dma_direct_alloc_coherent() to start using dev->coherent_dma_mask.
> 
> That seems fair enough, but it exposes the fact that some of the drivers
> we care about on IBM platforms aren't setting the coherent mask.
> 
> The proper fix is to have drivers set the coherent mask and also have
> the platform code honor it.
> 
> For now, just restrict the dynamic DMA zone limits to the platforms that
> need it.
> 
> Signed-off-by: Michael Ellerman <mpe at ellerman.id.au>
> ---
>  arch/powerpc/kernel/dma.c | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> v2: Use FSL_SOC.

Acked-by: Scott Wood <scottwood at freescale.com>

-Scott




More information about the Linuxppc-dev mailing list