gpu: nvgpu: increase wait time during shutdown
Deepak Nibade [Mon, 11 Jan 2016 10:22:28 +0000 (15:22 +0530)]
In GPU shutdown path, we currently wait for 2s to allow
all other work to finish.

Increase this time to 5s in case 2s is insufficient

Bug 200165480

Change-Id: I1bb99568235c327dab53114afb902507fb5f0792
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/931024
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
Tested-by: Roopa Ranganathan <rranganathan@nvidia.com>

drivers/gpu/nvgpu/gk20a/gk20a.c

index da4207e..45d382d 100644 (file)
@@ -1135,7 +1135,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);