]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amdgpu: fix saddr handling in amdgpu_vm_bo_unmap
authorChristian König <christian.koenig@amd.com>
Fri, 5 Jun 2015 18:56:17 +0000 (20:56 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 9 Jun 2015 01:42:52 +0000 (21:42 -0400)
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c

index 33696ee55349cff09338d766e84ada7df837431c..407882b233c7952c99ed3128fbd9c7aa2adcab58 100644 (file)
@@ -1084,6 +1084,8 @@ int amdgpu_vm_bo_unmap(struct amdgpu_device *adev,
        struct amdgpu_bo_va_mapping *mapping;
        struct amdgpu_vm *vm = bo_va->vm;
 
+       saddr /= AMDGPU_GPU_PAGE_SIZE;
+
        list_for_each_entry(mapping, &bo_va->mappings, list) {
                if (mapping->it.start == saddr)
                        break;