diff options
author | Vaikundanathan S <vaikuns@nvidia.com> | 2018-08-28 02:28:25 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-09-20 13:50:53 -0400 |
commit | ae809fddbe90bcec0d48e1213fa36cc5ba76550d (patch) | |
tree | bbafc71a543abf4b02e76290d058719f27f5f3b8 /drivers/gpu/nvgpu/perf/perf.h | |
parent | 85c323c3e89d6e1b624b839c3325ae072952e545 (diff) |
gpu:nvgpu: Add GV10x perf event
In case of VFE update, schedule work to set P0 clocks.
Added function nvgpu_clk_set_fll_clk_gv10x to update P0 clocks on perf event.
Fixed MISRA issues caused by this excluding external functions and MACROs
Bug 2331655
Change-Id: Id96c473092ee7f0b651413aefdd4b6f2f59e0b12
Signed-off-by: Vaikundanathan S <vaikuns@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1808014
Reviewed-on: https://git-master.nvidia.com/r/1813881
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/perf/perf.h')
-rw-r--r-- | drivers/gpu/nvgpu/perf/perf.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/perf/perf.h b/drivers/gpu/nvgpu/perf/perf.h index 180efb2c..17a9b0e1 100644 --- a/drivers/gpu/nvgpu/perf/perf.h +++ b/drivers/gpu/nvgpu/perf/perf.h | |||
@@ -65,15 +65,21 @@ | |||
65 | 65 | ||
66 | struct gk20a; | 66 | struct gk20a; |
67 | 67 | ||
68 | struct nvgpu_vfe_invalidate { | ||
69 | bool state_change; | ||
70 | struct nvgpu_cond wq; | ||
71 | struct nvgpu_thread state_task; | ||
72 | }; | ||
73 | |||
68 | struct perf_pmupstate { | 74 | struct perf_pmupstate { |
69 | struct vfe_vars vfe_varobjs; | 75 | struct vfe_vars vfe_varobjs; |
70 | struct vfe_equs vfe_equobjs; | 76 | struct vfe_equs vfe_equobjs; |
71 | struct pstates pstatesobjs; | 77 | struct pstates pstatesobjs; |
72 | struct obj_volt volt; | 78 | struct obj_volt volt; |
73 | struct obj_lwpr lpwr; | 79 | struct obj_lwpr lpwr; |
80 | struct nvgpu_vfe_invalidate vfe_init; | ||
74 | }; | 81 | }; |
75 | 82 | ||
76 | u32 perf_pmu_vfe_load(struct gk20a *g); | 83 | u32 perf_pmu_vfe_load(struct gk20a *g); |
77 | u32 perf_pmu_vfe_load_gv10x(struct gk20a *g); | ||
78 | 84 | ||
79 | #endif | 85 | #endif |