drm/amd/ras: Fix the issue of incorrect function call
Subsystems (2)
PATCH 1/1 drm/amd/ras: Fix the issue of incorrect function call
When amdgpu_device_health_check fails, amdgpu_ras_pre_reset will not be called and therefore amdgpu_ras_post_reset cannot be called either.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1 -1
@@ -6751,8 +6751,8 @@ int amdgpu_device_gpu_recover(struct amdgpu_device *adev,amdgpu_device_gpu_resume (adev, &device_list, need_emergency_restart); reset_unlock:amdgpu_device_recovery_put_reset_lock (adev, &device_list); -end_reset:amdgpu_ras_post_reset (adev, &device_list); +end_reset:if (hive) {mutex_unlock (&hive->hive_lock);amdgpu_put_xgmi_hive (hive);
Signature · 1 line
2.34.1
[AMD Official Use Only - AMD Internal Distribution Only]
Regards,
Hawking
-----Original Message-----
From: Chai, Thomas <[email protected]>
Sent: Wednesday, November 5, 2025 20:24
To: [email protected]
Cc: Zhang, Hawking <[email protected]>; Zhou1, Tao <[email protected]>; Li, Candice <[email protected]>; Yang, Stanley <[email protected]>; Su, Joe <[email protected]>; Chai, Thomas <[email protected]>
Subject: [PATCH] drm/amd/ras: Fix the issue of incorrect function call
When amdgpu_device_health_check fails, amdgpu_ras_pre_reset will not be called and therefore amdgpu_ras_post_reset cannot be called either.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1 -1
@@ -6751,8 +6751,8 @@ int amdgpu_device_gpu_recover(struct amdgpu_device *adev,amdgpu_device_gpu_resume (adev, &device_list, need_emergency_restart); reset_unlock:amdgpu_device_recovery_put_reset_lock (adev, &device_list); -end_reset:amdgpu_ras_post_reset (adev, &device_list); +end_reset:if (hive) {mutex_unlock (&hive->hive_lock);amdgpu_put_xgmi_hive (hive);
--
2.34.1