]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
intel-iommu: use coherent_dma_mask in alloc_coherent
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Wed, 15 Oct 2008 07:08:28 +0000 (16:08 +0900)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 18 Oct 2008 13:46:16 +0000 (14:46 +0100)
commitbb9e6d65078da2f38cfe1067cfd31a896ca867c0
tree1cfd3a2213609aeeee0bcee160ab15645dd29c38
parentf609891f428e1c20e270e7c350daf8c93cc459d7
intel-iommu: use coherent_dma_mask in alloc_coherent

This patch fixes intel-iommu to use dev->coherent_dma_mask in
alloc_coherent. Currently, intel-iommu uses dev->dma_mask in
alloc_coherent but alloc_coherent is supposed to use
coherent_dma_mask. It could break drivers that uses smaller
coherent_dma_mask than dma_mask (though the current code works for the
majority that use the same mask for coherent_dma_mask and dma_mask).

[dwmw2: dma_mask can be bigger than 'unsigned long']
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Reviewed-by: Grant Grundler <grundler@parisc-linux.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/pci/intel-iommu.c