MGS-6197 [#imx-2532] GPU crash when changing gpu_govern mode
authorNicușor Cîțu <nicusor.citu@nxp.com>
Wed, 14 Apr 2021 13:22:56 +0000 (16:22 +0300)
committerNicușor Cîțu <nicusor.citu@nxp.com>
Wed, 12 May 2021 11:27:20 +0000 (14:27 +0300)
Remove the unneded hack, I never run into that code and see it really
works.

Signed-off-by: Nicușor Cîțu <nicusor.citu@nxp.com>
drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_device.c

index 2a39b07..710a892 100644 (file)
@@ -3143,23 +3143,7 @@ gckGALDEVICE_Resume(
         else
 #endif
         {
-            gctINT j = 0;
-
-            for (; j < 100; j++)
-            {
-                status = gckHARDWARE_SetPowerState(hardware, state);
-
-                if ((state != gcvPOWER_OFF_BROADCAST &&
-                        state != gcvPOWER_SUSPEND_BROADCAST) ||
-                    status != gcvSTATUS_CHIP_NOT_READY)
-                {
-                    break;
-                }
-
-                gcmkVERIFY_OK(gckOS_Delay(hardware->os, 10));
-            }
-
-            gcmkERR_RETURN(status);
+            gcmkERR_RETURN(gckHARDWARE_SetPowerState(hardware, state));
         }
 
         /* Reset stored state. */