aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexei Shlychkov2013-07-22 09:29:06 -0500
committerSundar Raman2013-07-25 14:40:12 -0500
commit73fcff39cca27f0f6916c4f49d70337481185fe1 (patch)
treee116e690c5996a3a5e34522d8e7b06f4378ee4da
parentcb0f3d071a1828d5d638fb065bec61b1e5713f90 (diff)
downloadkernel-video-73fcff39cca27f0f6916c4f49d70337481185fe1.tar.gz
kernel-video-73fcff39cca27f0f6916c4f49d70337481185fe1.tar.xz
kernel-video-73fcff39cca27f0f6916c4f49d70337481185fe1.zip
gc320: Added missing programming of MTLB base second time
This patch fixes a crash when running the bvtest test case second time around. The MTLB base address was not programmed second time around leading to a bad MMU state. This patch ensures that the MTLB base is programmed correctly. Change-Id: Iab33425bc61c1e1618c78bdb17f64cbb9d7b4309 Signed-off-by: Alexei Shlychkov <shlychkov@gmail.com> Signed-off-by: Sundar Raman <a0393242@ti.com>
-rw-r--r--drivers/misc/gcx/gccore/gcmmu.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/misc/gcx/gccore/gcmmu.c b/drivers/misc/gcx/gccore/gcmmu.c
index 31a873a09ac..fd0b2ee114f 100644
--- a/drivers/misc/gcx/gccore/gcmmu.c
+++ b/drivers/misc/gcx/gccore/gcmmu.c
@@ -589,6 +589,10 @@ enum gcerror gcmmu_destroy_context(struct gccorecontext *gccorecontext,
589 gcmmucontext->slavealloc = nextblock; 589 gcmmucontext->slavealloc = nextblock;
590 } 590 }
591 591
592 /* Reset the master table. */
593 if (gcmmu->master == gcmmucontext->mmuconfig.raw)
594 gcmmu->master = ~0U;
595
592 /* Free the master table. */ 596 /* Free the master table. */
593 gc_free_cached(&gcmmucontext->master); 597 gc_free_cached(&gcmmucontext->master);
594 598