[PATCH] powerpc/cell: add iommu support for larger memory
authorJens.Osterkamp@de.ibm.com <Jens.Osterkamp@de.ibm.com>
Fri, 9 Dec 2005 18:04:20 +0000 (19:04 +0100)
committerPaul Mackerras <paulus@samba.org>
Mon, 9 Jan 2006 03:53:24 +0000 (14:53 +1100)
commit49d65b3ac5614431041abcd2eabc0d77eff5e32d
treedf090de4f35468904fc37011ac06b9316393ff0f
parent38307341af3a0be8ec5319756361b51ac29dffc7
[PATCH] powerpc/cell: add iommu support for larger memory

So far, the iommu code was hardwired to a linear mapping
between 0x20000000 and 0x40000000, so it could only support
512MB of RAM.

This patch still keeps the linear mapping, but looks for
proper ibm,dma-window properties to set up larger windows,
this makes the maximum supported RAM size 2GB.

If there is anything unusual about the dma-window properties,
we fall back to the old behavior.

We also support switching off the iommu completely now
with the regular iommu=off command line option.

Signed-off-by: Arnd Bergmann <arndb@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/cell/iommu.c