diff options
author | Jason Gunthorpe <jgg@nvidia.com> | 2023-07-24 14:36:05 -0300 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2023-08-07 14:33:51 +0200 |
commit | d48a51286c698f7fe8efc688f23a532f4fe9a904 (patch) | |
tree | 0391d93c541e0ca53c0123d091583a0e5d7ccd87 /drivers/iommu | |
parent | 06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5 (diff) | |
download | lwn-d48a51286c698f7fe8efc688f23a532f4fe9a904.tar.gz lwn-d48a51286c698f7fe8efc688f23a532f4fe9a904.zip |
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 <jgg@nvidia.com>
Acked-by: Chunyan Zhang <zhang.lyra@gmail.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu')
-rw-r--r-- | drivers/iommu/sprd-iommu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iommu/sprd-iommu.c b/drivers/iommu/sprd-iommu.c index 39e34fdeccda..eb684d8807ca 100644 --- a/drivers/iommu/sprd-iommu.c +++ b/drivers/iommu/sprd-iommu.c @@ -148,6 +148,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; } |