From 86cf2d0857dcc3b7109d4008b00a27d72dacf990 Mon Sep 17 00:00:00 2001 From: Richard Zhao Date: Mon, 26 Feb 2018 15:52:22 -0800 Subject: gpu: nvgpu: gv100: remove gr_gv100_load_tpc_mask() No one uses it anymore. Jira VQRM-2982 Change-Id: Iac885221b670507241663a851c4a597157233756 Signed-off-by: Richard Zhao Reviewed-on: https://git-master.nvidia.com/r/1664653 Reviewed-by: svc-mobile-coverity GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gv100/gr_gv100.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'drivers/gpu/nvgpu') diff --git a/drivers/gpu/nvgpu/gv100/gr_gv100.c b/drivers/gpu/nvgpu/gv100/gr_gv100.c index 0fa05714..bf143dbb 100644 --- a/drivers/gpu/nvgpu/gv100/gr_gv100.c +++ b/drivers/gpu/nvgpu/gv100/gr_gv100.c @@ -277,26 +277,6 @@ exit_build_table: return err; } -void gr_gv100_load_tpc_mask(struct gk20a *g) -{ - u64 pes_tpc_mask = 0x0ULL; - u32 gpc, pes; - u32 num_tpc_per_gpc = nvgpu_get_litter_value(g, - GPU_LIT_NUM_TPC_PER_GPC); - - /* gv100 has 6 GPC and 7 TPC/GPC */ - for (gpc = 0; gpc < g->gr.gpc_count; gpc++) { - for (pes = 0; pes < g->gr.pe_count_per_gpc; pes++) { - pes_tpc_mask |= (u64) g->gr.pes_tpc_mask[pes][gpc] << - (num_tpc_per_gpc * gpc); - } - } - - nvgpu_log_info(g, "pes_tpc_mask: %016llx\n", pes_tpc_mask); - gk20a_writel(g, gr_fe_tpc_fs_r(0), u64_lo32(pes_tpc_mask)); - gk20a_writel(g, gr_fe_tpc_fs_r(1), u64_hi32(pes_tpc_mask)); -} - u32 gr_gv100_get_patch_slots(struct gk20a *g) { struct gr_gk20a *gr = &g->gr; -- cgit v1.2.2