drm/amdgpu: link all shadow bo V2
authorChunming Zhou <David1.Zhou@amd.com>
Wed, 17 Aug 2016 03:41:30 +0000 (11:41 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 22 Aug 2016 17:47:20 +0000 (13:47 -0400)
commit0c4e7fa56112b0eaef0bf88b569608620e0465b8
tree279d4fee9378ef0f3d560170548aa66c1feb59f9
parent4c7e885506eaefc55c2b45293b52cae9ef797d67
drm/amdgpu: link all shadow bo V2

V2:
1. use mutex instead of spinlock for shadow list, since its process could
sleep.
2. move list_del to bo destroy phase.

Signed-off-by: Chunming Zhou <David1.Zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c