]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: enable a 30-bit ZONE_DMA for 32-bit pmac
authorChristoph Hellwig <hch@lst.de>
Thu, 13 Jun 2019 08:24:46 +0000 (10:24 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 19 Jun 2019 12:31:20 +0000 (22:31 +1000)
commitfa9005222d06427acbd4ae9e6bbe802300047d97
tree8c47ef74097699cd4dd4d53bebf10a8ccbb7610d
parentf407272ec8b55bca3155fca0349620a2cfd0c680
powerpc: enable a 30-bit ZONE_DMA for 32-bit pmac

With the strict dma mask checking introduced with the switch to
the generic DMA direct code common wifi chips on 32-bit powerbooks
stopped working.  Add a 30-bit ZONE_DMA to the 32-bit pmac builds
to allow them to reliably allocate dma coherent memory.

Fixes: c7a7b265d797 ("powerpc/dma: remove dma_nommu_dma_supported")
Reported-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Larry Finger <Larry.Finger@lwfinger.net>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Tested-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/page.h
arch/powerpc/mm/mem.c
arch/powerpc/platforms/powermac/Kconfig