drm/amdgpu: add spin lock to protect freed list in vm (v2)
authorjimqu <Jim.Qu@amd.com>
Fri, 4 Dec 2015 09:17:00 +0000 (17:17 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 4 Dec 2015 18:08:13 +0000 (13:08 -0500)
commit81d75a30c6ed006a314f5c760196d04758660ca6
treefcdfce8c4b048aab55b101845e8a53155eb7c55e
parent9c97b5ab4a91c18c2e7654f044cbff446cfd979b
drm/amdgpu: add spin lock to protect freed list in vm (v2)

there is a protection fault about freed list when OCL test.
add a spin lock to protect it.

v2: drop changes in vm_fini

Signed-off-by: JimQu <jim.qu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c