]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
drm/amdkfd: process_info lock not needed for svm
authorPhilip Yang <Philip.Yang@amd.com>
Mon, 29 Nov 2021 17:33:05 +0000 (12:33 -0500)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 4 Jan 2022 08:49:22 +0000 (09:49 +0100)
commit5cef5d696e93f9c28eef9aeddb55da7450992fc8
treecb8756ed6d56f7b231830be4f0a047efaa26f980
parentf3e20b4f59acefbc2e812bb6abf0bb58e01cbffd
drm/amdkfd: process_info lock not needed for svm

BugLink: https://bugs.launchpad.net/bugs/1956301
[ Upstream commit 3abfe30d803e62cc75dec254eefab3b04d69219b ]

process_info->lock is used to protect kfd_bo_list, vm_list_head, n_vms
and userptr valid/inval list, svm_range_restore_work and
svm_range_set_attr don't access those, so do not need to take
process_info lock. This will avoid potential circular locking issue.

Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
drivers/gpu/drm/amd/amdkfd/kfd_svm.c