Skip to content

Commit 4a0057a

Browse files
ZhenGuo Yinalexdeucher
authored andcommitted
drm/amdgpu: re-create idle bo's PTE during VM state machine reset
Idle bo's PTE needs to be re-created when resetting VM state machine. Set idle bo's vm_bo as moved to mark it as invalid. Fixes: 55bf196 ("drm/amdgpu: reset VM when an error is detected") Signed-off-by: ZhenGuo Yin <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 81b9aeb commit 4a0057a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ static void amdgpu_vm_bo_reset_state_machine(struct amdgpu_vm *vm)
285285
list_for_each_entry_safe(vm_bo, tmp, &vm->idle, vm_status) {
286286
struct amdgpu_bo *bo = vm_bo->bo;
287287

288+
vm_bo->moved = true;
288289
if (!bo || bo->tbo.type != ttm_bo_type_kernel)
289290
list_move(&vm_bo->vm_status, &vm_bo->vm->moved);
290291
else if (bo->parent)

0 commit comments

Comments
 (0)