[PATCH] pasemi: Fix coherent_dma_mask for dma engine

Darren Stevens darren at stevens-zone.net
Thu Jul 28 00:41:29 AEST 2016


    Commit 817820b0226a ("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 at stevens-zone.net>
  
---
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: iommu.patch
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20160727/709093f6/attachment.ksh>


More information about the Linuxppc-dev mailing list