mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 09:57:08 +03:00
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>
This commit is contained in:
committed by
Terje Bergstrom
parent
3ad8438c90
commit
488a2c38d1
@@ -1622,12 +1622,12 @@ int gr_gk20a_load_golden_ctx_image(struct gk20a *g,
|
|||||||
if (!ctx_ptr)
|
if (!ctx_ptr)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
if (g->ops.gr.enable_cde_in_fecs && c->cde)
|
|
||||||
g->ops.gr.enable_cde_in_fecs(ctx_ptr);
|
|
||||||
|
|
||||||
for (i = 0; i < gr->ctx_vars.golden_image_size / 4; i++)
|
for (i = 0; i < gr->ctx_vars.golden_image_size / 4; i++)
|
||||||
gk20a_mem_wr32(ctx_ptr, i, gr->ctx_vars.local_golden_image[i]);
|
gk20a_mem_wr32(ctx_ptr, i, gr->ctx_vars.local_golden_image[i]);
|
||||||
|
|
||||||
|
if (g->ops.gr.enable_cde_in_fecs && c->cde)
|
||||||
|
g->ops.gr.enable_cde_in_fecs(ctx_ptr);
|
||||||
|
|
||||||
gk20a_mem_wr32(ctx_ptr + ctxsw_prog_main_image_num_save_ops_o(), 0, 0);
|
gk20a_mem_wr32(ctx_ptr + ctxsw_prog_main_image_num_save_ops_o(), 0, 0);
|
||||||
gk20a_mem_wr32(ctx_ptr + ctxsw_prog_main_image_num_restore_ops_o(), 0, 0);
|
gk20a_mem_wr32(ctx_ptr + ctxsw_prog_main_image_num_restore_ops_o(), 0, 0);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user