MGS-4894 [#ccc] fix GPU hang for overheat protection
authorXianzhong <xianzhong.li@nxp.com>
Wed, 16 Oct 2019 13:09:12 +0000 (21:09 +0800)
committerXianzhong <xianzhong.li@nxp.com>
Fri, 18 Oct 2019 18:58:50 +0000 (02:58 +0800)
set minimal scaling factor with 20 for 8MM and 6SX GPU

Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
(cherry picked from commit 03f411ed00d173b683ff2d00edf6196724cccf9d)

drivers/mxc/gpu-viv/hal/kernel/arch/gc_hal_kernel_hardware.c

index f90117f..651e719 100644 (file)
@@ -2272,6 +2272,12 @@ gckHARDWARE_Construct(
     hardware->minFscaleValue = 1;
     hardware->waitCount = 200;
 
+    if (_IsHardwareMatch(hardware, gcv600, 0x4653)
+        || _IsHardwareMatch(hardware, gcv400, 0x4645))
+    {
+        hardware->minFscaleValue = 20;
+    }
+
     gckSTATETIMER_Reset(&hardware->powerStateCounter, 0);
 
 #if gcdLINK_QUEUE_SIZE