]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Only do dynamic DMA zone limits on platforms that need it
authorMichael Ellerman <mpe@ellerman.id.au>
Thu, 16 Oct 2014 06:43:02 +0000 (17:43 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 16 Oct 2014 22:21:44 +0000 (09:21 +1100)
commit110c96b0e6fed5d3be1dd83dccb7ca70b3b78df7
tree967a3e145fd53ecace33692d15be25a150d0c498
parent658b39dd55380df4c694b696b5614b6ef9bb9a3b
powerpc: Only do dynamic DMA zone limits on platforms that need it

Scott's patch 34a4f64470a5 "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@ellerman.id.au>
Acked-by: Scott Wood <scottwood@freescale.com>
arch/powerpc/kernel/dma.c