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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
index 04d00e55..e4344b9f 100644
--- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
@@ -63,9 +63,7 @@
63#include <nvgpu/hw/gk20a/hw_pbdma_gk20a.h> 63#include <nvgpu/hw/gk20a/hw_pbdma_gk20a.h>
64 64
65#define BLK_SIZE (256) 65#define BLK_SIZE (256)
66#define NV_PMM_FBP_STRIDE 0x1000
67#define NV_PERF_PMM_FBP_ROUTER_STRIDE 0x0200 66#define NV_PERF_PMM_FBP_ROUTER_STRIDE 0x0200
68#define NV_PERF_PMMGPC_CHIPLET_OFFSET 0x1000
69#define NV_PERF_PMMGPCROUTER_STRIDE 0x0200 67#define NV_PERF_PMMGPCROUTER_STRIDE 0x0200
70#define NV_PCFG_BASE 0x00088000 68#define NV_PCFG_BASE 0x00088000
71#define NV_XBAR_MXBAR_PRI_GPC_GNIC_STRIDE 0x0020 69#define NV_XBAR_MXBAR_PRI_GPC_GNIC_STRIDE 0x0020
@@ -7563,7 +7561,7 @@ static int add_ctxsw_buffer_map_entries_gpcs(struct gk20a *g,
7563 count, offset, max_cnt, base, ~0)) 7561 count, offset, max_cnt, base, ~0))
7564 return -EINVAL; 7562 return -EINVAL;
7565 7563
7566 base = (NV_PERF_PMMGPC_CHIPLET_OFFSET * gpc_num); 7564 base = (g->ops.gr.get_pmm_per_chiplet_offset() * gpc_num);
7567 if (add_ctxsw_buffer_map_entries(map, 7565 if (add_ctxsw_buffer_map_entries(map,
7568 &g->gr.ctx_vars.ctxsw_regs.perf_gpc, 7566 &g->gr.ctx_vars.ctxsw_regs.perf_gpc,
7569 count, offset, max_cnt, base, ~0)) 7567 count, offset, max_cnt, base, ~0))
@@ -7703,7 +7701,9 @@ static int gr_gk20a_create_hwpm_ctxsw_buffer_offset_map(struct gk20a *g)
7703 &g->gr.ctx_vars.ctxsw_regs.fbp, 7701 &g->gr.ctx_vars.ctxsw_regs.fbp,
7704 &count, &offset, 7702 &count, &offset,
7705 hwpm_ctxsw_reg_count_max, 0, 7703 hwpm_ctxsw_reg_count_max, 0,
7706 g->gr.num_fbps, NV_PMM_FBP_STRIDE, ~0)) 7704 g->gr.num_fbps,
7705 g->ops.gr.get_pmm_per_chiplet_offset(),
7706 ~0))
7707 goto cleanup; 7707 goto cleanup;
7708 7708
7709 /* Add entries from _LIST_nv_perf_fbprouter_ctx_regs */ 7709 /* Add entries from _LIST_nv_perf_fbprouter_ctx_regs */