diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/4048-drm-amdgpu-fix-to-disable-powergating-in-hw_fini.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/4048-drm-amdgpu-fix-to-disable-powergating-in-hw_fini.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/4048-drm-amdgpu-fix-to-disable-powergating-in-hw_fini.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/4048-drm-amdgpu-fix-to-disable-powergating-in-hw_fini.patch new file mode 100644 index 00000000..92383150 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/4048-drm-amdgpu-fix-to-disable-powergating-in-hw_fini.patch @@ -0,0 +1,37 @@ +From 1ca8ca9522a1395542e69acf264013e197177940 Mon Sep 17 00:00:00 2001 +From: Huang Rui <ray.huang@amd.com> +Date: Tue, 27 Feb 2018 13:43:59 +0800 +Subject: [PATCH 4048/4131] drm/amdgpu: fix to disable powergating in hw_fini +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +We need enable CGPG and GFXOFF together. If only enable one of them, this system +will get hang after startx (do draw command). So when gfxoff is disabled, it +also need disable CGPG after that. + +Signed-off-by: Huang Rui <ray.huang@amd.com> +Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> +Reviewed-by: Alex Deucher <alexander.deucher@amd.com> +Acked-by: Christian König <christian.koenig@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +index 26d516b..2c634a2 100644 +--- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c ++++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +@@ -3133,6 +3133,9 @@ static int gfx_v9_0_hw_fini(void *handle) + struct amdgpu_device *adev = (struct amdgpu_device *)handle; + int i; + ++ amdgpu_device_ip_set_powergating_state(adev, AMD_IP_BLOCK_TYPE_GFX, ++ AMD_PG_STATE_UNGATE); ++ + amdgpu_irq_put(adev, &adev->gfx.priv_reg_irq, 0); + amdgpu_irq_put(adev, &adev->gfx.priv_inst_irq, 0); + +-- +2.7.4 + |