From 6b3b2b9c08a745288efcd1e608c0fa95da966c4e Mon Sep 17 00:00:00 2001 From: Thomas Fleury Date: Thu, 31 Aug 2017 15:08:43 -0700 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1552347 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/gk20a.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c') 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) gk20a_dbg_fn(""); - if (gk20a_fifo_is_engine_busy(g)) - return -EBUSY; - ret = gk20a_channel_suspend(g); if (ret) return ret; -- cgit v1.2.2