]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amdgpu: actually use the VM map parameters
authorChristian König <christian.koenig@amd.com>
Mon, 18 May 2015 14:05:57 +0000 (16:05 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 4 Jun 2015 01:03:44 +0000 (21:03 -0400)
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c

index 8dd843da799faf0d397683d8c51efc6a4077c1b5..c90b74da0027b973007bdd7115d24b66782b3ce0 100644 (file)
@@ -583,8 +583,9 @@ int amdgpu_gem_va_ioctl(struct drm_device *dev, void *data,
                        va_flags |= AMDGPU_PTE_WRITEABLE;
                if (args->in.flags & AMDGPU_VM_PAGE_EXECUTABLE)
                        va_flags |= AMDGPU_PTE_EXECUTABLE;
-               r = amdgpu_vm_bo_map(adev, bo_va, args->in.va_address, 0,
-                                    amdgpu_bo_size(bo_va->bo), va_flags);
+               r = amdgpu_vm_bo_map(adev, bo_va, args->in.va_address,
+                                    args->in.offset_in_bo, args->in.map_size,
+                                    va_flags);
                break;
        case AMDGPU_VA_OP_UNMAP:
                r = amdgpu_vm_bo_unmap(adev, bo_va, args->in.va_address);