From 773b3f2034fbff98af7770e735347f536cbbb21a Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Tue, 10 May 2016 15:44:06 -0700 Subject: gpu: nvgpu: Do not program max ways evict Setting max_ways_evict reserves some of L2 for CB. In gk20a CB is in dedicated RAM, so we don't need to reserve space for it. The code gets invoked only on gk20a. Change-Id: Ib8efec8c5e90c135bd0c10bb1eaa3f797ec68698 Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/1144993 --- drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index 4638d597..c98da273 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c @@ -1293,7 +1293,6 @@ static int gr_gk20a_ctx_state_floorsweep(struct gk20a *g) u32 tpc_offset, gpc_offset; u32 sm_id = 0, gpc_id = 0; u32 tpc_per_gpc; - u32 max_ways_evict = INVALID_MAX_WAYS; u32 gpc_stride = nvgpu_get_litter_value(g, GPU_LIT_GPC_STRIDE); u32 tpc_in_gpc_stride = nvgpu_get_litter_value(g, GPU_LIT_TPC_IN_GPC_STRIDE); @@ -1355,12 +1354,6 @@ static int gr_gk20a_ctx_state_floorsweep(struct gk20a *g) if (g->ops.gr.setup_alpha_beta_tables) g->ops.gr.setup_alpha_beta_tables(g, gr); - if (gr->num_fbps == 1) - max_ways_evict = 9; - - if (max_ways_evict != INVALID_MAX_WAYS) - g->ops.ltc.set_max_ways_evict_last(g, max_ways_evict); - for (gpc_index = 0; gpc_index < gr_pd_dist_skip_table__size_1_v() * 4; gpc_index += 4) { -- cgit v1.2.2