drm/amdgpu: fix new PD update code for Vega10 v2
Subsystems (2)
PATCH 1/1 drm/amdgpu: fix new PD update code for Vega10 v2
From: Christian König <[email protected]>
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.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +2 -2
@@ -308,7 +308,7 @@ static int amdgpu_vm_alloc_levels(struct amdgpu_device *adev,/* 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;
@@ -316,7 +316,7 @@ static int amdgpu_vm_alloc_levels(struct amdgpu_device *adev,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) {
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1504180706-3276-1-git-send-email-deathsimple-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org
Thanks
Roger(Hongbo.He)
-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Christian K?nig
Sent: Thursday, August 31, 2017 7:58 PM
To: [email protected]
Subject: [PATCH] drm/amdgpu: fix new PD update code for Vega10 v2
From: Christian König <[email protected]>
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.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +2 -2
@@ -308,7 +308,7 @@ static int amdgpu_vm_alloc_levels(struct amdgpu_device *adev,/* 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;
@@ -316,7 +316,7 @@ static int amdgpu_vm_alloc_levels(struct amdgpu_device *adev,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) {
--
2.7.4
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx