diff options
author | Peter Daifuku <pdaifuku@nvidia.com> | 2017-01-25 21:50:44 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-03-22 22:46:40 -0400 |
commit | 23e92bee4a8f6b66dfd1f5082af2712c0ae0b602 (patch) | |
tree | 58ff8598ca40a9144b2c1d142b41379e543a2722 /drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h | |
parent | 7719eb94f7ef155cf097b599464cbaba4d9a80e0 (diff) |
gpu: nvgpu: profiler create/free, hwpm reserve
Add support for creating/freeing profiler objects, hwpm reservations
Bug 1775465
JIRA EVLR-680
JIRA EVLR-682
Change-Id: I4db83d00e4b0b552b05b9aae96dc553dd1257d88
Signed-off-by: Peter Daifuku <pdaifuku@nvidia.com>
Reviewed-on: http://git-master/r/1294401
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h b/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h index caa9395b..e8d2dbe5 100644 --- a/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h | |||
@@ -47,6 +47,9 @@ struct dbg_session_gk20a { | |||
47 | /* profiler session, if any */ | 47 | /* profiler session, if any */ |
48 | bool is_profiler; | 48 | bool is_profiler; |
49 | 49 | ||
50 | /* has a valid profiler reservation */ | ||
51 | bool has_profiler_reservation; | ||
52 | |||
50 | /* power enabled or disabled */ | 53 | /* power enabled or disabled */ |
51 | bool is_pg_disabled; | 54 | bool is_pg_disabled; |
52 | 55 | ||
@@ -90,6 +93,14 @@ struct dbg_session_channel_data { | |||
90 | struct dbg_session_data *session_data; | 93 | struct dbg_session_data *session_data; |
91 | }; | 94 | }; |
92 | 95 | ||
96 | struct dbg_profiler_object_data { | ||
97 | int session_id; | ||
98 | u32 prof_handle; | ||
99 | struct channel_gk20a *ch; | ||
100 | bool has_reservation; | ||
101 | struct list_head prof_obj_entry; | ||
102 | }; | ||
103 | |||
93 | int dbg_unbind_single_channel_gk20a(struct dbg_session_gk20a *dbg_s, | 104 | int dbg_unbind_single_channel_gk20a(struct dbg_session_gk20a *dbg_s, |
94 | struct dbg_session_channel_data *ch_data); | 105 | struct dbg_session_channel_data *ch_data); |
95 | 106 | ||