mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
iommu/amd: Pass correct shift to iommu_area_alloc()
The page-offset of the aperture must be passed instead of 0. Signed-off-by: Joerg Roedel <[email protected]>
This commit is contained in:
parent
84b3a0bc88
commit
b57c3c802e
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue