Skip to content

Commit 8e78127

Browse files
Guchun Chenalexdeucher
authored andcommitted
drm/amdgpu/vm: use the same xcp_id from root PD
Other PDs/PTs allocation should just use the same xcp_id as that stored in root PD. Suggested-by: Christian König <[email protected]> Signed-off-by: Guchun Chen <[email protected]> Reviewed-by: Felix Kuehling <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 8ecee4c commit 8e78127

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,8 @@ static int amdgpu_vm_pt_alloc(struct amdgpu_device *adev,
607607
return 0;
608608

609609
amdgpu_vm_eviction_unlock(vm);
610-
r = amdgpu_vm_pt_create(adev, vm, cursor->level, immediate, &pt, 0);
610+
r = amdgpu_vm_pt_create(adev, vm, cursor->level, immediate, &pt,
611+
vm->root.bo->xcp_id);
611612
amdgpu_vm_eviction_lock(vm);
612613
if (r)
613614
return r;

0 commit comments

Comments
 (0)