Skip to content

Commit 810955b

Browse files
fxkamdogabbay
authored andcommitted
drm/amdgpu: Fix acquiring VM on large-BAR systems
On large-BAR systems the VM page tables for compute are accessed by the CPU. Always allow CPU access to the page directory so that it can be used later by the CPU when a VM is converted to a compute VM. Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
1 parent 374200b commit 810955b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2406,8 +2406,7 @@ int amdgpu_vm_init(struct amdgpu_device *adev, struct amdgpu_vm *vm,
24062406
if (vm->use_cpu_for_update)
24072407
flags |= AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED;
24082408
else
2409-
flags |= (AMDGPU_GEM_CREATE_NO_CPU_ACCESS |
2410-
AMDGPU_GEM_CREATE_SHADOW);
2409+
flags |= AMDGPU_GEM_CREATE_SHADOW;
24112410

24122411
size = amdgpu_vm_bo_size(adev, adev->vm_manager.root_level);
24132412
r = amdgpu_bo_create(adev, size, align, AMDGPU_GEM_DOMAIN_VRAM, flags,

0 commit comments

Comments
 (0)