From eee2744d497213a503de927cbbfe179753f5e370 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Wed, 3 Aug 2016 13:04:38 -0700 Subject: gpu: nvgpu: When powering down, abort if not idle When trying to power down GPU the engine might be still busy. In this case delay power down by returning -EBUSY from gk20a_pm_runtime_suspend(). Bug 200224907 Change-Id: Ibad74c090add24a185bc1a7a02df367af9b95ced Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/1213042 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/channel_gk20a.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c index b4c132ce..085caec5 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c @@ -2789,16 +2789,10 @@ int gk20a_channel_suspend(struct gk20a *g) struct fifo_gk20a *f = &g->fifo; u32 chid; bool channels_in_use = false; - int err; u32 active_runlist_ids = 0; gk20a_dbg_fn(""); - /* wait for engine idle */ - err = g->ops.fifo.wait_engine_idle(g); - if (err) - return err; - for (chid = 0; chid < f->num_channels; chid++) { struct channel_gk20a *ch = &f->channel[chid]; if (gk20a_channel_get(ch)) { -- cgit v1.2.2