[PATCH 13/18] drm/amdgpu: fix update sub levels

Chunming Zhou David1.Zhou at amd.com
Fri Mar 24 03:16:52 UTC 2017


sub level pdes always are written to incorrect place.

Change-Id: Ic40bbf2affa9cdd0490f8d7dde883cab36bd60fc
Signed-off-by: Chunming Zhou <David1.Zhou at amd.com>
---
 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



More information about the amd-gfx mailing list