Commit 9f7eb536 authored by Christian König's avatar Christian König Committed by Alex Deucher

drm/amdgpu: actually use the VM map parameters

Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarJammy Zhou <Jammy.Zhou@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 0be52de9
...@@ -583,8 +583,9 @@ int amdgpu_gem_va_ioctl(struct drm_device *dev, void *data, ...@@ -583,8 +583,9 @@ int amdgpu_gem_va_ioctl(struct drm_device *dev, void *data,
va_flags |= AMDGPU_PTE_WRITEABLE; va_flags |= AMDGPU_PTE_WRITEABLE;
if (args->in.flags & AMDGPU_VM_PAGE_EXECUTABLE) if (args->in.flags & AMDGPU_VM_PAGE_EXECUTABLE)
va_flags |= AMDGPU_PTE_EXECUTABLE; va_flags |= AMDGPU_PTE_EXECUTABLE;
r = amdgpu_vm_bo_map(adev, bo_va, args->in.va_address, 0, r = amdgpu_vm_bo_map(adev, bo_va, args->in.va_address,
amdgpu_bo_size(bo_va->bo), va_flags); args->in.offset_in_bo, args->in.map_size,
va_flags);
break; break;
case AMDGPU_VA_OP_UNMAP: case AMDGPU_VA_OP_UNMAP:
r = amdgpu_vm_bo_unmap(adev, bo_va, args->in.va_address); r = amdgpu_vm_bo_unmap(adev, bo_va, args->in.va_address);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment