summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-05-01 21:32:46 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-05-03 15:16:24 -0400
commite2148ead8bbf51c2dbf9e2b501c989f2c27582a0 (patch)
tree2124f62df3dd52478f70b4309a00e6661ad6dc43 /drivers/gpu/nvgpu/gk20a/ce2_gk20a.c
parentb3c3ffcbfba99628f033b36e53d8dfc4a5ccd7b9 (diff)
gpu: nvgpu: Program CE clock gating list after reset
Clock gating list for CE was programmed at GR init, but at that time CE has not yet been brought out of reset. This causes a priv ring error and the clock gating setting does not take place. Move programming of CE clock gating list to CE initialization. Bug 1846641 Change-Id: Ibc9fe2487408358304f80cd679d3b1ecac7cebe8 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1473301 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/ce2_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/ce2_gk20a.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c b/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c
index ed5a8b4e..8e3f1754 100644
--- a/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c
@@ -339,6 +339,18 @@ int gk20a_init_ce_support(struct gk20a *g)
339{ 339{
340 struct gk20a_ce_app *ce_app = &g->ce_app; 340 struct gk20a_ce_app *ce_app = &g->ce_app;
341 int err; 341 int err;
342 u32 ce_reset_mask;
343
344 ce_reset_mask = gk20a_fifo_get_all_ce_engine_reset_mask(g);
345
346 g->ops.mc.reset(g, ce_reset_mask);
347
348 if (g->ops.clock_gating.slcg_ce2_load_gating_prod)
349 g->ops.clock_gating.slcg_ce2_load_gating_prod(g,
350 g->slcg_enabled);
351 if (g->ops.clock_gating.blcg_ce_load_gating_prod)
352 g->ops.clock_gating.blcg_ce_load_gating_prod(g,
353 g->blcg_enabled);
342 354
343 if (ce_app->initialised) { 355 if (ce_app->initialised) {
344 /* assume this happen during poweron/poweroff GPU sequence */ 356 /* assume this happen during poweron/poweroff GPU sequence */