From 2fc4169293b6929716ee623324dfc9a0d0183b10 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Thu, 19 Mar 2015 14:17:15 -0700 Subject: 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 Reviewed-on: http://git-master/r/719871 --- drivers/gpu/nvgpu/gk20a/mm_gk20a.h | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.h') 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 { u32 data_count; }; -struct priv_cmd_queue_mem_desc { - u64 base_iova; - u32 *base_cpuva; - size_t size; -}; - struct zcull_ctx_desc { u64 gpu_va; u32 ctx_attr; @@ -176,8 +170,7 @@ struct gk20a_mm_entry { }; struct priv_cmd_queue { - struct priv_cmd_queue_mem_desc mem; - u64 base_gpuva; /* gpu_va base */ + struct mem_desc mem; u32 size; /* num of entries in words */ u32 put; /* put for priv cmd queue */ u32 get; /* get for priv cmd queue */ -- cgit v1.2.2