summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm206/acr_gm206.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gm206/acr_gm206.c')
-rw-r--r--drivers/gpu/nvgpu/gm206/acr_gm206.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm206/acr_gm206.c b/drivers/gpu/nvgpu/gm206/acr_gm206.c
index 988761f0..39b30ea6 100644
--- a/drivers/gpu/nvgpu/gm206/acr_gm206.c
+++ b/drivers/gpu/nvgpu/gm206/acr_gm206.c
@@ -58,6 +58,9 @@ int gm206_alloc_blob_space(struct gk20a *g,
58{ 58{
59 struct wpr_carveout_info wpr_inf; 59 struct wpr_carveout_info wpr_inf;
60 60
61 if (mem->size)
62 return 0;
63
61 g->ops.pmu.get_wpr(g, &wpr_inf); 64 g->ops.pmu.get_wpr(g, &wpr_inf);
62 65
63 return gk20a_gmmu_alloc_attr_vid_at(g, 0, wpr_inf.size, mem, 66 return gk20a_gmmu_alloc_attr_vid_at(g, 0, wpr_inf.size, mem,