Skip to content

Commit be03177

Browse files
YiPeng Chaialexdeucher
authored andcommitted
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. Signed-off-by: YiPeng Chai <YiPeng.Chai@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 5d1b32c commit be03177

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6694,8 +6694,8 @@ int amdgpu_device_gpu_recover(struct amdgpu_device *adev,
66946694
amdgpu_device_gpu_resume(adev, &device_list, need_emergency_restart);
66956695
reset_unlock:
66966696
amdgpu_device_recovery_put_reset_lock(adev, &device_list);
6697-
end_reset:
66986697
amdgpu_ras_post_reset(adev, &device_list);
6698+
end_reset:
66996699
if (hive) {
67006700
mutex_unlock(&hive->hive_lock);
67016701
amdgpu_put_xgmi_hive(hive);

0 commit comments

Comments
 (0)