]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] Use it_offset not pte_offset in cell IOMMU code
authorMichael Ellerman <michael@ellerman.id.au>
Fri, 29 Feb 2008 07:33:23 +0000 (18:33 +1100)
committerArnd Bergmann <arnd@arndb.de>
Mon, 3 Mar 2008 07:03:15 +0000 (08:03 +0100)
commit1082317a940d127146f5d58bfff90333a7fffb71
tree11787b0cc75354af5fe44187cb36840f8dfac18c
parentbf7b399e9a0d44a8f845fa0864f3b67a1855a1b2
[POWERPC] Use it_offset not pte_offset in cell IOMMU code

The cell IOMMU tce build and free routines use pte_offset to convert
the index passed from the generic IOMMU code into a page table offset.

This takes into account the SPIDER_DMA_OFFSET which sets the top bit
of every DMA address.

However it doesn't cater for the IOMMU window starting at a non-zero
address, as the base of the window is not incorporated into pte_offset
at all.

As it turns out tbl->it_offset already contains the value we need, it
takes into account the base of the window and also pte_offset. So use
it instead!

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