Skip to content

Commit ab29b26

Browse files
amd-yangpgregkh
authored andcommitted
drm/amdkfd: Don't clear PT after process killed
commit 597eb70f7ff7551ff795cd51754b81aabedab67b upstream. If process is killed. the vm entity is stopped, submit pt update job will trigger the error message "*ERROR* Trying to push to a killed entity", job will not execute. Suggested-by: Christian König <[email protected]> Signed-off-by: Philip Yang <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]> (cherry picked from commit 10c382ec6c6d1e11975a11962bec21cba6360391) Cc: [email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent c05fe5d commit ab29b26

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,6 +1263,10 @@ static int unmap_bo_from_gpuvm(struct kgd_mem *mem,
12631263

12641264
(void)amdgpu_vm_bo_unmap(adev, bo_va, entry->va);
12651265

1266+
/* VM entity stopped if process killed, don't clear freed pt bo */
1267+
if (!amdgpu_vm_ready(vm))
1268+
return 0;
1269+
12661270
(void)amdgpu_vm_clear_freed(adev, vm, &bo_va->last_pt_update);
12671271

12681272
(void)amdgpu_sync_fence(sync, bo_va->last_pt_update, GFP_KERNEL);

0 commit comments

Comments
 (0)