From 1d0e302b534eb63f27f690d0002e2341198684b9 Mon Sep 17 00:00:00 2001 From: Vijayakumar Date: Mon, 3 Nov 2014 17:36:33 +0530 Subject: gpu: nvgpu: explicitly disable elcg during init bug 200048467 Change-Id: I39f85a638b6bc97442ebf8e4a78e07c8575e4b20 Signed-off-by: Vijayakumar Reviewed-on: http://git-master/r/592751 Reviewed-by: Terje Bergstrom Tested-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index a6432f41..2c62c790 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c @@ -4411,6 +4411,9 @@ static int gk20a_init_gr_prepare(struct gk20a *g) | mc_enable_perfmon_enabled_f()); gr_gk20a_load_gating_prod(g); + /* Disable elcg until it gets enabled later in the init*/ + gr_gk20a_init_elcg_mode(g, ELCG_RUN, ENGINE_GR_GK20A); + gr_gk20a_init_elcg_mode(g, ELCG_RUN, ENGINE_CE2_GK20A); /* enable fifo access */ gk20a_writel(g, gr_gpfifo_ctl_r(), -- cgit v1.2.2