summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.c
diff options
context:
space:
mode:
authorThomas Fleury <tfleury@nvidia.com>2017-08-31 18:08:43 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-10-29 13:59:59 -0400
commit6b3b2b9c08a745288efcd1e608c0fa95da966c4e (patch)
treea451ffd884d934feacf689c8e3144b1c35251ff8 /drivers/gpu/nvgpu/gk20a/gk20a.c
parentf073e6d4a385837a6f775bd496888fb9cef29307 (diff)
gpu: nvgpu: allow suspend when engine is busy
We currently check that engine is idle before proceeding with suspend. This prevents suspend when we could simply disable and preempt all channels. Moreover, doing such a check in virtualization case, would require to query engine status from RM server, before proceeding with suspend. Removed check on engine idle for system suspend. JIRA EVLR-1852 Change-Id: Ic6dc65af14b00f236db20038dfc04fa0928c1fe2 Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1552347 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c
index 2b99b52c..47f6c56c 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.c
@@ -96,9 +96,6 @@ int gk20a_prepare_poweroff(struct gk20a *g)
96 96
97 gk20a_dbg_fn(""); 97 gk20a_dbg_fn("");
98 98
99 if (gk20a_fifo_is_engine_busy(g))
100 return -EBUSY;
101
102 ret = gk20a_channel_suspend(g); 99 ret = gk20a_channel_suspend(g);
103 if (ret) 100 if (ret)
104 return ret; 101 return ret;