drm/amdgpu: correct cancel_delayed_work_sync on gpu reset

As for XGMI setup, it should be performed on other devices
from the hive also.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Evan Quan 2020-04-16 12:20:38 +08:00 committed by Alex Deucher
parent a2f63ee8b5
commit 52fb44cf30
1 changed files with 2 additions and 0 deletions

View File

@ -4218,6 +4218,8 @@ int amdgpu_device_gpu_recover(struct amdgpu_device *adev,
amdgpu_amdkfd_pre_reset(tmp_adev);
}
cancel_delayed_work_sync(&tmp_adev->delayed_init_work);
/*
* Mark these ASICs to be reseted as untracked first
* And add them back after reset completed