summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/nvgpu/vgpu/fifo_vgpu.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c b/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c
index 26e4de02..024dac7b 100644
--- a/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c
+++ b/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c
@@ -232,15 +232,15 @@ static int init_runlist(struct gk20a *g, struct fifo_gk20a *f)
232 if (!runlist->active_channels) 232 if (!runlist->active_channels)
233 goto clean_up_runlist; 233 goto clean_up_runlist;
234 234
235 runlist_size = sizeof(u16) * f->num_channels; 235 runlist_size = sizeof(u16) * f->num_channels;
236 for (i = 0; i < MAX_RUNLIST_BUFFERS; i++) { 236 for (i = 0; i < MAX_RUNLIST_BUFFERS; i++) {
237 int err = nvgpu_dma_alloc_sys(g, runlist_size, 237 int err = nvgpu_dma_alloc_sys(g, runlist_size,
238 &runlist->mem[i]); 238 &runlist->mem[i]);
239 if (err) { 239 if (err) {
240 dev_err(d, "memory allocation failed\n"); 240 dev_err(d, "memory allocation failed\n");
241 goto clean_up_runlist; 241 goto clean_up_runlist;
242 }
243 } 242 }
243 }
244 nvgpu_mutex_init(&runlist->mutex); 244 nvgpu_mutex_init(&runlist->mutex);
245 245
246 /* None of buffers is pinned if this value doesn't change. 246 /* None of buffers is pinned if this value doesn't change.