]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita291ccc6654ead2270e5f974276a753e21742650
tree6eb7dc7516db9f9cdf7c463643b9ec9bcf091ac7
parentee8c9fe99cc13b6a1ca74c19e7883b60a668bc9f
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