summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b/gr_gm20b.c
diff options
context:
space:
mode:
authorKonsta Holtta <kholtta@nvidia.com>2018-06-25 08:47:15 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-06-28 14:13:35 -0400
commitdd146d42fc910128b0e2987d12b83430bf97bae0 (patch)
tree23d3f808eb6ea65dd8ab90398a22ff52fce09736 /drivers/gpu/nvgpu/gm20b/gr_gm20b.c
parent2dda362e6395a6d486ba3d1a75e707933690023e (diff)
gpu: nvgpu: don't mem_{begin,end}() for gr
Now that GR buffers always have a kernel mapping, remove the unnecessary calls to nvgpu_mem_begin() and nvgpu_mem_end() on these buffers: - global ctx buffer mem in gr - gr ctx mem in a tsg - patch ctx mem in a gr ctx - pm ctx mem in a gr ctx - ctx_header mem in a channel (subctx header) Change-Id: Id2a8ad108aef8db8b16dce5bae8003bbcd3b23e4 Signed-off-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1760599 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/gr_gm20b.c')
-rw-r--r--drivers/gpu/nvgpu/gm20b/gr_gm20b.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/gr_gm20b.c b/drivers/gpu/nvgpu/gm20b/gr_gm20b.c
index 261c3054..f9eb97ce 100644
--- a/drivers/gpu/nvgpu/gm20b/gr_gm20b.c
+++ b/drivers/gpu/nvgpu/gm20b/gr_gm20b.c
@@ -1056,16 +1056,11 @@ int gr_gm20b_update_pc_sampling(struct channel_gk20a *c,
1056 return -EINVAL; 1056 return -EINVAL;
1057 1057
1058 1058
1059 if (nvgpu_mem_begin(c->g, mem))
1060 return -ENOMEM;
1061
1062 v = nvgpu_mem_rd(c->g, mem, ctxsw_prog_main_image_pm_o()); 1059 v = nvgpu_mem_rd(c->g, mem, ctxsw_prog_main_image_pm_o());
1063 v &= ~ctxsw_prog_main_image_pm_pc_sampling_m(); 1060 v &= ~ctxsw_prog_main_image_pm_pc_sampling_m();
1064 v |= ctxsw_prog_main_image_pm_pc_sampling_f(enable); 1061 v |= ctxsw_prog_main_image_pm_pc_sampling_f(enable);
1065 nvgpu_mem_wr(c->g, mem, ctxsw_prog_main_image_pm_o(), v); 1062 nvgpu_mem_wr(c->g, mem, ctxsw_prog_main_image_pm_o(), v);
1066 1063
1067 nvgpu_mem_end(c->g, mem);
1068
1069 nvgpu_log_fn(c->g, "done"); 1064 nvgpu_log_fn(c->g, "done");
1070 1065
1071 return 0; 1066 return 0;