We need to refer to the parent instead of the root BO for multi
level page tables on Vega10. Also don't set the PDE_PTE bit.
v2: Don't set the PDE_PTE bit either.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-and-Tested-by: Roger He <Hongbo.He@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
                        /* Keep a reference to the root directory to avoid
                        * freeing them up in the wrong order.
                        */
-                       pt->parent = amdgpu_bo_ref(vm->root.base.bo);
+                       pt->parent = amdgpu_bo_ref(parent->base.bo);
 
                        entry->base.vm = vm;
                        entry->base.bo = pt;
                        spin_lock(&vm->status_lock);
                        list_add(&entry->base.vm_status, &vm->relocated);
                        spin_unlock(&vm->status_lock);
-                       entry->addr = ~0ULL;
+                       entry->addr = 0;
                }
 
                if (level < adev->vm_manager.num_level) {