diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/1932-drm-amdgpu-enable-ras-suspend-resume.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/1932-drm-amdgpu-enable-ras-suspend-resume.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/1932-drm-amdgpu-enable-ras-suspend-resume.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/1932-drm-amdgpu-enable-ras-suspend-resume.patch new file mode 100644 index 00000000..f02dc9b9 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/1932-drm-amdgpu-enable-ras-suspend-resume.patch @@ -0,0 +1,40 @@ +From 217963b6f72a48ddb335b613d213cfb6b08da32d Mon Sep 17 00:00:00 2001 +From: xinhui pan <xinhui.pan@amd.com> +Date: Thu, 9 May 2019 07:32:54 +0800 +Subject: [PATCH 1932/2940] drm/amdgpu: enable ras suspend/resume + +suspend/resume will change ras state behind us. Let driver get notified. + +Signed-off-by: xinhui pan <xinhui.pan@amd.com> +Reviewed-by: Alex Deucher <alexander.deucher@amd.com> +Reviewed-by: James Zhu <James.Zhu@amd.com> +Tested-by: James Zhu <James.Zhu@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +index 8f170846f0dd..0986722a63d0 100644 +--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c ++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +@@ -2944,6 +2944,8 @@ int amdgpu_device_suspend(struct drm_device *dev, bool suspend, bool fbcon) + + amdgpu_amdkfd_suspend(adev); + ++ amdgpu_ras_suspend(adev); ++ + r = amdgpu_device_ip_suspend_phase1(adev); + + /* evict vram memory */ +@@ -3064,6 +3066,8 @@ int amdgpu_device_resume(struct drm_device *dev, bool resume, bool fbcon) + + drm_kms_helper_poll_enable(dev); + ++ amdgpu_ras_resume(adev); ++ + /* + * Most of the connector probing functions try to acquire runtime pm + * refs to ensure that the GPU is powered on when connector polling is +-- +2.17.1 + |