summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gr_gk20a.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
index 3f49fbf7..c70c1cd4 100644
--- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
@@ -1782,6 +1782,11 @@ int gr_gk20a_update_hwpm_ctxsw_mode(struct gk20a *g,
1782 return -ENOMEM; 1782 return -ENOMEM;
1783 } 1783 }
1784 } 1784 }
1785
1786 if (mode == NVGPU_DBG_HWPM_CTXSW_MODE_STREAM_OUT_CTXSW &&
1787 g->ops.gr.init_hwpm_pmm_register) {
1788 g->ops.gr.init_hwpm_pmm_register(g);
1789 }
1785 } 1790 }
1786 1791
1787 data = nvgpu_mem_rd(g, gr_mem, ctxsw_prog_main_image_pm_o()); 1792 data = nvgpu_mem_rd(g, gr_mem, ctxsw_prog_main_image_pm_o());