drm/amdgpu: Optimize end of non-contig VA ranges
authorFelix Kuehling <Felix.Kuehling@amd.com>
Wed, 1 Mar 2023 02:28:59 +0000 (21:28 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 7 Mar 2023 19:22:41 +0000 (14:22 -0500)
commit13e3a038abe033b38db6313de7a9f55ac83ae422
tree6bc848782379fc5e3e30572d50e3a17b4ab37d83
parentbd1b5799545ed838651c618c9fbf8fb8b5feeceb
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 <Felix.Kuehling@amd.com>
Reviewed-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-and-tested-by: Rajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c