]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Use vm status_lock to protect vm evicted list
authorPhilip Yang <Philip.Yang@amd.com>
Fri, 16 Sep 2022 03:21:15 +0000 (23:21 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Sep 2022 19:25:40 +0000 (15:25 -0400)
commitc29020c7c61b903a5ce1f0f8397d265ef4c14030
tree01104e40dcf1f4a2deb41a0d9c51447025d33085
parent63026574d1385aff83610e10844d9759655dec34
drm/amdgpu: Use vm status_lock to protect vm evicted list

Use vm_status_lock to protect all vm_status state transitions to allow
them to happen without a reservation lock in unlocked page table
updates.

Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Acked-by: Felix Kuehling <Felix.Kuehling@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