summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/dma-iommu.c
diff options
context:
space:
mode:
authorMilton Miller2011-06-24 11:05:23 +0200
committerBenjamin Herrenschmidt2011-09-20 01:18:38 +0200
commit3a8f7558e475b68254d8bc3a2211f3f89bf67a71 (patch)
tree798872b1cef90988846350f4d420954238107427 /arch/powerpc/kernel/dma-iommu.c
parentpowerpc: Override dma_get_required_mask by platform hook and ops (diff)
downloadkernel-qcow2-linux-3a8f7558e475b68254d8bc3a2211f3f89bf67a71.tar.gz
kernel-qcow2-linux-3a8f7558e475b68254d8bc3a2211f3f89bf67a71.tar.xz
kernel-qcow2-linux-3a8f7558e475b68254d8bc3a2211f3f89bf67a71.zip
dma-mapping: Add get_required_mask if arch overrides default
If an architecture sets ARCH_HAS_DMA_GET_REQUIRED_MASK and has settable dma_map_ops, the required mask may change by the ops implementation. For example, a system that always has an mmu inline may only require 32 bits while a swiotlb would desire bits to cover all of memory. Therefore add the field if the architecture does not use the generic definition of dma_get_required_mask. The first use will by by powerpc. Note that this does add some dependency on the order in which files are visible here. Signed-off-by: Milton Miller <miltonm@bga.com> Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Acked-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'arch/powerpc/kernel/dma-iommu.c')
0 files changed, 0 insertions, 0 deletions