summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/channel_gk20a.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
index b8f769a4..ab0333d6 100644
--- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
@@ -1572,9 +1572,11 @@ int gk20a_submit_channel_gpfifo(struct channel_gk20a *c,
1572 /* Make sure we have enough space for gpfifo entries. If not, 1572 /* Make sure we have enough space for gpfifo entries. If not,
1573 * wait for signals from completed submits */ 1573 * wait for signals from completed submits */
1574 if (gp_free_count(c) < num_entries + extra_entries) { 1574 if (gp_free_count(c) < num_entries + extra_entries) {
1575 trace_gk20a_gpfifo_submit_wait_for_space(c->g->dev->name);
1575 err = wait_event_interruptible(c->submit_wq, 1576 err = wait_event_interruptible(c->submit_wq,
1576 get_gp_free_count(c) >= num_entries + extra_entries || 1577 get_gp_free_count(c) >= num_entries + extra_entries ||
1577 c->has_timedout); 1578 c->has_timedout);
1579 trace_gk20a_gpfifo_submit_wait_for_space_done(c->g->dev->name);
1578 } 1580 }
1579 1581
1580 if (c->has_timedout) { 1582 if (c->has_timedout) {