From: Michael Ellerman Date: Fri, 29 Feb 2008 07:33:23 +0000 (+1100) Subject: [POWERPC] Use it_offset not pte_offset in cell IOMMU code X-Git-Tag: v2.6.25-rc4~120^2^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d7386ebffd8506b28c37a7d5541132a576f64e2;p=pandora-kernel.git [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 Signed-off-by: Arnd Bergmann --- Reading git-diff-tree failed