summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv100/gr_gv100.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gv100/gr_gv100.c')
-rw-r--r--drivers/gpu/nvgpu/gv100/gr_gv100.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gv100/gr_gv100.c b/drivers/gpu/nvgpu/gv100/gr_gv100.c
index 3aed7a19..c6273733 100644
--- a/drivers/gpu/nvgpu/gv100/gr_gv100.c
+++ b/drivers/gpu/nvgpu/gv100/gr_gv100.c
@@ -373,3 +373,13 @@ int gr_gv100_add_ctxsw_reg_pm_fbpa(struct gk20a *g,
373 *offset = off; 373 *offset = off;
374 return 0; 374 return 0;
375} 375}
376
377int gr_gv100_add_ctxsw_reg_perf_pma(struct ctxsw_buf_offset_map_entry *map,
378 struct aiv_list_gk20a *regs,
379 u32 *count, u32 *offset,
380 u32 max_cnt, u32 base, u32 mask)
381{
382 *offset = ALIGN(*offset, 256);
383 return gr_gk20a_add_ctxsw_reg_perf_pma(map, regs,
384 count, offset, max_cnt, base, mask);
385}