Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit bb9e6d65 authored by FUJITA Tomonori's avatar FUJITA Tomonori Committed by David Woodhouse
Browse files

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: default avatarFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Reviewed-by: default avatarGrant Grundler <grundler@parisc-linux.org>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent f609891f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment