From 62e80a189cfa0b6dbb9e27712a1c782e953c32f4 Mon Sep 17 00:00:00 2001 From: Kevin Huang Date: Tue, 29 Jul 2014 15:56:17 -0700 Subject: gpu: nvgpu: clear sparse in space free Gk20a unmaps the addresses binding to dummy page to clear sparse. On Gm20b, we need to free the allocated page table entry for sparse memory. Bug 1538384 Change-Id: Ie2409ab016c29f42c5f7d97dd7287b093b47f9df Signed-off-by: Kevin Huang Reviewed-on: http://git-master/r/448645 Reviewed-by: Terje Bergstrom Tested-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/gk20a.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h') diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index edf1d548..b5ef3f0d 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h @@ -234,7 +234,11 @@ struct gpu_ops { } gr_ctx; struct { int (*set_sparse)(struct vm_gk20a *vm, u64 vaddr, + u32 num_pages, u32 pgsz_idx, bool refplus); + int (*put_empty)(struct vm_gk20a *vm, u64 vaddr, u32 num_pages, u32 pgsz_idx); + void (*clear_sparse)(struct vm_gk20a *vm, u64 vaddr, + u64 size, u32 pgsz_idx); } mm; struct { int (*prepare_ucode)(struct gk20a *g); -- cgit v1.2.2