summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/nvgpu/common/linux/vgpu/gr_vgpu.c3
-rw-r--r--drivers/gpu/nvgpu/gk20a/gr_gk20a.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/vgpu/gr_vgpu.c b/drivers/gpu/nvgpu/common/linux/vgpu/gr_vgpu.c
index 4d36e66b..fa2010cd 100644
--- a/drivers/gpu/nvgpu/common/linux/vgpu/gr_vgpu.c
+++ b/drivers/gpu/nvgpu/common/linux/vgpu/gr_vgpu.c
@@ -581,8 +581,7 @@ int vgpu_gr_alloc_obj_ctx(struct channel_gk20a *c, u32 class_num, u32 flags)
581 nvgpu_err(g, "fail to map global ctx buffer"); 581 nvgpu_err(g, "fail to map global ctx buffer");
582 goto out; 582 goto out;
583 } 583 }
584 gr_gk20a_elpg_protected_call(g, 584 vgpu_gr_commit_global_ctx_buffers(g, c, true);
585 vgpu_gr_commit_global_ctx_buffers(g, c, true));
586 } 585 }
587 586
588 /* load golden image */ 587 /* load golden image */
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
index c7104941..11054087 100644
--- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
@@ -2975,8 +2975,7 @@ int gk20a_alloc_obj_ctx(struct channel_gk20a *c, u32 class_num, u32 flags)
2975 "fail to map global ctx buffer"); 2975 "fail to map global ctx buffer");
2976 goto out; 2976 goto out;
2977 } 2977 }
2978 gr_gk20a_elpg_protected_call(g, 2978 gr_gk20a_commit_global_ctx_buffers(g, c, true);
2979 gr_gk20a_commit_global_ctx_buffers(g, c, true));
2980 } 2979 }
2981 2980
2982 /* init golden image, ELPG enabled after this is done */ 2981 /* init golden image, ELPG enabled after this is done */