Skip to content

Commit d48a512

Browse files
jgunthorpejoergroedel
authored andcommitted
iommu/sprd: Add missing force_aperture
force_aperture was intended to false only by GART drivers that have an identity translation outside the aperture. This does not describe sprd, so add the missing 'force_aperture = true'. Fixes: b23e4fc ("iommu: add Unisoc IOMMU basic driver") Signed-off-by: Jason Gunthorpe <[email protected]> Acked-by: Chunyan Zhang <[email protected]> Signed-off-by: Joerg Roedel <[email protected]>
1 parent 06c2afb commit d48a512

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/iommu/sprd-iommu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ static struct iommu_domain *sprd_iommu_domain_alloc(unsigned int domain_type)
148148

149149
dom->domain.geometry.aperture_start = 0;
150150
dom->domain.geometry.aperture_end = SZ_256M - 1;
151+
dom->domain.geometry.force_aperture = true;
151152

152153
return &dom->domain;
153154
}

0 commit comments

Comments
 (0)