mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
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>
This commit is contained in:
committed by
mobile promotions
parent
f073e6d4a3
commit
6b3b2b9c08
@@ -276,11 +276,6 @@ static int gk20a_pm_prepare_poweroff(struct device *dev)
|
||||
if (!g->power_on)
|
||||
goto done;
|
||||
|
||||
if (gk20a_fifo_is_engine_busy(g)) {
|
||||
ret = -EBUSY;
|
||||
goto done;
|
||||
}
|
||||
|
||||
gk20a_scale_suspend(dev);
|
||||
|
||||
gk20a_cde_suspend(l);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user