video: tegra: gk20a: protect zcull bind from elpg
Jin Qian [Fri, 22 Mar 2013 23:34:53 +0000 (16:34 -0700)]
Bug 1257392

Change-Id: Icb07f9189dcfcbadfaf637e17dbf9b959370f3f9
Signed-off-by: Jin Qian <jqian@nvidia.com>
Reviewed-on: http://git-master/r/212269
Reviewed-by: Chao Xu <cxu@nvidia.com>

drivers/video/tegra/host/gk20a/gr_gk20a.c

index 02b77a8..8092173 100644 (file)
@@ -2621,7 +2621,8 @@ int gr_gk20a_bind_ctxsw_zcull(struct gk20a *g, struct gr_gk20a *gr,
        zcull_ctx->gpu_va = zcull_va;
 
        /* TBD: don't disable channel in sw method processing */
-       return gr_gk20a_ctx_zcull_setup(g, c, true);
+       return gr_gk20a_elpg_protected_call(g,
+               gr_gk20a_ctx_zcull_setup(g, c, true));
 }
 
 int gr_gk20a_get_zcull_info(struct gk20a *g, struct gr_gk20a *gr,