Skip to content

Commit 63835e3

Browse files
ZhenGuo Yingregkh
authored andcommitted
drm/amdgpu: re-create idle bo's PTE during VM state machine reset
[ Upstream commit 4a0057a ] 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 <zhenguo.yin@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 5fcd03f commit 63835e3

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)