]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
iommu/sprd: Add missing force_aperture
authorJason Gunthorpe <jgg@nvidia.com>
Mon, 24 Jul 2023 17:36:05 +0000 (14:36 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Sep 2023 07:42:53 +0000 (09:42 +0200)
[ Upstream commit d48a51286c698f7fe8efc688f23a532f4fe9a904 ]

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 <jgg@nvidia.com>
Acked-by: Chunyan Zhang <zhang.lyra@gmail.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/iommu/sprd-iommu.c

index fadd2c907222b9230b49b2ec54f6dbcfdf5914e5..8261066de07d70296d5e4a57fd6f835e461f8871 100644 (file)
@@ -147,6 +147,7 @@ static struct iommu_domain *sprd_iommu_domain_alloc(unsigned int domain_type)
 
        dom->domain.geometry.aperture_start = 0;
        dom->domain.geometry.aperture_end = SZ_256M - 1;
+       dom->domain.geometry.force_aperture = true;
 
        return &dom->domain;
 }