summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/nvgpu/gp106/acr_gp106.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp106/acr_gp106.c b/drivers/gpu/nvgpu/gp106/acr_gp106.c
index 9364afec..c43b0165 100644
--- a/drivers/gpu/nvgpu/gp106/acr_gp106.c
+++ b/drivers/gpu/nvgpu/gp106/acr_gp106.c
@@ -93,9 +93,19 @@ static int gp106_alloc_blob_space(struct gk20a *g,
93 size_t size, struct mem_desc *mem) 93 size_t size, struct mem_desc *mem)
94{ 94{
95 struct wpr_carveout_info wpr_inf; 95 struct wpr_carveout_info wpr_inf;
96 int err;
96 97
97 g->ops.pmu.get_wpr(g, &wpr_inf); 98 g->ops.pmu.get_wpr(g, &wpr_inf);
98 99
100 /*
101 * Even though this mem_desc wouldn't be used, the wpr region needs to
102 * be reserved in the allocator.
103 */
104 err = gk20a_gmmu_alloc_attr_vid_at(g, 0, wpr_inf.size,
105 &g->acr.wpr_dummy, wpr_inf.wpr_base);
106 if (err)
107 return err;
108
99 return gk20a_gmmu_alloc_attr_vid_at(g, 0, wpr_inf.size, mem, 109 return gk20a_gmmu_alloc_attr_vid_at(g, 0, wpr_inf.size, mem,
100 wpr_inf.nonwpr_base); 110 wpr_inf.nonwpr_base);
101} 111}