diff options
author | Vaikundanathan S <vaikuns@nvidia.com> | 2018-04-25 03:34:49 -0400 |
---|---|---|
committer | Tejal Kudav <tkudav@nvidia.com> | 2018-06-14 09:44:06 -0400 |
commit | 74ceef1230f414956aceaa027580c6f71fe42153 (patch) | |
tree | 650294c53ff2daf198f83d1f2da50785b10fa17b /drivers/gpu/nvgpu/perf/perf.c | |
parent | 440cda8a6797a0c8c423a5e3357a458ed4dfad07 (diff) |
gpu:nvgpu: Update vfe_load for GV100
Add gops to choose vfe_load between GP and GV.
Bug 200399373
Change-Id: I73e0fbd2f1956e81c241f09639c69f33082e617b
Signed-off-by: Vaikundanathan S <vaikuns@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1702143
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
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; |