diff options
author | Sunny He <suhe@nvidia.com> | 2017-06-29 14:16:36 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-07-13 03:09:09 -0400 |
commit | 542ad000f2fb0301fbfb7e6defc6a01eb488906d (patch) | |
tree | 13ee76cd70b5ed771b04e699b3842bb5451bca1a /drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h | |
parent | 47cb48f1e2d9c34f22f9fcf443ef67a32cd54a73 (diff) |
gpu: nvgpu: Reorg debug HAL initialization
Reorganize HAL initialization to remove inheritance and construct
the gpu_ops struct at compile time. This patch covers the debug
and dbg_session_ops sub-modules of the gpu_ops struct.
Perform HAL function assignments in hal_gxxxx.c through the
population of a chip-specific copy of gpu_ops.
Jira NVGPU-74
Change-Id: Id51feeccbea91f884a6057efc680566a7d5d0b6d
Signed-off-by: Sunny He <suhe@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1514822
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h b/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h index e48d8050..827fb42f 100644 --- a/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h | |||
@@ -127,6 +127,17 @@ int dbg_unbind_single_channel_gk20a(struct dbg_session_gk20a *dbg_s, | |||
127 | 127 | ||
128 | bool gk20a_dbg_gpu_broadcast_stop_trigger(struct channel_gk20a *ch); | 128 | bool gk20a_dbg_gpu_broadcast_stop_trigger(struct channel_gk20a *ch); |
129 | int gk20a_dbg_gpu_clear_broadcast_stop_trigger(struct channel_gk20a *ch); | 129 | int gk20a_dbg_gpu_clear_broadcast_stop_trigger(struct channel_gk20a *ch); |
130 | void gk20a_init_dbg_session_ops(struct gpu_ops *gops); | 130 | |
131 | int dbg_set_powergate(struct dbg_session_gk20a *dbg_s, u32 powermode); | ||
132 | bool nvgpu_check_and_set_global_reservation( | ||
133 | struct dbg_session_gk20a *dbg_s, | ||
134 | struct dbg_profiler_object_data *prof_obj); | ||
135 | bool nvgpu_check_and_set_context_reservation( | ||
136 | struct dbg_session_gk20a *dbg_s, | ||
137 | struct dbg_profiler_object_data *prof_obj); | ||
138 | void nvgpu_release_profiler_reservation(struct dbg_session_gk20a *dbg_s, | ||
139 | struct dbg_profiler_object_data *prof_obj); | ||
140 | int gk20a_perfbuf_enable_locked(struct gk20a *g, u64 offset, u32 size); | ||
141 | int gk20a_perfbuf_disable_locked(struct gk20a *g); | ||
131 | 142 | ||
132 | #endif /* DBG_GPU_GK20A_H */ | 143 | #endif /* DBG_GPU_GK20A_H */ |