From eca45ed722cd9eaf73edf934e9e3611d0211fb24 Mon Sep 17 00:00:00 2001 From: Lakshmanan M Date: Tue, 13 Sep 2016 21:15:56 +0530 Subject: gpu: nvgpu: Add proper memset size during cleanup This CL covers the following small modifications, 1) Add proper memset size handling during pmu surface cleanup 2) Reset the pmu surface mem desc pointer after deallocate the memory JIRA DNVGPU-47 Change-Id: I400f8c4d3f5dc650d4fc6669cef6a1e41a70f4ab Signed-off-by: Lakshmanan M Reviewed-on: http://git-master/r/1220100 (cherry picked from commit 1f171b977be51db20c2dfc56b3f6e3dd6b4b9095) Reviewed-on: http://git-master/r/1240881 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/gk20a.h | 2 ++ 1 file changed, 2 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 67cb5912..635dddc4 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h @@ -424,6 +424,8 @@ struct gpu_ops { void *pmu_alloc_ptr, u32 offset); void * (*pmu_allocation_get_fb_addr)( struct pmu_gk20a *pmu, void *pmu_alloc_ptr); + u32 (*pmu_allocation_get_fb_size)( + struct pmu_gk20a *pmu, void *pmu_alloc_ptr); void (*get_pmu_init_msg_pmu_queue_params)( struct pmu_queue *queue, u32 id, void *pmu_init_msg); -- cgit v1.2.2