diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 1 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index ce0a6563..b677419c 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -312,6 +312,7 @@ struct gpu_ops { | |||
312 | struct channel_gk20a *c, | 312 | struct channel_gk20a *c, |
313 | u64 gpu_va, | 313 | u64 gpu_va, |
314 | u32 mode); | 314 | u32 mode); |
315 | void (*init_hwpm_pmm_register)(struct gk20a *g); | ||
315 | int (*dump_gr_regs)(struct gk20a *g, | 316 | int (*dump_gr_regs)(struct gk20a *g, |
316 | struct gk20a_debug_output *o); | 317 | struct gk20a_debug_output *o); |
317 | int (*update_pc_sampling)(struct channel_gk20a *ch, | 318 | int (*update_pc_sampling)(struct channel_gk20a *ch, |
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()); |