sub level pdes always are written to incorrect place.

Change-Id: Ic40bbf2affa9cdd0490f8d7dde883cab36bd60fc
Signed-off-by: Chunming Zhou <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 
b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
index 71f90e5..5c51815 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
@@ -661,7 +661,7 @@ static int amdgpu_vm_update_level(struct amdgpu_device 
*adev,
        /* assume the worst case */
        ndw += parent->last_entry_used * 6;
 
-       pd_addr = amdgpu_bo_gpu_offset(vm->root.bo);
+       pd_addr = amdgpu_bo_gpu_offset(parent->bo);
 
        shadow = parent->bo->shadow;
        if (shadow) {
-- 
1.9.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to