diff options
author | Kevin Huang <kevinh@nvidia.com> | 2014-07-29 18:56:17 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:10:52 -0400 |
commit | 62e80a189cfa0b6dbb9e27712a1c782e953c32f4 (patch) | |
tree | 3c8f95d9af8ab26d792e765b64547a7df4273e60 /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | 4439a8e311e09b1f3af1a70d4111c75e002a607d (diff) |
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 <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/448645
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 { | |||
234 | } gr_ctx; | 234 | } gr_ctx; |
235 | struct { | 235 | struct { |
236 | int (*set_sparse)(struct vm_gk20a *vm, u64 vaddr, | 236 | int (*set_sparse)(struct vm_gk20a *vm, u64 vaddr, |
237 | u32 num_pages, u32 pgsz_idx, bool refplus); | ||
238 | int (*put_empty)(struct vm_gk20a *vm, u64 vaddr, | ||
237 | u32 num_pages, u32 pgsz_idx); | 239 | u32 num_pages, u32 pgsz_idx); |
240 | void (*clear_sparse)(struct vm_gk20a *vm, u64 vaddr, | ||
241 | u64 size, u32 pgsz_idx); | ||
238 | } mm; | 242 | } mm; |
239 | struct { | 243 | struct { |
240 | int (*prepare_ucode)(struct gk20a *g); | 244 | int (*prepare_ucode)(struct gk20a *g); |