drm/amdgpu: Verify root PD is mapped into kernel address space.
Subsystems (2)
PATCH v3 1/1 drm/amdgpu: Verify root PD is mapped into kernel address space.
Problem: When PD/PT update made by CPU root PD was not yet mapped causing page fault.
Fix: Verify root PD is mapped into CPU address space.
v2:
Make sure that we add the root PD to the relocated list since then it's get mapped into CPU address space bt default in amdgpu_vm_update_directories.
v3:
Drop change to not move kernel type BOs to evicted list.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +3 -0
@@ -156,6 +156,9 @@ static void amdgpu_vm_bo_base_init(struct amdgpu_vm_bo_base *base,return ;list_add_tail (&base->bo_list, &bo->va); +if (bo->tbo.type == ttm_bo_type_kernel) +list_move (&base->vm_status, &vm->relocated); +if (bo->tbo.resv != vm->root.base.bo->tbo.resv)return ;
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): 1530907956-9150-1-git-send-email-andrey.grodzovsky-5C7GfCeVMHo@public.gmane.org
Am 06.07.2018 um 22:12 schrieb Andrey Grodzovsky:
Quoted 10 lines
Problem: When PD/PT update made by CPU root PD was not yet mapped causing page fault.
Fix: Verify root PD is mapped into CPU address space.
v2:
Make sure that we add the root PD to the relocated list since then it's get mapped into CPU address space bt default inamdgpu_vm_update_directories.
Quoted 7 lines
v3:
Drop change to not move kernel type BOs to evicted list.Signed-off-by Andrey Grodzovsky <[email protected]>Signed-off-by Andrey Grodzovsky <[email protected]>
Double Signed-off-by line, but apart of that Reviewed-by: Christian König <[email protected]>.
Regards,
Christian.
Quoted 9 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 3 +++ 1 file changed, 3 insertions(+)drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +0
-0
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c static void amdgpu_vm_bo_base_init(struct amdgpu_vm_bo_base *base, · line 164
Quoted 9 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +3
-0@@ -156,6 +156,9 @@ static void amdgpu_vm_bo_base_init(struct amdgpu_vm_bo_base *base,return ;list_add_tail (&base->bo_list, &bo->va); +if (bo->tbo.type == ttm_bo_type_kernel) +list_move (&base->vm_status, &vm->relocated); +if (bo->tbo.resv != vm->root.base.bo->tbo.resv)return ;
_______________________________________________
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): ce7662b9-36ae-4183-1e26-38c4c980915c-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Zhang, Jerry (Junwei)
Reviewed-by Junwei ZhangQuoted 14 lines · Christian König
Am 06.07.2018 um 22:12 schrieb Andrey Grodzovsky:
Quoted 13 lines
Problem: When PD/PT update made by CPU root PD was not yet mapped causing page fault.
Fix: Verify root PD is mapped into CPU address space.
v2:
Make sure that we add the root PD to the relocated list since then it's get mapped into CPU address space bt default inamdgpu_vm_update_directories.v3:
Drop change to not move kernel type BOs to evicted list.
Quoted 6 lines
Quoted 4 lines
Signed-off-by Andrey Grodzovsky <[email protected]>Signed-off-by Andrey Grodzovsky <[email protected]>Double Signed-off-by line, but apart of that Reviewed-by: Christian König <[email protected]>.
Same comment as Christian's
Now that's really much more cleaner:)
Well, we may also remove the redundant code in amdgpu_vm_alloc_levels() meanwhile. {{{
amdgpu_vm_bo_base_init(&entry->base, vm, pt);
- list_move(&entry->base.vm_status, &vm->relocated);
}}}
Apart from that, it's
Jerry
Quoted 17 lines
Regards,
Christian.Quoted 13 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 3 +++ 1 file changed, 3 insertions(+)drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +2
-0@@ -156,6 +156,9 @@ static void amdgpu_vm_bo_base_init(struct amdgpu_vm_bo_base *base,return ;list_add_tail (&base->bo_list, &bo->va); +if (bo->tbo.type == ttm_bo_type_kernel) +list_move (&base->vm_status, &vm->relocated);
Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c static void amdgpu_vm_bo_base_init(struct amdgpu_vm_bo_base *base, · line 163
Quoted 3 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +1
-0+if (bo->tbo.resv != vm->root.base.bo->tbo.resv)return ;_______________________________________________
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