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/include | |
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/include')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/debug.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/debug.h b/drivers/gpu/nvgpu/include/nvgpu/debug.h index 70a03978..b1b65af3 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/debug.h +++ b/drivers/gpu/nvgpu/include/nvgpu/debug.h | |||
@@ -46,8 +46,6 @@ static inline void gk20a_debug_output(struct gk20a_debug_output *o, | |||
46 | static inline void gk20a_debug_dump(struct gk20a *g) {} | 46 | static inline void gk20a_debug_dump(struct gk20a *g) {} |
47 | static inline void gk20a_debug_show_dump(struct gk20a *g, struct gk20a_debug_output *o) {} | 47 | static inline void gk20a_debug_show_dump(struct gk20a *g, struct gk20a_debug_output *o) {} |
48 | static inline int gk20a_gr_debug_dump(struct gk20a *g) { return 0;} | 48 | static inline int gk20a_gr_debug_dump(struct gk20a *g) { return 0;} |
49 | static inline void gk20a_init_debug_ops(struct gpu_ops *gops) {} | ||
50 | |||
51 | static inline void gk20a_debug_init(struct gk20a *g, const char *debugfs_symlink) {} | 49 | static inline void gk20a_debug_init(struct gk20a *g, const char *debugfs_symlink) {} |
52 | static inline void gk20a_debug_deinit(struct gk20a *g) {} | 50 | static inline void gk20a_debug_deinit(struct gk20a *g) {} |
53 | #endif | 51 | #endif |