projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84b3a0b
)
iommu/amd: Pass correct shift to iommu_area_alloc()
author
Joerg Roedel
<jroedel@suse.de>
Mon, 21 Dec 2015 14:40:38 +0000
(15:40 +0100)
committer
Joerg Roedel
<jroedel@suse.de>
Mon, 28 Dec 2015 16:18:50 +0000
(17:18 +0100)
The page-offset of the aperture must be passed instead of 0.
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iommu/amd_iommu.c
b/drivers/iommu/amd_iommu.c
index 69021ec79da99d30606951cfe04ffe63ef69a80d..1d1ef374a5a8b8b4605b1f4119914e9f110c8916 100644
(file)
--- a/
drivers/iommu/amd_iommu.c
+++ b/
drivers/iommu/amd_iommu.c
@@
-1551,7
+1551,7
@@
static unsigned long dma_ops_area_alloc(struct device *dev,
spin_lock_irqsave(&dom->aperture[i]->bitmap_lock, flags);
address = iommu_area_alloc(dom->aperture[i]->bitmap,
- limit, next_bit, pages,
0
,
+ limit, next_bit, pages,
offset
,
boundary_size, align_mask);
spin_unlock_irqrestore(&dom->aperture[i]->bitmap_lock, flags);
if (address != -1) {