]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: move lockdep assert to the right place.
authorChristian König <christian.koenig@amd.com>
Fri, 4 Feb 2022 08:42:22 +0000 (09:42 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Feb 2022 23:03:50 +0000 (18:03 -0500)
commitcdfd0dc362d8d2af785267119873b6950c4fd0ae
tree83087d808327de1a6a51e6bf995e9024eef93ebe
parent9728198acdef13b56bb3c95df1a0b4f3d6a6a628
drm/amdgpu: move lockdep assert to the right place.

Since newly added BOs don't have any mappings it's ok to add them
without holding the VM lock. Only when we add per VM BOs the lock is
mandatory.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reported-by: Bhardwaj, Rajneesh <Rajneesh.Bhardwaj@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c