From: Gavin Shan Date: Tue, 15 Jul 2014 07:00:56 +0000 (+1000) Subject: powerpc/eeh: Fetch IOMMU table in reliable way X-Git-Tag: omap-for-v3.17/fixes-against-rc2~134^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3032ca9f82a588f72130e94b68517b41af31f11;p=pandora-kernel.git powerpc/eeh: Fetch IOMMU table in reliable way Function eeh_iommu_group_to_pe() iterates each PCI device to check the binding IOMMU group with get_iommu_table_base(), which possibly fetches pdev->dev.archdata.dma_data.dma_offset. It's (0x1 << 59) for "bypass" cases. The patch fixes the issue by iterating devices hooked to the IOMMU group and fetch IOMMU table there. Signed-off-by: Gavin Shan Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed