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: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
cab6d57c09
commit
7e9fca0baa
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue