mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: check commit_inst err codes
gr_gk20a_init_golden_ctx_image() didn't check for error codes from gr.commit_inst(). Add the missing checks. Change-Id: I9f8449b2741c5a69cf65ad8191e9bc74c6ad1393 Signed-off-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-on: http://git-master/r/1483867 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
b7fca01b0e
commit
d85aa0064b
@@ -1785,7 +1785,9 @@ restore_fe_go_idle:
|
||||
g->ops.gr.write_zcull_ptr(g, gold_mem, 0);
|
||||
nvgpu_mem_end(g, ctxheader);
|
||||
|
||||
g->ops.gr.commit_inst(c, ch_ctx->global_ctx_buffer_va[GOLDEN_CTX_VA]);
|
||||
err = g->ops.gr.commit_inst(c, ch_ctx->global_ctx_buffer_va[GOLDEN_CTX_VA]);
|
||||
if (err)
|
||||
goto clean_up;
|
||||
|
||||
gr_gk20a_fecs_ctx_image_save(c, gr_fecs_method_push_adr_wfi_golden_save_v());
|
||||
|
||||
@@ -1813,7 +1815,9 @@ restore_fe_go_idle:
|
||||
}
|
||||
nvgpu_mem_end(g, ctxheader);
|
||||
|
||||
g->ops.gr.commit_inst(c, gr_mem->gpu_va);
|
||||
err = g->ops.gr.commit_inst(c, gr_mem->gpu_va);
|
||||
if (err)
|
||||
goto clean_up;
|
||||
|
||||
gr->ctx_vars.golden_image_initialized = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user