diff options
Diffstat (limited to 'drivers/gpu/nvgpu/perf/perf.c')
-rw-r--r-- | drivers/gpu/nvgpu/perf/perf.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/perf/perf.c b/drivers/gpu/nvgpu/perf/perf.c index bf63e1ea..900496fd 100644 --- a/drivers/gpu/nvgpu/perf/perf.c +++ b/drivers/gpu/nvgpu/perf/perf.c | |||
@@ -65,6 +65,21 @@ static int pmu_handle_perf_event(struct gk20a *g, void *pmu_msg) | |||
65 | return 0; | 65 | return 0; |
66 | } | 66 | } |
67 | 67 | ||
68 | u32 perf_pmu_vfe_load_gv10x(struct gk20a *g) | ||
69 | { | ||
70 | struct nvgpu_pmu *pmu = &g->pmu; | ||
71 | struct nv_pmu_rpc_struct_perf_load rpc; | ||
72 | u32 status = 0; | ||
73 | |||
74 | memset(&rpc, 0, sizeof(struct nv_pmu_rpc_struct_perf_load)); | ||
75 | PMU_RPC_EXECUTE_CPB(status, pmu, PERF, VFE_INVALIDATE, &rpc, 0); | ||
76 | if (status) { | ||
77 | nvgpu_err(g, "Failed to execute RPC status=0x%x", | ||
78 | status); | ||
79 | } | ||
80 | return status; | ||
81 | } | ||
82 | |||
68 | u32 perf_pmu_vfe_load(struct gk20a *g) | 83 | u32 perf_pmu_vfe_load(struct gk20a *g) |
69 | { | 84 | { |
70 | struct pmu_cmd cmd; | 85 | struct pmu_cmd cmd; |