From 866fee02478eb9db7978a81618b601eb717d4799 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Fri, 17 Mar 2017 09:55:43 -0700 Subject: gpu: nvgpu: Remove ELPG_FLUSH ELPG_FLUSH is not accessible in later GPUs, so we stopped using it and instead do explicit CBC and L2 flushes. Delete the unused function op and backing code. Change-Id: Ic3eb97f2d32ea8fdbe5ec57bd9254268caaf9935 Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/1323236 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/ltc_gk20a.c | 39 ------------------------------------- 1 file changed, 39 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/ltc_gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/ltc_gk20a.c b/drivers/gpu/nvgpu/gk20a/ltc_gk20a.c index 5db48ae7..34a96971 100644 --- a/drivers/gpu/nvgpu/gk20a/ltc_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/ltc_gk20a.c @@ -189,44 +189,6 @@ static void gk20a_ltc_isr(struct gk20a *g) gk20a_writel(g, ltc_ltc0_ltss_intr_r(), intr); } -/* Flushes the compression bit cache as well as "data". - * Note: the name here is a bit of a misnomer. ELPG uses this - * internally... but ELPG doesn't have to be on to do it manually. - */ -static void gk20a_mm_g_elpg_flush_locked(struct gk20a *g) -{ - u32 data; - s32 retry = 100; - - gk20a_dbg_fn(""); - - trace_gk20a_mm_g_elpg_flush_locked(dev_name(g->dev)); - - /* Make sure all previous writes are committed to the L2. There's no - guarantee that writes are to DRAM. This will be a sysmembar internal - to the L2. */ - gk20a_writel(g, ltc_ltcs_ltss_g_elpg_r(), - ltc_ltcs_ltss_g_elpg_flush_pending_f()); - do { - data = gk20a_readl(g, ltc_ltc0_ltss_g_elpg_r()); - - if (ltc_ltc0_ltss_g_elpg_flush_v(data) == - ltc_ltc0_ltss_g_elpg_flush_pending_v()) { - gk20a_dbg_info("g_elpg_flush 0x%x", data); - retry--; - udelay(5); - } else - break; - } while (retry >= 0 || !tegra_platform_is_silicon()); - - if (tegra_platform_is_silicon() && retry < 0) - gk20a_warn(dev_from_gk20a(g), - "g_elpg_flush too many retries"); - - trace_gk20a_mm_g_elpg_flush_locked_done(dev_name(g->dev)); - -} - static int gk20a_determine_L2_size_bytes(struct gk20a *g) { u32 lts_per_ltc; @@ -279,7 +241,6 @@ void gk20a_init_ltc(struct gpu_ops *gops) #ifdef CONFIG_DEBUG_FS gops->ltc.sync_debugfs = gk20a_ltc_sync_debugfs; #endif - gops->ltc.elpg_flush = gk20a_mm_g_elpg_flush_locked; gops->ltc.init_fs_state = gk20a_ltc_init_fs_state; gops->ltc.isr = gk20a_ltc_isr; } -- cgit v1.2.2