From 9d37d8b78c2dac7fa480493d1ab67b95290b87f1 Mon Sep 17 00:00:00 2001 From: Sunny He Date: Wed, 26 Jul 2017 11:13:15 -0700 Subject: gpu: nvgpu: Reorg fecs_trace HAL initialization Reorganize HAL initialization to remove inheritance and construct the gpu_ops struct at compile time. This patch only covers the fecs_trace sub-module 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: I84485ad64997270c6a0fce3c95dc9ceb0094cf6c Signed-off-by: Sunny He Reviewed-on: https://git-master.nvidia.com/r/1527419 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gp10b/fecs_trace_gp10b.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'drivers/gpu/nvgpu/gp10b/fecs_trace_gp10b.c') diff --git a/drivers/gpu/nvgpu/gp10b/fecs_trace_gp10b.c b/drivers/gpu/nvgpu/gp10b/fecs_trace_gp10b.c index 723da1a2..bec40512 100644 --- a/drivers/gpu/nvgpu/gp10b/fecs_trace_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/fecs_trace_gp10b.c @@ -22,7 +22,7 @@ #include #ifdef CONFIG_GK20A_CTXSW_TRACE -static int gp10b_fecs_trace_flush(struct gk20a *g) +int gp10b_fecs_trace_flush(struct gk20a *g) { struct fecs_method_op_gk20a op = { .mailbox = { .id = 0, .data = 0, @@ -43,14 +43,4 @@ static int gp10b_fecs_trace_flush(struct gk20a *g) return err; } - -void gp10b_init_fecs_trace_ops(struct gpu_ops *ops) -{ - gk20a_init_fecs_trace_ops(ops); - ops->fecs_trace.flush = gp10b_fecs_trace_flush; -} -#else -void gp10b_init_fecs_trace_ops(struct gpu_ops *ops) -{ -} #endif /* CONFIG_GK20A_CTXSW_TRACE */ -- cgit v1.2.2