diff options
author | Stepan Moskovchenko <stepanm@codeaurora.org> | 2011-02-24 21:00:41 -0500 |
---|---|---|
committer | David Brown <davidb@codeaurora.org> | 2011-03-08 17:40:58 -0500 |
commit | 2e8c8ba98376459e73d03a285f5d3406b630ea2d (patch) | |
tree | 774f957b4aab21d8799f9d42d761eb7b1f624ba8 /arch/arm/mach-msm/iommu_dev.c | |
parent | b61401adf38f56dbfdac91f31425edf60595ed30 (diff) |
msm: iommu: Use ASID tagging instead of VMID tagging
Use ASID tags in the TLB instead of VMID tags in
preparation for changes to the secure environment.
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
Diffstat (limited to 'arch/arm/mach-msm/iommu_dev.c')
-rw-r--r-- | arch/arm/mach-msm/iommu_dev.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/arch/arm/mach-msm/iommu_dev.c b/arch/arm/mach-msm/iommu_dev.c index 79ade0b3b326..0e240c9d6e71 100644 --- a/arch/arm/mach-msm/iommu_dev.c +++ b/arch/arm/mach-msm/iommu_dev.c | |||
@@ -330,14 +330,17 @@ static int msm_iommu_ctx_probe(struct platform_device *pdev) | |||
330 | SET_M2VCBR_N(drvdata->base, mid, 0); | 330 | SET_M2VCBR_N(drvdata->base, mid, 0); |
331 | SET_CBACR_N(drvdata->base, c->num, 0); | 331 | SET_CBACR_N(drvdata->base, c->num, 0); |
332 | 332 | ||
333 | /* Set VMID = MID */ | 333 | /* Set VMID = 0 */ |
334 | SET_VMID(drvdata->base, mid, mid); | 334 | SET_VMID(drvdata->base, mid, 0); |
335 | 335 | ||
336 | /* Set the context number for that MID to this context */ | 336 | /* Set the context number for that MID to this context */ |
337 | SET_CBNDX(drvdata->base, mid, c->num); | 337 | SET_CBNDX(drvdata->base, mid, c->num); |
338 | 338 | ||
339 | /* Set MID associated with this context bank */ | 339 | /* Set MID associated with this context bank to 0*/ |
340 | SET_CBVMID(drvdata->base, c->num, mid); | 340 | SET_CBVMID(drvdata->base, c->num, 0); |
341 | |||
342 | /* Set the ASID for TLB tagging for this context */ | ||
343 | SET_CONTEXTIDR_ASID(drvdata->base, c->num, c->num); | ||
341 | 344 | ||
342 | /* Set security bit override to be Non-secure */ | 345 | /* Set security bit override to be Non-secure */ |
343 | SET_NSCFG(drvdata->base, mid, 3); | 346 | SET_NSCFG(drvdata->base, mid, 3); |