linux-stable-rt/arch/powerpc/platforms
Milton Miller 6a5c7be5e4 powerpc: Override dma_get_required_mask by platform hook and ops
The hook dma_get_required_mask is supposed to return the mask required
by the platform to operate efficently.  The generic version of
dma_get_required_mask in driver/base/platform.c returns a mask based
only on max_pfn.  However, this is likely too big for iommu systems
and could be too small for platforms that require a dma offset or have
a secondary window at a high offset.

Override the default, provide a hook in ppc_md used by pseries lpar and
cell, and provide the default answer based on memblock_end_of_DRAM(),
with hooks for get_dma_offset, and provide an implementation for iommu
that looks at the defined table size.  Coverting from the end address
to the required bit mask is based on the generic implementation.

The need for this was discovered when the qla2xxx driver switched to
64 bit dma then reverted to 32 bit when dma_get_required_mask said
32 bits was sufficient.

Signed-off-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Cc: linuxppc-dev@lists.ozlabs.org
Cc: linux-kernel@vger.kernel.org
Cc: benh@kernel.crashing.org
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2011-09-01 16:00:19 +10:00
..
8xx
40x powerpc/40x: Remove obsolete HCU4 board 2011-08-11 13:56:43 -04:00
44x
52xx Merge branch 'next/cross-platform' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/linux-arm-soc 2011-07-26 17:12:10 -07:00
82xx
83xx atomic: use <linux/atomic.h> 2011-07-26 16:49:47 -07:00
85xx atomic: use <linux/atomic.h> 2011-07-26 16:49:47 -07:00
86xx
512x
amigaone
cell powerpc: Override dma_get_required_mask by platform hook and ops 2011-09-01 16:00:19 +10:00
chrp Merge branch 'next/cross-platform' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/linux-arm-soc 2011-07-26 17:12:10 -07:00
embedded6xx
iseries atomic: use <linux/atomic.h> 2011-07-26 16:49:47 -07:00
maple
pasemi
powermac Merge branch 'next/cross-platform' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/linux-arm-soc 2011-07-26 17:12:10 -07:00
prep
ps3
pseries powerpc: Override dma_get_required_mask by platform hook and ops 2011-09-01 16:00:19 +10:00
wsp
Kconfig powerpc: Make KVM_GUEST default to n 2011-08-05 14:47:57 +10:00
Kconfig.cputype
Makefile
fsl_uli1575.c