diff options
author | Christian König <christian.koenig@amd.com> | 2017-03-13 05:13:39 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-03-29 23:54:01 -0400 |
commit | 80f95c579d800fa22e9e57ecb3d50b9e93bc1f82 (patch) | |
tree | 833a2a919c669f013318bf84397230f9553afe83 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | |
parent | dc54d3d1744d23ed0b345fd8bc1c493b74e8df44 (diff) |
drm/amdgpu: add a VM mapping replace operation v2
Add a new operation to replace mappings in a VM with a new one.
v2: Fix Jerry's comment, separate out clear operation.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h index 95fe47733b7f..ab0429d12992 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | |||
@@ -207,6 +207,10 @@ int amdgpu_vm_bo_map(struct amdgpu_device *adev, | |||
207 | struct amdgpu_bo_va *bo_va, | 207 | struct amdgpu_bo_va *bo_va, |
208 | uint64_t addr, uint64_t offset, | 208 | uint64_t addr, uint64_t offset, |
209 | uint64_t size, uint64_t flags); | 209 | uint64_t size, uint64_t flags); |
210 | int amdgpu_vm_bo_replace_map(struct amdgpu_device *adev, | ||
211 | struct amdgpu_bo_va *bo_va, | ||
212 | uint64_t addr, uint64_t offset, | ||
213 | uint64_t size, uint64_t flags); | ||
210 | int amdgpu_vm_bo_unmap(struct amdgpu_device *adev, | 214 | int amdgpu_vm_bo_unmap(struct amdgpu_device *adev, |
211 | struct amdgpu_bo_va *bo_va, | 215 | struct amdgpu_bo_va *bo_va, |
212 | uint64_t addr); | 216 | uint64_t addr); |