Commit 446152d5 authored by Navneet Kumar's avatar Navneet Kumar Committed by Joerg Roedel

iommu/tegra-smmu: Use non-secure register for flushing

Use PTB_ASID instead of SMMU_CONFIG to flush smmu.
PTB_ASID can be accessed from non-secure mode, SMMU_CONFIG cannot be.
Using SMMU_CONFIG could pose a problem when kernel doesn't have secure
mode access enabled from boot.
Signed-off-by: default avatarNavneet Kumar <navneetk@nvidia.com>
Reviewed-by: default avatarDmitry Osipenko <digetx@gmail.com>
Tested-by: default avatarDmitry Osipenko <digetx@gmail.com>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent 4f5cafb5
...@@ -240,7 +240,7 @@ static inline void smmu_flush_tlb_group(struct tegra_smmu *smmu, ...@@ -240,7 +240,7 @@ static inline void smmu_flush_tlb_group(struct tegra_smmu *smmu,
static inline void smmu_flush(struct tegra_smmu *smmu) static inline void smmu_flush(struct tegra_smmu *smmu)
{ {
smmu_readl(smmu, SMMU_CONFIG); smmu_readl(smmu, SMMU_PTB_ASID);
} }
static int tegra_smmu_alloc_asid(struct tegra_smmu *smmu, unsigned int *idp) static int tegra_smmu_alloc_asid(struct tegra_smmu *smmu, unsigned int *idp)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment