drm/amdgpu: Use vm status_lock to protect vm moved list
authorPhilip Yang <Philip.Yang@amd.com>
Fri, 16 Sep 2022 03:08:52 +0000 (23:08 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Sep 2022 19:25:35 +0000 (15:25 -0400)
commit998debbdc8f49bea4ea8bff9852faa170e996bb0
tree8227a84f9b6d50db916786cad94e680981df12f7
parentc1806d78eca8df6e9c6d07652e1a0bf1c4669984
drm/amdgpu: Use vm status_lock to protect vm moved 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