diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index 8db6b42f..7160ab6f 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c | |||
@@ -2482,6 +2482,11 @@ static int gk20a_gr_alloc_ctx_buffer(struct gk20a *g, | |||
2482 | { | 2482 | { |
2483 | int err = 0; | 2483 | int err = 0; |
2484 | 2484 | ||
2485 | nvgpu_log_fn(g, " "); | ||
2486 | |||
2487 | if (nvgpu_mem_is_valid(&desc->mem)) | ||
2488 | return 0; | ||
2489 | |||
2485 | err = nvgpu_dma_alloc_flags_sys(g, NVGPU_DMA_NO_KERNEL_MAPPING, | 2490 | err = nvgpu_dma_alloc_flags_sys(g, NVGPU_DMA_NO_KERNEL_MAPPING, |
2486 | size, &desc->mem); | 2491 | size, &desc->mem); |
2487 | if (err) | 2492 | if (err) |