From 6cd26db47779441078746390f14f78848cd047ab Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Thu, 5 Jun 2014 17:15:58 +0530 Subject: gpu: nvgpu: remove unused vpr refetch functions VPR resize is done by forcing GPU to idle and then updating VPR size from TLK. There is no need now to call vpr_resize funtion from kernel and hence these functions can be removed. Bug 1487804 Change-Id: I758a6e0a99a58757866f1138b0a89594e2a33908 Signed-off-by: Deepak Nibade Reviewed-on: http://git-master/r/421703 (cherry picked from commit 391d9bacf053fe0dacffc76c36768f82912ad1f4) Reviewed-on: http://git-master/r/419612 Reviewed-by: Terje Bergstrom Tested-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/mm_gk20a.c | 45 -------------------------------------- 1 file changed, 45 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c index 3b0b020d..6f62e1cb 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c @@ -3020,51 +3020,6 @@ bool gk20a_mm_mmu_debug_mode_enabled(struct gk20a *g) fb_mmu_debug_ctrl_debug_enabled_v(); } -static int gk20a_mm_mmu_vpr_info_fetch_wait(struct gk20a *g, - const unsigned int msec) -{ - unsigned long timeout; - - timeout = jiffies + msecs_to_jiffies(msec); - while (1) { - u32 val; - - val = gk20a_readl(g, fb_mmu_vpr_info_r()); - if (fb_mmu_vpr_info_fetch_v(val) == - fb_mmu_vpr_info_fetch_false_v()) - break; - - if (tegra_platform_is_silicon() && - WARN_ON(time_after(jiffies, timeout))) - return -ETIME; - } - - return 0; -} - -int gk20a_mm_mmu_vpr_info_fetch(struct gk20a *g) -{ - int ret = 0; - - gk20a_busy_noresume(g->dev); - if (!pm_runtime_active(&g->dev->dev)) - goto fail; - - if (gk20a_mm_mmu_vpr_info_fetch_wait(g, 5)) { - ret = -ETIME; - goto fail; - } - - gk20a_writel(g, fb_mmu_vpr_info_r(), - fb_mmu_vpr_info_fetch_true_v()); - - ret = gk20a_mm_mmu_vpr_info_fetch_wait(g, 5); - - fail: - gk20a_idle(g->dev); - return ret; -} - void gk20a_init_mm(struct gpu_ops *gops) { gops->mm.set_sparse = gk20a_vm_put_empty; -- cgit v1.2.2