From 73621db660147012e3dc90439cd2b525d573c0a4 Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Tue, 5 Mar 2019 15:55:18 +0530 Subject: [PATCH] gpu: nvgpu: remove unused GR hal operations Below HAL operations are not being used anywhere, hence remove them g->ops.gr.program_active_tpc_counts() g->ops.gr.setup_alpha_beta_tables() Change-Id: I448ecd9aae104508d22011dc26ea70dd40a6b0f2 Signed-off-by: Deepak Nibade Reviewed-on: https://git-master.nvidia.com/r/2032675 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 7 ------- drivers/gpu/nvgpu/include/nvgpu/gk20a.h | 3 --- 2 files changed, 10 deletions(-) diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index 371ecd5f1..fd4e64cbd 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c @@ -998,10 +998,6 @@ int gr_gk20a_init_fs_state(struct gk20a *g) gpc_index = g->gr.sm_to_cluster[sm_id].gpc_index; g->ops.gr.program_sm_id_numbering(g, gpc_index, tpc_index, sm_id); - - if (g->ops.gr.program_active_tpc_counts != NULL) { - g->ops.gr.program_active_tpc_counts(g, gpc_index); - } } for (reg_index = 0U, gpc_id = 0U; @@ -1032,9 +1028,6 @@ int gr_gk20a_init_fs_state(struct gk20a *g) /* gr__setup_pd_mapping stubbed for gk20a */ g->ops.gr.setup_rop_mapping(g, gr); - if (g->ops.gr.setup_alpha_beta_tables != NULL) { - g->ops.gr.setup_alpha_beta_tables(g, gr); - } for (gpc_index = 0; gpc_index < gr_pd_dist_skip_table__size_1_v() * 4U; diff --git a/drivers/gpu/nvgpu/include/nvgpu/gk20a.h b/drivers/gpu/nvgpu/include/nvgpu/gk20a.h index 11294165d..333cc719b 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/gk20a.h +++ b/drivers/gpu/nvgpu/include/nvgpu/gk20a.h @@ -296,8 +296,6 @@ struct gpu_ops { u32 *num_ovr_perf_regs, u32 **ovr_perf_regsr); void (*set_hww_esr_report_mask)(struct gk20a *g); - int (*setup_alpha_beta_tables)(struct gk20a *g, - struct gr_gk20a *gr); void (*falcon_load_ucode)(struct gk20a *g, u64 addr_base, struct gk20a_ctxsw_ucode_segments *segments, @@ -436,7 +434,6 @@ struct gpu_ops { int (*load_smid_config)(struct gk20a *g); void (*program_sm_id_numbering)(struct gk20a *g, u32 gpc, u32 tpc, u32 smid); - void (*program_active_tpc_counts)(struct gk20a *g, u32 gpc); int (*setup_rop_mapping)(struct gk20a *g, struct gr_gk20a *gr); int (*init_sw_veid_bundle)(struct gk20a *g); void (*program_zcull_mapping)(struct gk20a *g,