diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2010-05-03 16:36:22 +0400 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2010-05-04 10:27:18 +0400 |
commit | b8b14c66765ccba884c5c4570bf8be361d211d95 (patch) | |
tree | 2891c2ee4396a5f3939a705cc720dcb3518a7afb /drivers/parisc/iosapic_private.h | |
parent | 66f41d4c5c8a5deed66fdcc84509376c9a0bf9d8 (diff) | |
download | linux-b8b14c66765ccba884c5c4570bf8be361d211d95.tar.xz |
powerpc/swiotlb: Fix off by one in determining boundary of which ops to use
When we compare the devices DMA mask to the amount of memory we need to
make sure we treat the DMA mask as an address boundary. For example if
the DMA_MASK(32) and we have 4G of memory we'd incorrectly set the dma
ops to swiotlb. We need to add one to the dma mask when we convert it.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'drivers/parisc/iosapic_private.h')
0 files changed, 0 insertions, 0 deletions