]> www.infradead.org Git - users/hch/block.git/commit
iommu: arm-smmu: Fix Tegra workaround for PAGE_SIZE mappings
authorAshish Mhetre <amhetre@nvidia.com>
Wed, 24 Jul 2024 17:31:32 +0000 (17:31 +0000)
committerWill Deacon <will@kernel.org>
Thu, 25 Jul 2024 12:08:44 +0000 (13:08 +0100)
commit726d4f528dbc98a84d9ce3c749dfdada3dcdd5ca
treed83ba6bec792f3e9ce5a921fb0f1b1823a56d134
parent86c5eac3c4c4a2ee124d202af9a141bd0457ee68
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 <amhetre@nvidia.com>
Link: https://lore.kernel.org/r/20240724173132.219978-1-amhetre@nvidia.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm/arm-smmu/arm-smmu-nvidia.c