]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
gpu: nvgpu: increase wait time during shutdown
authorDeepak Nibade <dnibade@nvidia.com>
Mon, 11 Jan 2016 10:22:28 +0000 (15:52 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Fri, 5 Feb 2016 12:03:46 +0000 (04:03 -0800)
In GPU shutdown path, we currently wait for 2s to allow
all other work to finish.

Increase this time to 5s as a workaround in case
2s is insufficient

This commit should be reverted once proper fixes are merged

Bug 200165480

Change-Id: I1bb99568235c327dab53114afb902507fb5f0792
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/931024
(cherry picked from commit 4d1baeff1ace5a03ee15ec1c27081d328c21f739)
Reviewed-on: http://git-master/r/1002869
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
drivers/gpu/nvgpu/gk20a/gk20a.c

index 9014ada8ef3e23ec75e025136c85505d034c9980..f5c236ef55f5781b970f0d961386b65119251c47 100644 (file)
@@ -1136,7 +1136,7 @@ static void gk20a_pm_shutdown(struct platform_device *pdev)
 {
 #ifdef CONFIG_PM_RUNTIME
        unsigned long timeout = jiffies +
-               msecs_to_jiffies(GK20A_WAIT_FOR_IDLE_MS);
+               msecs_to_jiffies(5000);
        int ref_cnt;
 #endif
        struct gk20a_platform *platform = platform_get_drvdata(pdev);