diff options
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); |