summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/mm_gk20a.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
index c6360955..54d3dfd0 100644
--- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
@@ -71,6 +71,7 @@ struct mem_desc {
71 size_t size; 71 size_t size;
72 u64 gpu_va; 72 u64 gpu_va;
73 bool fixed; /* vidmem only */ 73 bool fixed; /* vidmem only */
74 struct list_head clear_list_entry; /* vidmem only */
74}; 75};
75 76
76struct mem_desc_sub { 77struct mem_desc_sub {
@@ -414,7 +415,11 @@ struct mm_gk20a {
414 415
415 u32 ce_ctx_id; 416 u32 ce_ctx_id;
416 bool cleared; 417 bool cleared;
418
419 struct list_head clear_list_head;
420 struct mutex clear_list_mutex;
417 } vidmem; 421 } vidmem;
422 struct work_struct vidmem_clear_mem_worker;
418}; 423};
419 424
420int gk20a_mm_init(struct mm_gk20a *mm); 425int gk20a_mm_init(struct mm_gk20a *mm);