linux/arch/powerpc/platforms
Michael Ellerman 99e139126a [POWERPC] Cell IOMMU fixed mapping support
This patch adds support for setting up a fixed IOMMU mapping on certain
cell machines.  For 64-bit devices this avoids the performance overhead of
mapping and unmapping pages at runtime.  32-bit devices are unable to use
the fixed mapping.

The fixed mapping is established at boot, and maps all of physical memory
1:1 into device space at some offset.  On machines with < 30 GB of memory
we setup the fixed mapping immediately above the normal IOMMU window.

For example a machine with 4GB of memory would end up with the normal
IOMMU window from 0-2GB and the fixed mapping window from 2GB to 6GB. In
this case a 64-bit device wishing to DMA to 1GB would be told to DMA to
3GB, plus any offset required by firmware.  The firmware offset is encoded
in the "dma-ranges" property.

On machines with 30GB or more of memory, we are unable to place the fixed
mapping above the normal IOMMU window as we would run out of address space.
Instead we move the normal IOMMU window to coincide with the hash page
table, this region does not need to be part of the fixed mapping as no
device should ever be DMA'ing to it.  We then setup the fixed mapping
from 0 to 32GB.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2008-01-31 12:11:11 +11:00
..
8xx [POWERPC] CPM: Rename commproc to cpm1 and cpm2_common.c to cpm2.c 2008-01-28 08:31:05 -06:00
40x [POWERPC] Enable RTC for Ebony and Walnut (v2) 2008-01-25 07:07:26 -06:00
44x [POWERPC] 4xx: PIKA Warp base platform 2008-01-25 07:09:42 -06:00
52xx [POWERPC] Add common clock setting routine mpc52xx_psc_set_clkdiv() 2008-01-26 15:32:18 -07:00
82xx [POWERPC] 82xx and embedded6xx: Use machine_*_initcall() hooks in platform code 2008-01-28 08:30:41 -06:00
83xx [POWERPC] 83xx: rework platform Kconfig 2008-01-28 13:15:24 -06:00
85xx [POWERPC] 85xx: convert sbc85* boards to use machine_device_initcall 2008-01-28 13:15:26 -06:00
86xx [POWERPC] 86xx: MPC8641 HPCN - call of_platform_bus_probe() 2008-01-23 19:35:02 -06:00
cell [POWERPC] Cell IOMMU fixed mapping support 2008-01-31 12:11:11 +11:00
celleb [POWERPC] Have celleb use its own dma_direct_offset variable 2008-01-25 22:52:54 +11:00
chrp [POWERPC] Autodetect serial console on pegasos2 2008-01-25 22:52:55 +11:00
embedded6xx [POWERPC] 82xx and embedded6xx: Use machine_*_initcall() hooks in platform code 2008-01-28 08:30:41 -06:00
iseries [POWERPC] iSeries: eliminate pci_dn bussubno 2008-01-17 14:57:05 +11:00
maple [POWERPC] Use <linux/of_{platform, device}.h> and not <asm/...> variants. 2008-01-17 14:58:57 +11:00
pasemi Merge branch 'linux-2.6' 2008-01-31 11:25:51 +11:00
powermac Merge branch 'linux-2.6' 2008-01-31 11:25:51 +11:00
prep [POWERPC] Split several platforms into their respective Kconfig file 2007-03-22 10:07:32 -05:00
ps3 [POWERPC] PS3: Remove lpar address workaround 2008-01-25 22:52:53 +11:00
pseries Merge branch 'linux-2.6' 2008-01-31 11:25:51 +11:00
fsl_uli1575.c [POWERPC] Fix interrupt routing and setup of ULI M1575 on FSL boards 2007-08-17 13:22:16 -05:00
Kconfig [POWERPC] 83xx: rework platform Kconfig 2008-01-28 13:15:24 -06:00
Kconfig.cputype [POWERPC] 83xx: rework platform Kconfig 2008-01-28 13:15:24 -06:00
Makefile [POWERPC] Walnut board support 2007-09-07 07:51:24 -05:00