diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gp106')
-rw-r--r-- | drivers/gpu/nvgpu/gp106/acr_gp106.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gp106/acr_gp106.c b/drivers/gpu/nvgpu/gp106/acr_gp106.c index f5228136..afb9ebe2 100644 --- a/drivers/gpu/nvgpu/gp106/acr_gp106.c +++ b/drivers/gpu/nvgpu/gp106/acr_gp106.c | |||
@@ -109,12 +109,14 @@ static int gp106_alloc_blob_space(struct gk20a *g, | |||
109 | * Even though this mem_desc wouldn't be used, the wpr region needs to | 109 | * Even though this mem_desc wouldn't be used, the wpr region needs to |
110 | * be reserved in the allocator. | 110 | * be reserved in the allocator. |
111 | */ | 111 | */ |
112 | err = gk20a_gmmu_alloc_attr_vid_at(g, 0, wpr_inf.size, | 112 | err = gk20a_gmmu_alloc_flags_vid_at(g, |
113 | &g->acr.wpr_dummy, wpr_inf.wpr_base); | 113 | NVGPU_DMA_NO_KERNEL_MAPPING, wpr_inf.size, |
114 | &g->acr.wpr_dummy, wpr_inf.wpr_base); | ||
114 | if (err) | 115 | if (err) |
115 | return err; | 116 | return err; |
116 | 117 | ||
117 | return gk20a_gmmu_alloc_attr_vid_at(g, 0, wpr_inf.size, mem, | 118 | return gk20a_gmmu_alloc_flags_vid_at(g, |
119 | NVGPU_DMA_NO_KERNEL_MAPPING, wpr_inf.size, mem, | ||
118 | wpr_inf.nonwpr_base); | 120 | wpr_inf.nonwpr_base); |
119 | } | 121 | } |
120 | 122 | ||