diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2016-07-07 07:16:36 -0400 |
---|---|---|
committer | Vijayakumar Subbu <vsubbu@nvidia.com> | 2016-07-12 09:58:21 -0400 |
commit | 14fc3775fbde01dc87838d87152a7ff0860eb887 (patch) | |
tree | db5ae0f0903e14a0722773499915e9960400920c /drivers/gpu/nvgpu/gk20a | |
parent | 3f8caca9e8a5d9b9ebc1fa1e16fefdb20f2e25f9 (diff) |
gpu: nvgpu: zero vidmem pages on allocation
The allocator doesn't give us empty pages, so make sure that they're
full of zeros, just like the sysmem alloc path does.
Jira DNVGPU-16
Change-Id: I0ff8a0718829b13973535ba1111a8a11b91be04d
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/1178829
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c index d7ace0d8..adce734c 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c | |||
@@ -2517,6 +2517,8 @@ int gk20a_gmmu_alloc_attr_vid_at(struct gk20a *g, enum dma_attr attr, | |||
2517 | mem->size = size; | 2517 | mem->size = size; |
2518 | mem->aperture = APERTURE_VIDMEM; | 2518 | mem->aperture = APERTURE_VIDMEM; |
2519 | 2519 | ||
2520 | gk20a_memset(g, mem, 0, 0, size); | ||
2521 | |||
2520 | gk20a_dbg_fn("done"); | 2522 | gk20a_dbg_fn("done"); |
2521 | 2523 | ||
2522 | return 0; | 2524 | return 0; |