summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2015-03-19 17:17:15 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-04-04 22:01:36 -0400
commit2fc4169293b6929716ee623324dfc9a0d0183b10 (patch)
tree8ad11fdfdb77f60b6322034dab809ae4a72158e2 /drivers/gpu/nvgpu/gk20a/mm_gk20a.h
parent672680dfc069f08722b98f52097106021c7e2b0f (diff)
gpu: nvgpu: Use common allocator for cmd queue
Reduce amount of duplicate code around memory allocation by using common helpers, and common data structure for storing results of allocations. Bug 1605769 Change-Id: If93063acbbfaa92aef530208241988427b5df8eb Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/719871
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/mm_gk20a.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
index ca7fef01..5ba34bd7 100644
--- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
@@ -79,12 +79,6 @@ struct patch_desc {
79 u32 data_count; 79 u32 data_count;
80}; 80};
81 81
82struct priv_cmd_queue_mem_desc {
83 u64 base_iova;
84 u32 *base_cpuva;
85 size_t size;
86};
87
88struct zcull_ctx_desc { 82struct zcull_ctx_desc {
89 u64 gpu_va; 83 u64 gpu_va;
90 u32 ctx_attr; 84 u32 ctx_attr;
@@ -176,8 +170,7 @@ struct gk20a_mm_entry {
176}; 170};
177 171
178struct priv_cmd_queue { 172struct priv_cmd_queue {
179 struct priv_cmd_queue_mem_desc mem; 173 struct mem_desc mem;
180 u64 base_gpuva; /* gpu_va base */
181 u32 size; /* num of entries in words */ 174 u32 size; /* num of entries in words */
182 u32 put; /* put for priv cmd queue */ 175 u32 put; /* put for priv cmd queue */
183 u32 get; /* get for priv cmd queue */ 176 u32 get; /* get for priv cmd queue */