diff options
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 3 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/subctx_gv11b.c | 2 |
2 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index b218397a..d787a693 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c | |||
@@ -1763,9 +1763,6 @@ int gr_gk20a_update_hwpm_ctxsw_mode(struct gk20a *g, | |||
1763 | return -ENOMEM; | 1763 | return -ENOMEM; |
1764 | } | 1764 | } |
1765 | } | 1765 | } |
1766 | |||
1767 | /* Now clear the buffer */ | ||
1768 | nvgpu_memset(g, &pm_ctx->mem, 0, 0, pm_ctx->mem.size); | ||
1769 | } | 1766 | } |
1770 | 1767 | ||
1771 | data = nvgpu_mem_rd(g, gr_mem, ctxsw_prog_main_image_pm_o()); | 1768 | data = nvgpu_mem_rd(g, gr_mem, ctxsw_prog_main_image_pm_o()); |
diff --git a/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c b/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c index 4f8de196..b0bcb585 100644 --- a/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c | |||
@@ -79,8 +79,6 @@ int gv11b_alloc_subctx_header(struct channel_gk20a *c) | |||
79 | nvgpu_dma_free(g, &ctx->mem); | 79 | nvgpu_dma_free(g, &ctx->mem); |
80 | return -ENOMEM; | 80 | return -ENOMEM; |
81 | } | 81 | } |
82 | /* Now clear the buffer */ | ||
83 | nvgpu_memset(g, &ctx->mem, 0, 0, ctx->mem.size); | ||
84 | } | 82 | } |
85 | return ret; | 83 | return ret; |
86 | } | 84 | } |