]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Use vm status_lock to protect relocated list
authorPhilip Yang <Philip.Yang@amd.com>
Fri, 16 Sep 2022 02:47:46 +0000 (22:47 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Sep 2022 19:25:24 +0000 (15:25 -0400)
commit400002cbd39ec77e6dc654870142c4897724928c
treec424112bc557cafa2f94f8ba81730f89ac413176
parentd1b09142b74774a3dd185128502ff297e6ae5433
drm/amdgpu: Use vm status_lock to protect relocated 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