]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Mar 2019 21:04:16 +0000 (14:04 -0700)
commite5d3944e0e617286d02aeec92ba78e24f15bf87b
tree430f12656bf41a7f76442b7280d171d11a98244b
parentfcf003ca4e61e058e03178dedf39c1050d80fc8c
drm/amdgpu: use spin_lock_irqsave to protect vm_manager.pasid_idr

[ Upstream commit 0a5f49cbf9d6ad3721c16f8a6d823363ea7a160f ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c