iommu/sprd: Add missing force_aperture
Subsystems (2)
PATCH 1/1 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 b23e4fc4e3fa ("iommu: add Unisoc IOMMU basic driver")
Signed-off-by Jason Gunthorpe <[email protected]>
--- drivers/iommu/sprd-iommu.c | 1 + 1 file changed, 1 insertion(+)
drivers/iommu/sprd-iommu.c +1 -0
@@ -145,6 +145,7 @@ static struct iommu_domain *sprd_iommu_domain_alloc_paging(struct device *dev) dom->domain.geometry.aperture_start =0 ; dom->domain.geometry.aperture_end =SZ_256M -1 ; + dom->domain.geometry.force_aperture = true;return &dom->domain; }
base-commit: b9e8d053f9e8b9d3aa1b5113e3fcfb66ef450564
Signature · 1 line
2.41.0
Quoted 7 lines · Jason Gunthorpe
force_aperturewas 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 b23e4fc4e3fa ("iommu: add Unisoc IOMMU basic driver")Signed-off-by Jason Gunthorpe <[email protected]>
Acked-by Chunyan Zhang <[email protected]>
Thanks,
Chunyan
Quoted 21 lines
--- drivers/iommu/sprd-iommu.c | 1 + 1 file changed, 1 insertion(+)drivers/iommu/sprd-iommu.c +1
-0@@ -145,6 +145,7 @@ static struct iommu_domain *sprd_iommu_domain_alloc_paging(struct device *dev) dom->domain.geometry.aperture_start =0 ; dom->domain.geometry.aperture_end =SZ_256M -1 ; + dom->domain.geometry.force_aperture = true;return &dom->domain; }base-commit:
b9e8d053f9e8b9d3aa1b5113e3fcfb66ef450564--
2.41.0
Quoted 2 lines · Jason Gunthorpe
drivers/iommu/sprd-iommu.c | 1 + 1 file changed, 1 insertion(+)
Applied, thanks.