]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commit
iommu: arm-smmu: prevent duplicate linear mapping
authorPritesh Raithatha <praithatha@nvidia.com>
Tue, 11 Jul 2017 04:42:13 +0000 (10:12 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Mon, 17 Jul 2017 18:44:21 +0000 (11:44 -0700)
commit18933d07d685105d108409d70c89d7989e088bff
tree8227b271c4305301ad09a12e57b5ea6d65474bda
parentbd325ea5a824f8651011de09e855434e61b85107
iommu: arm-smmu: prevent duplicate linear mapping

Display is requesting same linear mapping multiple times.
Adding variable in iommu_linear_map to track the mapping and
return if it is already mapped.

Bug 200300054

Change-Id: If4d9451c5c0b8d1136951aacdf7a5fdc0c4ad660
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1516579
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
drivers/iommu/arm-smmu.c
drivers/iommu/tegra-iommu.c
include/linux/iommu.h