Files
android_kernel_xiaomi_sm8450/arch/powerpc/kernel
Scott Wood 6397fc3fb0 powerpc/64: Honor swiotlb limit in coherent allocations
FSL PCI cannot directly address the whole lower 4 GiB due to
conflicts with PCICSRBAR and outbound windows, and thus
max_direct_dma_addr is less than 4GiB.  Honor that limit in
dma_direct_alloc_coherent().

Note that setting the DMA mask to 31 bits is not an option, since many
PCI drivers would fail if we reject 32-bit DMA in dma_supported(), and
we have no control over the setting of coherent_dma_mask if
dma_supported() returns true.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Cc: Shaohui Xie <Shaohui.Xie@freescale.com>
2014-09-03 17:58:22 -05:00
..
2014-04-18 14:20:41 +02:00
2014-06-11 19:12:23 +10:00
2014-06-11 19:12:23 +10:00
2014-05-20 10:56:01 +10:00
2014-04-07 10:33:12 +10:00
2012-03-28 18:30:02 +01:00
2014-06-11 17:04:29 +10:00
2014-03-19 19:57:14 -05:00