]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: use spin_lock_irqsave to protect vm_manager.pasid_idr
authorPhilip Yang <Philip.Yang@amd.com>
Wed, 30 Jan 2019 20:21:16 +0000 (15:21 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 5 Feb 2019 23:10:24 +0000 (18:10 -0500)
commit1701c94baf652b5024c1d26d7e91d61394c91566
tree9d30f4c625e164ab9402f0cb55dc0af1ee9f697c
parenta233cf358097206ad16f1d8744ecaec1d493bc0f
drm/amdgpu: use spin_lock_irqsave to protect vm_manager.pasid_idr

amdgpu_vm_get_task_info is called from interrupt handler and sched timeout
workqueue, we should use irq version spin_lock to avoid deadlock.

Signed-off-by: Philip Yang <Philip.Yang@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_vm.c