diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/4047-drm-amdgpu-it-should-disable-gfxoff-when-system-is-g.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/4047-drm-amdgpu-it-should-disable-gfxoff-when-system-is-g.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/4047-drm-amdgpu-it-should-disable-gfxoff-when-system-is-g.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/4047-drm-amdgpu-it-should-disable-gfxoff-when-system-is-g.patch new file mode 100644 index 00000000..54dff9b3 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/4047-drm-amdgpu-it-should-disable-gfxoff-when-system-is-g.patch @@ -0,0 +1,37 @@ +From a0de14c03d0ed06f696886d011de3a99e5d3103a Mon Sep 17 00:00:00 2001 +From: Huang Rui <ray.huang@amd.com> +Date: Tue, 13 Mar 2018 18:39:48 +0800 +Subject: [PATCH 4047/4131] drm/amdgpu: it should disable gfxoff when system is + going to suspend +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +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/amdgpu_device.c | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +index 6f0f072..f110567 100644 +--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c ++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +@@ -1903,6 +1903,12 @@ int amdgpu_device_ip_suspend(struct amdgpu_device *adev) + if (amdgpu_sriov_vf(adev)) + amdgpu_virt_request_full_gpu(adev, false); + ++ /* ungate SMC block powergating */ ++ if (adev->powerplay.pp_feature & PP_GFXOFF_MASK) ++ amdgpu_device_ip_set_powergating_state(adev, ++ AMD_IP_BLOCK_TYPE_SMC, ++ AMD_CG_STATE_UNGATE); ++ + /* ungate SMC block first */ + r = amdgpu_device_ip_set_clockgating_state(adev, AMD_IP_BLOCK_TYPE_SMC, + AMD_CG_STATE_UNGATE); +-- +2.7.4 + |