From aa3e3aaaa098e004045bcc8dd874431a3c0f2b2d Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Thu, 12 Jun 2014 19:28:15 +0530 Subject: gpu: nvgpu: do not idle timed out channels While suspending the device, do not submit WFI on timed out channels Submitting WFI on timed out channels will cuase submit_wfi() to return error and as result of this, rail gating of device will be prevented Bug 200010416 Change-Id: Ic097bfdae59dbf9e1f2aea5d8d0431b5f1c3721b Signed-off-by: Deepak Nibade Reviewed-on: http://git-master/r/422743 Reviewed-by: Terje Bergstrom Tested-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/channel_gk20a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers') diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c index 9492d646..0f805214 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c @@ -1937,7 +1937,7 @@ int gk20a_channel_suspend(struct gk20a *g) /* idle the engine by submitting WFI on non-KEPLER_C channel */ for (chid = 0; chid < f->num_channels; chid++) { struct channel_gk20a *c = &f->channel[chid]; - if (c->in_use && c->obj_class != KEPLER_C) { + if (c->in_use && c->obj_class != KEPLER_C && !c->has_timedout) { err = gk20a_channel_submit_wfi(c); if (err) { gk20a_err(d, "cannot idle channel %d\n", -- cgit v1.2.2