]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.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)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 6 Apr 2016 09:23:24 +0000 (10:23 +0100)
commit951723a8e9626d39e82fa3d056b5cf4284a8cde1
tree870933e7f7e8f37f0ea23f1c00564b1c48abe0bb
parent054d62505365f9438cced26dd5fc1bde2f40d729
drm/radeon: Fix off-by-one errors in radeon_vm_bo_set_addr

BugLink: http://bugs.launchpad.net/bugs/1553179
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>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/gpu/drm/radeon/radeon_vm.c