diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_gk20a.c | 2 |
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 4cce7260..f90bc1a3 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c | |||
@@ -1840,6 +1840,7 @@ int gk20a_channel_suspend(struct gk20a *g) | |||
1840 | for (chid = 0; chid < f->num_channels; chid++) { | 1840 | for (chid = 0; chid < f->num_channels; chid++) { |
1841 | struct channel_gk20a *c = &f->channel[chid]; | 1841 | struct channel_gk20a *c = &f->channel[chid]; |
1842 | if (c->in_use && c->obj_class != KEPLER_C) { | 1842 | if (c->in_use && c->obj_class != KEPLER_C) { |
1843 | gk20a_platform_channel_busy(g->dev); | ||
1843 | err = gk20a_channel_submit_wfi(c); | 1844 | err = gk20a_channel_submit_wfi(c); |
1844 | if (err) { | 1845 | if (err) { |
1845 | gk20a_err(d, "cannot idle channel %d\n", | 1846 | gk20a_err(d, "cannot idle channel %d\n", |
@@ -1849,6 +1850,7 @@ int gk20a_channel_suspend(struct gk20a *g) | |||
1849 | 1850 | ||
1850 | c->sync->wait_cpu(c->sync, &c->last_submit_fence, | 1851 | c->sync->wait_cpu(c->sync, &c->last_submit_fence, |
1851 | 500000); | 1852 | 500000); |
1853 | gk20a_platform_channel_idle(g->dev); | ||
1852 | break; | 1854 | break; |
1853 | } | 1855 | } |
1854 | } | 1856 | } |