drm/amdgpu: Optimize end of non-contig VA ranges
Subsystems (2)
PATCH 1/1 drm/amdgpu: Optimize end of non-contig VA ranges
Treat the last page in a non-contiguous range as part of the following contiguous range.
Signed-off-by Felix Kuehling <[email protected]>
Reviewed-by Philip Yang <[email protected]>
Reviewed-and-tested-by Rajneesh Bhardwaj <[email protected]>
Reviewed-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
@@ -866,6 +866,8 @@ int amdgpu_vm_update_range(struct amdgpu_device *adev, struct amdgpu_vm *vm, pages_addr[idx - 1] + PAGE_SIZE))break ; } +if (!contiguous) + count--; num_entries = count *AMDGPU_GPU_PAGES_IN_CPU_PAGE ; }
Signature · 1 line
2.34.1