summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/debug.c
diff options
context:
space:
mode:
authorSunny He <suhe@nvidia.com>2017-06-29 14:16:36 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-07-13 03:09:09 -0400
commit542ad000f2fb0301fbfb7e6defc6a01eb488906d (patch)
tree13ee76cd70b5ed771b04e699b3842bb5451bca1a /drivers/gpu/nvgpu/common/linux/debug.c
parent47cb48f1e2d9c34f22f9fcf443ef67a32cd54a73 (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/common/linux/debug.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/debug.c5
1 files changed, 0 insertions, 5 deletions
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)
173 gk20a_debug_dump_all_channel_status_ramfc(g, o); 173 gk20a_debug_dump_all_channel_status_ramfc(g, o);
174} 174}
175 175
176void gk20a_init_debug_ops(struct gpu_ops *gops)
177{
178 gops->debug.show_dump = gk20a_debug_show_dump;
179}
180
181static int railgate_residency_show(struct seq_file *s, void *data) 176static int railgate_residency_show(struct seq_file *s, void *data)
182{ 177{
183 struct gk20a *g = s->private; 178 struct gk20a *g = s->private;