diff options
author | Lakshmanan M <lm@nvidia.com> | 2016-09-13 11:45:56 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2016-10-25 14:14:49 -0400 |
commit | eca45ed722cd9eaf73edf934e9e3611d0211fb24 (patch) | |
tree | 2c3703495c74ebe7e7647104a70ce61b3606c2d5 /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | 78e93b7e9d4b21082bd0348288ac5a5389d2fc0f (diff) |
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 <lm@nvidia.com>
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 <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 { | |||
424 | void *pmu_alloc_ptr, u32 offset); | 424 | void *pmu_alloc_ptr, u32 offset); |
425 | void * (*pmu_allocation_get_fb_addr)( | 425 | void * (*pmu_allocation_get_fb_addr)( |
426 | struct pmu_gk20a *pmu, void *pmu_alloc_ptr); | 426 | struct pmu_gk20a *pmu, void *pmu_alloc_ptr); |
427 | u32 (*pmu_allocation_get_fb_size)( | ||
428 | struct pmu_gk20a *pmu, void *pmu_alloc_ptr); | ||
427 | void (*get_pmu_init_msg_pmu_queue_params)( | 429 | void (*get_pmu_init_msg_pmu_queue_params)( |
428 | struct pmu_queue *queue, u32 id, | 430 | struct pmu_queue *queue, u32 id, |
429 | void *pmu_init_msg); | 431 | void *pmu_init_msg); |