summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXianzhong <xianzhong.li@nxp.com>2017-07-07 16:44:38 +0800
committerLeonard Crestez <leonard.crestez@nxp.com>2018-08-24 12:41:33 +0300
commit0b0147b96ee9bcd9baa6c4b5c80c2a0441b9c79a (patch)
treef9139b364622d08700f9bda654c8587665a12f17
parent14055d10a908f0da1b9ca0799aaa49bee93a6125 (diff)
MGS-2966 [#imx-651] fix GPU hang with power management off
iMX8QXP SCFW has the strict requirement on GPU power-up/down flow, when GPU power management is disabled, there is no power-down, then GPU hang with the second power-up when insmod galcore. this fix will enable power-down when unload galcore module. Date: Jul 07, 2017 Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
-rw-r--r--drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_device.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_device.c b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_device.c
index 6ab753f29f71..1a29fe19461a 100644
--- a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_device.c
+++ b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_device.c
@@ -2192,6 +2192,10 @@ gckGALDEVICE_Stop(
if (Device->kernels[i] != gcvNULL)
{
+ gcmkONERROR(gckHARDWARE_SetPowerManagement(
+ Device->kernels[i]->hardware, gcvTRUE
+ ));
+
/* Switch to OFF power state. */
gcmkONERROR(gckHARDWARE_SetPowerManagementState(
Device->kernels[i]->hardware, gcvPOWER_OFF