From f64ad63b551bfef7f20b16ea8cfa030b3b4a9bad Mon Sep 17 00:00:00 2001 From: Sunil Khatri Date: Fri, 16 Oct 2026 17:30:13 +0530 Subject: [PATCH] drm/amdgpu: identify the root PD by pointer in amdgpu_vm_bo_needs_update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit bo->tbo.type == ttm_bo_type_kernel && !bo->parent also matches other kernel BOs with no parent, not just vm->root.bo, routing them to idle instead of needs_update. Compare against vm->root.bo directly. Signed-off-by: Sunil Khatri Reviewed-by: Christian König Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c index 89760bfd3f0b..6390d99ea8a6 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c @@ -230,7 +230,7 @@ static void amdgpu_vm_bo_needs_update(struct amdgpu_vm_bo_base *vm_bo) * idle state. */ lists = amdgpu_vm_bo_lock_lists(vm_bo); - if (bo && bo->tbo.type == ttm_bo_type_kernel && !bo->parent) { + if (bo == vm_bo->vm->root.bo) { vm_bo->moved = false; list_move(&vm_bo->vm_status, &lists->idle); } else { -- GitLab