iommu: arm-smmu: Fix Tegra workaround for PAGE_SIZE mappings
Subsystems (4)
PATCH v2 1/1 iommu: arm-smmu: Fix Tegra workaround for PAGE_SIZE mappings
PAGE_SIZE can be 16KB for Tegra which is not supported by MMU-500 on both Tegra194 and Tegra234. Retain only valid granularities from pgsize_bitmap which would either be 4KB or 64KB.
Signed-off-by Ashish Mhetre <[email protected]>
--- drivers/iommu/arm/arm-smmu/arm-smmu-nvidia.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iommu/arm/arm-smmu/arm-smmu-nvidia.c +1 -1
@@ -277,7 +277,7 @@ static int nvidia_smmu_init_context(struct arm_smmu_domain *smmu_domain,*/ if (of_device_is_compatible (np,"nvidia,tegra234-smmu" ) ||of_device_is_compatible (np,"nvidia,tegra194-smmu" )) { - smmu->pgsize_bitmap =PAGE_SIZE ; + smmu->pgsize_bitmap &=GENMASK (PAGE_SHIFT ,0 ); pgtbl_cfg->pgsize_bitmap = smmu->pgsize_bitmap; }
Signature · 1 line
2.25.1
Quoted 5 lines · Ashish Mhetre
PAGE_SIZEcan be 16KB for Tegra which is not supported by MMU-500 on both Tegra194 and Tegra234. Retain only valid granularities frompgsize_bitmapwhich would either be 4KB or 64KB.
Applied to iommu (next), thanks!
[1/1] iommu: arm-smmu: Fix Tegra workaround for PAGE_SIZE mappings
https://git.kernel.org/iommu/c/726d4f528dbc
Cheers,
Signature · 5 lines
Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev