commit | 53b3f8f40e6cff36ae12b11e6d6b308af3c7e53f | [log] [tgz] |
---|---|---|
author | Dennis Li <Dennis.Li@amd.com> | Wed Aug 19 17:23:03 2020 +0800 |
committer | Alex Deucher <alexander.deucher@amd.com> | Mon Aug 24 12:22:56 2020 -0400 |
tree | 865f5a2a0f2d69a04dbceb1853672ceef77dcb53 | |
parent | c9977dffcc7e0f728e82209c140991c5bd27c491 [diff] |
drm/amdgpu: refine codes to avoid reentering GPU recovery if other threads have holden the reset lock, recovery will fail to try_lock. Therefore we introduce atomic hive->in_reset and adev->in_gpu_reset, to avoid reentering GPU recovery. v2: drop "? true : false" in the definition of amdgpu_in_reset Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Dennis Li <Dennis.Li@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>