From 23e92bee4a8f6b66dfd1f5082af2712c0ae0b602 Mon Sep 17 00:00:00 2001 From: Peter Daifuku Date: Wed, 25 Jan 2017 18:50:44 -0800 Subject: 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 Reviewed-on: http://git-master/r/1294401 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h') 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 { /* profiler session, if any */ bool is_profiler; + /* has a valid profiler reservation */ + bool has_profiler_reservation; + /* power enabled or disabled */ bool is_pg_disabled; @@ -90,6 +93,14 @@ struct dbg_session_channel_data { struct dbg_session_data *session_data; }; +struct dbg_profiler_object_data { + int session_id; + u32 prof_handle; + struct channel_gk20a *ch; + bool has_reservation; + struct list_head prof_obj_entry; +}; + int dbg_unbind_single_channel_gk20a(struct dbg_session_gk20a *dbg_s, struct dbg_session_channel_data *ch_data); -- cgit v1.2.2