diff options
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/mm_gp10b.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/mm_gp10b.c b/drivers/gpu/nvgpu/gp10b/mm_gp10b.c index 43d9fd28..978b6f50 100644 --- a/drivers/gpu/nvgpu/gp10b/mm_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/mm_gp10b.c | |||
@@ -345,7 +345,9 @@ static enum gmmu_pgsz_gk20a gp10b_get_pde0_pgsz(struct gk20a *g, | |||
345 | if (!pd->mem) | 345 | if (!pd->mem) |
346 | return pgsz; | 346 | return pgsz; |
347 | 347 | ||
348 | nvgpu_mem_begin(g, pd->mem); | 348 | if (nvgpu_mem_begin(g, pd->mem)) |
349 | return pgsz; | ||
350 | |||
349 | for (i = 0; i < GP10B_PDE0_ENTRY_SIZE >> 2; i++) | 351 | for (i = 0; i < GP10B_PDE0_ENTRY_SIZE >> 2; i++) |
350 | pde_v[i] = nvgpu_mem_rd32(g, pd->mem, pde_offset + i); | 352 | pde_v[i] = nvgpu_mem_rd32(g, pd->mem, pde_offset + i); |
351 | nvgpu_mem_end(g, pd->mem); | 353 | nvgpu_mem_end(g, pd->mem); |