From a3b26f25a226ea56e84dbda1bb510c1a7bc11054 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Mon, 9 Feb 2015 20:37:02 -0800 Subject: gpu: nvgpu: TLB invalidate after map/unmap Always invalidate TLB after mapping or unmapping, and remove the delayed TLB invalidate. Change-Id: I6df3c5c1fcca59f0f9e3f911168cb2f913c42815 Signed-off-by: Terje Bergstrom Signed-off-by: Deepak Nibade Reviewed-on: http://git-master/r/696413 Reviewed-by: Automatic_Commit_Validation_User --- drivers/gpu/nvgpu/gm20b/mm_gm20b.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'drivers/gpu/nvgpu/gm20b') diff --git a/drivers/gpu/nvgpu/gm20b/mm_gm20b.c b/drivers/gpu/nvgpu/gm20b/mm_gm20b.c index 1adff5ab..605464d4 100644 --- a/drivers/gpu/nvgpu/gm20b/mm_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/mm_gm20b.c @@ -1,7 +1,7 @@ /* * GM20B MMU * - * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, @@ -34,6 +34,7 @@ static int allocate_gmmu_ptes_sparse(struct vm_gk20a *vm, u32 pte_cur; void *pte_kv_cur; struct page_table_gk20a *pte; + struct gk20a *g = gk20a_from_vm(vm); gk20a_dbg_fn(""); @@ -74,8 +75,7 @@ static int allocate_gmmu_ptes_sparse(struct vm_gk20a *vm, unmap_gmmu_pages(pte->ref, pte->sgt, pte_kv_cur); smp_mb(); - vm->tlb_dirty = true; - gk20a_dbg_fn("set tlb dirty"); + g->ops.mm.tlb_invalidate(vm); return 0; fail: -- cgit v1.2.2