]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/dma-iommu: Fix IOMMU window check
authorAaro Koskinen <aaro.koskinen@iki.fi>
Sat, 18 Aug 2012 07:34:15 +0000 (07:34 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 24 Aug 2012 10:26:07 +0000 (20:26 +1000)
commit3b7a881354a7f493a376432c1ef397fd27fc32c8
tree1f5225ba422b576ca452d647fbe42d02e8481a63
parentd24116c915738cab40f948f281c52efe50032d9f
powerpc/dma-iommu: Fix IOMMU window check

Checking for device mask to cover the whole IOMMU table is too strict.
IOMMU allocators should handle mask constraint properly for each
allocation.

The patch enables to use old AirPort Extreme cards on PowerMacs with
more than 1GB of memory; without the patch the driver init fails with:

  b43-pci-bridge 0001:01:01.0: Warning: IOMMU window too big for device mask
  b43-pci-bridge 0001:01:01.0: mask: 0x3fffffff, table end: 0x80000000
  b43-phy0 ERROR: The machine/kernel does not support the required 30-bit DMA mask

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/dma-iommu.c