From 542ad000f2fb0301fbfb7e6defc6a01eb488906d Mon Sep 17 00:00:00 2001 From: Sunny He Date: Thu, 29 Jun 2017 11:16:36 -0700 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1514822 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman Reviewed-by: Vijayakumar Subbu --- drivers/gpu/nvgpu/common/linux/debug.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'drivers/gpu/nvgpu/common/linux/debug.c') diff --git a/drivers/gpu/nvgpu/common/linux/debug.c b/drivers/gpu/nvgpu/common/linux/debug.c index f24c6ae7..e085aed4 100644 --- a/drivers/gpu/nvgpu/common/linux/debug.c +++ b/drivers/gpu/nvgpu/common/linux/debug.c @@ -173,11 +173,6 @@ void gk20a_debug_show_dump(struct gk20a *g, struct gk20a_debug_output *o) gk20a_debug_dump_all_channel_status_ramfc(g, o); } -void gk20a_init_debug_ops(struct gpu_ops *gops) -{ - gops->debug.show_dump = gk20a_debug_show_dump; -} - static int railgate_residency_show(struct seq_file *s, void *data) { struct gk20a *g = s->private; -- cgit v1.2.2