powerpc/dma: Fix dma_iommu_dma_supported compare
authorNishanth Aravamudan <nacc@us.ibm.com>
Wed, 15 Sep 2010 08:05:45 +0000 (08:05 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 13 Oct 2010 05:19:21 +0000 (16:19 +1100)
commit1cb8e85a9d9da4192acfb5f70a80b0c5ce8c3e8f
tree71b6b99951418f2466c633747af886e438b91dbf
parentdda804ad4023cc202466c46fcfcc163131953838
powerpc/dma: Fix dma_iommu_dma_supported compare

The table offset is in entries, each of which imply a dma address of
an IOMMU page.

Also, we should check the device can reach the whole IOMMU table.

Signed-off-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/dma-iommu.c