]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/eeh: Fetch IOMMU table in reliable way
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Tue, 15 Jul 2014 07:00:56 +0000 (17:00 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 5 Aug 2014 05:41:16 +0000 (15:41 +1000)
commit681f990c7097ffc75e6300037f881b32a3f31281
treee2a77208baa48efd329b0e2b5a5b1f23607534fd
parent78111619fe2bfb76845dcd7166df56138b27d986
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 <gwshan@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/eeh.c