diff options
| author | Christian König <christian.koenig@amd.com> | 2017-08-01 04:51:43 -0400 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2017-08-17 15:46:07 -0400 |
| commit | ec681545afe5a448b43a2fe5c206ee48e19dabb3 (patch) | |
| tree | f69985a00503c64e886b83db2dbe2a9bc1994b6e /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
| parent | 4ab4016aaf82153d144fa678cd6b4b5b6f25ed70 (diff) | |
drm/amdgpu: separate bo_va structure
Split that into vm_bo_base and bo_va to allow other uses as well.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c index 5ae9941bad7c..7171968f261e 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |||
| @@ -621,7 +621,7 @@ int amdgpu_gem_va_ioctl(struct drm_device *dev, void *data, | |||
| 621 | 621 | ||
| 622 | switch (args->operation) { | 622 | switch (args->operation) { |
| 623 | case AMDGPU_VA_OP_MAP: | 623 | case AMDGPU_VA_OP_MAP: |
| 624 | r = amdgpu_vm_alloc_pts(adev, bo_va->vm, args->va_address, | 624 | r = amdgpu_vm_alloc_pts(adev, bo_va->base.vm, args->va_address, |
| 625 | args->map_size); | 625 | args->map_size); |
| 626 | if (r) | 626 | if (r) |
| 627 | goto error_backoff; | 627 | goto error_backoff; |
| @@ -641,7 +641,7 @@ int amdgpu_gem_va_ioctl(struct drm_device *dev, void *data, | |||
| 641 | args->map_size); | 641 | args->map_size); |
| 642 | break; | 642 | break; |
| 643 | case AMDGPU_VA_OP_REPLACE: | 643 | case AMDGPU_VA_OP_REPLACE: |
| 644 | r = amdgpu_vm_alloc_pts(adev, bo_va->vm, args->va_address, | 644 | r = amdgpu_vm_alloc_pts(adev, bo_va->base.vm, args->va_address, |
| 645 | args->map_size); | 645 | args->map_size); |
| 646 | if (r) | 646 | if (r) |
| 647 | goto error_backoff; | 647 | goto error_backoff; |
