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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c b/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c
index 68a31eca..23ff8677 100644
--- a/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c
+++ b/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c
@@ -283,6 +283,9 @@ static int vgpu_init_fifo_setup_sw(struct gk20a *g)
283 283
284 init_runlist(g, f); 284 init_runlist(g, f);
285 285
286 INIT_LIST_HEAD(&f->free_chs);
287 mutex_init(&f->free_chs_mutex);
288
286 for (chid = 0; chid < f->num_channels; chid++) { 289 for (chid = 0; chid < f->num_channels; chid++) {
287 f->channel[chid].userd_cpu_va = 290 f->channel[chid].userd_cpu_va =
288 f->userd.cpu_va + chid * f->userd_entry_size; 291 f->userd.cpu_va + chid * f->userd_entry_size;
@@ -294,7 +297,6 @@ static int vgpu_init_fifo_setup_sw(struct gk20a *g)
294 297
295 gk20a_init_channel_support(g, chid); 298 gk20a_init_channel_support(g, chid);
296 } 299 }
297 mutex_init(&f->ch_inuse_mutex);
298 300
299 f->deferred_reset_pending = false; 301 f->deferred_reset_pending = false;
300 mutex_init(&f->deferred_reset_mutex); 302 mutex_init(&f->deferred_reset_mutex);