drm/radeon: Fix off-by-one errors in radeon_vm_bo_set_addr
authorFelix Kuehling <Felix.Kuehling@amd.com>
Mon, 23 Nov 2015 22:39:11 +0000 (17:39 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Mar 2016 23:07:21 +0000 (15:07 -0800)
commit7d124d8895ec1345b565f7872e0dbe33b51b1c0f
treeb96b1e2d7d7435a1e6e667a4f0cb5c64689f336b
parent381e33c23c0acc1eb64fb1fe3a245b72da9484ea
drm/radeon: Fix off-by-one errors in radeon_vm_bo_set_addr

commit 42ef344c0994cc453477afdc7a8eadc578ed0257 upstream.

eoffset is sometimes treated as the last address inside the address
range, and sometimes as the first address outside the range. This
was resulting in errors when a test filled up the entire address
space. Make it consistent to always be the last address within the
range. Also fixed related errors when checking the VA limit and in
radeon_vm_fence_pts.

Signed-off-by: Felix.Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/radeon/radeon_vm.c