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 17:23:38 +0000 (12:23 -0500)
commit9c4153b1eef9bc8da6a624252a3a25790b705136
tree0de7e307e7317d669e9698e30e719ebb32c7f315
parenteb64526f5a5a382df7018a3e69061b9e3f20e32d
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