drm/amdgpu: align frag_end to covered address space
Subsystems (2)
PATCH 1/1 drm/amdgpu: align frag_end to covered address space
align frag_end to the next pd when there are no
page table entries on the current pde.
Signed-off-by Alex Sierra <[email protected]>
Signed-off-by Christian König <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +2 -0
@@ -1502,6 +1502,8 @@ static int amdgpu_vm_update_ptes(struct amdgpu_vm_update_params *params, pt = cursor.entry->base.bo; shift = parent_shift; + frag_end =max (frag_end,ALIGN (frag_start +1 , +1ULL << shift)); }/* Looks good so far, calculate parameters for the update */
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Christian König
maintainerAm 05.10.20 um 16:40 schrieb Alex Sierra:
Quoted 2 lines
align
frag_endto the next pd when there are no
page table entries on the current pde.
Maybe add something like "This fixes invalidation of larger address space areas where some page tables are allocated and other aren't".
Quoted 3 lines
Signed-off-by Alex Sierra <[email protected]>Signed-off-by Christian König <[email protected]>
With that done the patch is Reviewed-by: Christian König <[email protected]>
Quoted 9 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 ++ 1 file changed, 2 insertions(+)drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +0
-0
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c static int amdgpu_vm_update_ptes(struct amdgpu_vm_update_params *params, · line 1509
Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +2
-0@@ -1502,6 +1502,8 @@ static int amdgpu_vm_update_ptes(struct amdgpu_vm_update_params *params, pt = cursor.entry->base.bo; shift = parent_shift; + frag_end =max (frag_end,ALIGN (frag_start +1 , +1ULL << shift)); }/* Looks good so far, calculate parameters for the update */
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx