[PATCH 06/23] iommu/amd: Pass correct shift to iommu_area_alloc()

From: Joerg Roedel
Date: Tue Dec 22 2015 - 17:25:59 EST


From: Joerg Roedel <jroedel@xxxxxxx>

The page-offset of the aperture must be passed instead of 0.

Signed-off-by: Joerg Roedel <jroedel@xxxxxxx>
---
drivers/iommu/amd_iommu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c
index 69021ec..1d1ef37 100644
--- 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) {
--
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/