]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: fix restore worker race condition
authorPhilip Yang <Philip.Yang@amd.com>
Thu, 21 May 2020 13:56:58 +0000 (09:56 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 21 May 2020 21:59:45 +0000 (17:59 -0400)
commitd8f948d52de6e536a8e6aef4bdc798c2e15a2d84
treeec7757b26303e5ae277cd427bacc934d7df8a3fc
parente07c9ad6f6b995341096da76fac96ca20bbed1fd
drm/amdkfd: fix restore worker race condition

In free memory of gpu path, remove bo from validate_list to make sure
restore worker don't access the BO any more, then unregister bo MMU
interval notifier. Otherwise, the restore worker will crash in the
middle of validating BO user pages if MMU interval notifer is gone.

Signed-off-by: Philip Yang <Philip.Yang@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_amdkfd_gpuvm.c