summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
diff options
context:
space:
mode:
authorsujeet baranwal <sbaranwal@nvidia.com>2015-10-05 17:15:54 -0400
committerTerje Bergstrom <tbergstrom@nvidia.com>2015-10-07 13:03:54 -0400
commit488a2c38d17cd13b4453678d81c92db0664dd077 (patch)
tree465c68054e0e26972074137e2b91bb1f9da6078c /drivers/gpu/nvgpu/gk20a/gr_gk20a.c
parent3ad8438c906c815748886ea923320fae91ea2538 (diff)
gpu: nvgpu: Avoid resetting CDE flag
While loading the context, erstwhile set CDE flag was being overwritten by copying code of golden context, thus losing the information. This was not letting the CDE info reach to the ucode, and T1 was not configured to 128B mem access. Bug 200096226 Change-Id: I5ceb234a62450ff7875aeba05ec616758cb319d9 Signed-off-by: sujeet baranwal <sbaranwal@nvidia.com> Reviewed-on: http://git-master/r/811767 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gr_gk20a.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
index 25679c4c..ea06bd20 100644
--- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
@@ -1622,12 +1622,12 @@ int gr_gk20a_load_golden_ctx_image(struct gk20a *g,
1622 if (!ctx_ptr) 1622 if (!ctx_ptr)
1623 return -ENOMEM; 1623 return -ENOMEM;
1624 1624
1625 if (g->ops.gr.enable_cde_in_fecs && c->cde)
1626 g->ops.gr.enable_cde_in_fecs(ctx_ptr);
1627
1628 for (i = 0; i < gr->ctx_vars.golden_image_size / 4; i++) 1625 for (i = 0; i < gr->ctx_vars.golden_image_size / 4; i++)
1629 gk20a_mem_wr32(ctx_ptr, i, gr->ctx_vars.local_golden_image[i]); 1626 gk20a_mem_wr32(ctx_ptr, i, gr->ctx_vars.local_golden_image[i]);
1630 1627
1628 if (g->ops.gr.enable_cde_in_fecs && c->cde)
1629 g->ops.gr.enable_cde_in_fecs(ctx_ptr);
1630
1631 gk20a_mem_wr32(ctx_ptr + ctxsw_prog_main_image_num_save_ops_o(), 0, 0); 1631 gk20a_mem_wr32(ctx_ptr + ctxsw_prog_main_image_num_save_ops_o(), 0, 0);
1632 gk20a_mem_wr32(ctx_ptr + ctxsw_prog_main_image_num_restore_ops_o(), 0, 0); 1632 gk20a_mem_wr32(ctx_ptr + ctxsw_prog_main_image_num_restore_ops_o(), 0, 0);
1633 1633