drm/amdgpu: extend lock range for race condition when gpu reset
authorRoger.He <Hongbo.He@amd.com>
Fri, 5 May 2017 05:27:10 +0000 (13:27 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 May 2017 21:40:31 +0000 (17:40 -0400)
commit738f64ccc237f80b7673a6cc43051916eb90dc27
tree6eb7dc7516db9f9cdf7c463643b9ec9bcf091ac7
parent455a7bc27c2118c7e0531b7502dedc80ed2f9d40
drm/amdgpu: extend lock range for race condition when gpu reset

to cover below case:
1. A task gart bind/unbind but not add to adev->gtt_list yet
2. at this time gpu reset, gtt only recover those gtt in adev->gtt_list

Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Roger.He <Hongbo.He@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c