]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] Convert the cell IOMMU fixed mapping to 16M IOMMU pages
authorMichael Ellerman <michael@ellerman.id.au>
Fri, 29 Feb 2008 07:33:29 +0000 (18:33 +1100)
committerArnd Bergmann <arnd@arndb.de>
Mon, 3 Mar 2008 07:03:15 +0000 (08:03 +0100)
commitbb7c83348bf87b9fd45cac3a63d5fe363676b8c5
treef4f6c9687539da120e30df1955aa3bce458a8be7
parent43c62e7c23d597c46329edb04333645a86317c78
[POWERPC] Convert the cell IOMMU fixed mapping to 16M IOMMU pages

The only tricky part is we need to adjust the PTE insertion loop to
cater for holes in the page table. The PTEs for each segment start on
a 4K boundary, so with 16M pages we have 16 PTEs per segment and then
a gap to the next 4K page boundary.

It might be possible to allocate the PTEs for each segment separately,
saving the memory currently filling the gaps. However we'd need to
check that's OK with the hardware, and that it actually saves memory.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/powerpc/platforms/cell/iommu.c