From: Joerg Roedel Date: Mon, 21 Dec 2015 14:40:38 +0000 (+0100) Subject: iommu/amd: Pass correct shift to iommu_area_alloc() X-Git-Tag: v4.14-rc1~3980^2^7~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b57c3c802e51e83620b739759c8bba829e231b57;p=platform%2Fkernel%2Flinux-rpi.git 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 --- 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) {