projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c9fc3d
)
intel-iommu: Use coherent DMA mask when requested
author
Mike Travis
<
[email protected]
>
Sat, 28 May 2011 18:15:05 +0000
(13:15 -0500)
committer
David Woodhouse
<
[email protected]
>
Wed, 1 Jun 2011 11:47:45 +0000
(12:47 +0100)
The __intel_map_single function is not honoring the passed in DMA mask.
This results in not using the coherent DMA mask when called from
intel_alloc_coherent().
Signed-off-by: Mike Travis <
[email protected]
>
Acked-by: Chris Wright <
[email protected]
>
Reviewed-by: Mike Habeck <
[email protected]
>
Cc:
[email protected]
Signed-off-by: David Woodhouse <
[email protected]
>
drivers/pci/intel-iommu.c
patch
|
blob
|
history
diff --git
a/drivers/pci/intel-iommu.c
b/drivers/pci/intel-iommu.c
index 98be0b55ac0b5a29ae93dc70792838a3d6d0d686..5cbab7f19ae0b48e5933900ce970ad6b91574b20 100644
(file)
--- a/
drivers/pci/intel-iommu.c
+++ b/
drivers/pci/intel-iommu.c
@@
-2732,8
+2732,7
@@
static dma_addr_t __intel_map_single(struct device *hwdev, phys_addr_t paddr,
iommu = domain_get_iommu(domain);
size = aligned_nrpages(paddr, size);
- iova = intel_alloc_iova(hwdev, domain, dma_to_mm_pfn(size),
- pdev->dma_mask);
+ iova = intel_alloc_iova(hwdev, domain, dma_to_mm_pfn(size), dma_mask);
if (!iova)
goto error;