]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pasemi: Fix coherent_dma_mask for dma engine
authorDarren Stevens <darren@stevens-zone.net>
Wed, 27 Jul 2016 14:41:29 +0000 (15:41 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 8 Aug 2016 06:19:09 +0000 (16:19 +1000)
commit3f9c908cba7a5cd0d28ed72e441c84271722ced6
treecac5f41c493670fd5a857805294110c0df3d06f7
parent1372dac0367f9e37512ea4720cf3886bcb42562d
powerpc/pasemi: Fix coherent_dma_mask for dma engine

Commit 681698080dea ("powerpc/iommu: Support "hybrid" iommu/direct DMA
ops for coherent_mask < dma_mask) adds a check of coherent_dma_mask for
dma allocations.

Unfortunately current PASemi code does not set this value for the DMA
engine, which ends up with the default value of 0xffffffff, the result
is on a PASemi system with >2Gb ram and iommu enabled the the onboard
ethernet stops working due to an inability to allocate memory. Add an
initialisation to pci_dma_dev_setup_pasemi().

Signed-off-by: Darren Stevens <darren@stevens-zone.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/pasemi/iommu.c