summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/fifo_vgpu.c')
-rw-r--r--drivers/gpu/nvgpu/vgpu/fifo_vgpu.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c b/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c
index ffa16cd3..29692573 100644
--- a/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c
+++ b/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c
@@ -217,7 +217,8 @@ static int init_runlist(struct gk20a *g, struct fifo_gk20a *f)
217 217
218 runlist_size = sizeof(u16) * f->num_channels; 218 runlist_size = sizeof(u16) * f->num_channels;
219 for (i = 0; i < MAX_RUNLIST_BUFFERS; i++) { 219 for (i = 0; i < MAX_RUNLIST_BUFFERS; i++) {
220 int err = gk20a_gmmu_alloc(g, runlist_size, &runlist->mem[i]); 220 int err = gk20a_gmmu_alloc_sys(g, runlist_size,
221 &runlist->mem[i]);
221 if (err) { 222 if (err) {
222 dev_err(d, "memory allocation failed\n"); 223 dev_err(d, "memory allocation failed\n");
223 goto clean_up_runlist; 224 goto clean_up_runlist;
@@ -265,7 +266,7 @@ static int vgpu_init_fifo_setup_sw(struct gk20a *g)
265 266
266 f->userd_entry_size = 1 << ram_userd_base_shift_v(); 267 f->userd_entry_size = 1 << ram_userd_base_shift_v();
267 268
268 err = gk20a_gmmu_alloc(g, f->userd_entry_size * f->num_channels, 269 err = gk20a_gmmu_alloc_sys(g, f->userd_entry_size * f->num_channels,
269 &f->userd); 270 &f->userd);
270 if (err) { 271 if (err) {
271 dev_err(d, "memory allocation failed\n"); 272 dev_err(d, "memory allocation failed\n");