Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7e9fca0b authored by Christian König's avatar Christian König Committed by Alex Deucher
Browse files

drm/amdgpu: fix amdgpu_vm_bo_map



We need to reset the bo_va address, otherwise new mappings
wouldn't be updated in the page table.

Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent cab6d57c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1002,6 +1002,8 @@ int amdgpu_vm_bo_map(struct amdgpu_device *adev,
	list_add(&mapping->list, &bo_va->mappings);
	interval_tree_insert(&mapping->it, &vm->va);

	bo_va->addr = 0;

	/* Make sure the page tables are allocated */
	saddr >>= amdgpu_vm_block_size;
	eaddr >>= amdgpu_vm_block_size;