]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 21 Dec 2015 21:39:14 +0000 (16:39 -0500)
commit42ef344c0994cc453477afdc7a8eadc578ed0257
treef32d1fd9275a041064a45d89175b1f43771596de
parent092c96a8ab9d1bd60ada2ed385cc364ce084180e
drm/radeon: Fix off-by-one errors in radeon_vm_bo_set_addr

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>
Cc: stable@vger.kernel.org
drivers/gpu/drm/radeon/radeon_vm.c