• A
    powerpc/dma-iommu: Fix IOMMU window check · 4c374af5
    Aaro Koskinen 提交于
    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: NAaro Koskinen <aaro.koskinen@iki.fi>
    Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
    4c374af5
dma-iommu.c 3.5 KB