diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/1916-drm-amdgpu-gpu-reset-will-run-ras-post-init.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.19.8/1916-drm-amdgpu-gpu-reset-will-run-ras-post-init.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/1916-drm-amdgpu-gpu-reset-will-run-ras-post-init.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/1916-drm-amdgpu-gpu-reset-will-run-ras-post-init.patch new file mode 100644 index 00000000..8fcdd50e --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/1916-drm-amdgpu-gpu-reset-will-run-ras-post-init.patch @@ -0,0 +1,30 @@ +From 43f242f26aecc4a0aa7bfdf3ff0b3292e9c0a014 Mon Sep 17 00:00:00 2001 +From: xinhui pan <xinhui.pan@amd.com> +Date: Thu, 9 May 2019 00:13:22 +0800 +Subject: [PATCH 1916/2940] drm/amdgpu: gpu reset will run ras post init + +ras need initialize proper state after late init + +Signed-off-by: xinhui pan <xinhui.pan@amd.com> +Reviewed-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +index 7faaf22705a1..ec5456956dcf 100644 +--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c ++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +@@ -3539,6 +3539,9 @@ static int amdgpu_do_asic_reset(struct amdgpu_hive_info *hive, + if (r) + goto out; + ++ /* must succeed. */ ++ amdgpu_ras_post_init(tmp_adev); ++ + /* Update PSP FW topology after reset */ + if (hive && tmp_adev->gmc.xgmi.num_physical_nodes > 1) + r = amdgpu_xgmi_update_topology(hive, tmp_adev); +-- +2.17.1 + |