summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/vgpu/gr_vgpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/gr_vgpu.c')
-rw-r--r--drivers/gpu/nvgpu/vgpu/gr_vgpu.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/gr_vgpu.c b/drivers/gpu/nvgpu/vgpu/gr_vgpu.c
index e61996a1..4a3cf075 100644
--- a/drivers/gpu/nvgpu/vgpu/gr_vgpu.c
+++ b/drivers/gpu/nvgpu/vgpu/gr_vgpu.c
@@ -523,13 +523,6 @@ int vgpu_gr_alloc_obj_ctx(struct channel_gk20a *c, u32 class_num, u32 flags)
523 goto out; 523 goto out;
524 } 524 }
525 525
526 /* commit gr ctx buffer */
527 err = g->ops.gr.commit_inst(c, gr_ctx->mem.gpu_va);
528 if (err) {
529 nvgpu_err(g, "fail to commit gr ctx buffer");
530 goto out;
531 }
532
533 /* allocate patch buffer */ 526 /* allocate patch buffer */
534 err = vgpu_gr_alloc_channel_patch_ctx(g, c); 527 err = vgpu_gr_alloc_channel_patch_ctx(g, c);
535 if (err) { 528 if (err) {
@@ -550,6 +543,13 @@ int vgpu_gr_alloc_obj_ctx(struct channel_gk20a *c, u32 class_num, u32 flags)
550 goto out; 543 goto out;
551 } 544 }
552 545
546 /* commit gr ctx buffer */
547 err = g->ops.gr.commit_inst(c, gr_ctx->mem.gpu_va);
548 if (err) {
549 nvgpu_err(g, "fail to commit gr ctx buffer");
550 goto out;
551 }
552
553 /* load golden image */ 553 /* load golden image */
554 err = gr_gk20a_elpg_protected_call(g, 554 err = gr_gk20a_elpg_protected_call(g,
555 vgpu_gr_load_golden_ctx_image(g, c)); 555 vgpu_gr_load_golden_ctx_image(g, c));