linux/kernel/dma
Robin Murphy f07d141fe9 dma-mapping: Generalise dma_32bit_limit flag
Whilst the notion of an upstream DMA restriction is most commonly seen
in PCI host bridges saddled with a 32-bit native interface, a more
general version of the same issue can exist on complex SoCs where a bus
or point-to-point interconnect link from a device's DMA master interface
to another component along the path to memory (often an IOMMU) may carry
fewer address bits than the interfaces at both ends nominally support.
In order to properly deal with this, the first step is to expand the
dma_32bit_limit flag into an arbitrary mask.

To minimise the impact on existing code, we'll make sure to only
consider this new mask valid if set. That makes sense anyway, since a
mask of zero would represent DMA not being wired up at all, and that
would be better handled by not providing valid ops in the first place.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2018-07-27 19:01:04 +02:00
..
coherent.c dma-mapping: move all DMA mapping code to kernel/dma 2018-06-14 08:50:37 +02:00
contiguous.c dma-mapping: move all DMA mapping code to kernel/dma 2018-06-14 08:50:37 +02:00
debug.c dma-mapping: move all DMA mapping code to kernel/dma 2018-06-14 08:50:37 +02:00
direct.c dma-mapping: Generalise dma_32bit_limit flag 2018-07-27 19:01:04 +02:00
Kconfig dma-mapping: move all DMA mapping code to kernel/dma 2018-06-14 08:50:37 +02:00
Makefile dma-mapping: move all DMA mapping code to kernel/dma 2018-06-14 08:50:37 +02:00
mapping.c dma-mapping: move all DMA mapping code to kernel/dma 2018-06-14 08:50:37 +02:00
noncoherent.c dma-mapping: move all DMA mapping code to kernel/dma 2018-06-14 08:50:37 +02:00
swiotlb.c swiotlb: clean up reporting 2018-07-25 13:33:05 +02:00
virt.c dma-mapping: move all DMA mapping code to kernel/dma 2018-06-14 08:50:37 +02:00