]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Use vm status_lock to protect pt free
authorPhilip Yang <Philip.Yang@amd.com>
Fri, 16 Sep 2022 13:30:43 +0000 (09:30 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Sep 2022 19:25:46 +0000 (15:25 -0400)
commit7b3442a93e1f1276354c39a4830b2ac49ef89bf9
tree38216ece4986dfcaaddf730c2a7a2568a85d2405
parentcf061e1755f1c907bba97cca3de175c13013ba81
drm/amdgpu: Use vm status_lock to protect pt free

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_pt.c