summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/include
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/linux/vm.h4
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/vm.h16
2 files changed, 12 insertions, 8 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/linux/vm.h b/drivers/gpu/nvgpu/include/nvgpu/linux/vm.h
index 7aacf496..3d9f9ea6 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/linux/vm.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/linux/vm.h
@@ -98,10 +98,6 @@ int nvgpu_vm_map_buffer(struct vm_gk20a *vm,
98 u64 mapping_size, 98 u64 mapping_size,
99 struct vm_gk20a_mapping_batch *batch); 99 struct vm_gk20a_mapping_batch *batch);
100 100
101/* Note: batch may be NULL if unmap op is not part of a batch */
102int nvgpu_vm_unmap_buffer(struct vm_gk20a *vm, u64 offset,
103 struct vm_gk20a_mapping_batch *batch);
104
105/* find buffer corresponding to va */ 101/* find buffer corresponding to va */
106int nvgpu_vm_find_buf(struct vm_gk20a *vm, u64 gpu_va, 102int nvgpu_vm_find_buf(struct vm_gk20a *vm, u64 gpu_va,
107 struct dma_buf **dmabuf, 103 struct dma_buf **dmabuf,
diff --git a/drivers/gpu/nvgpu/include/nvgpu/vm.h b/drivers/gpu/nvgpu/include/nvgpu/vm.h
index e529512b..84c7e0c7 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/vm.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/vm.h
@@ -207,11 +207,19 @@ void nvgpu_vm_put_buffers(struct vm_gk20a *vm,
207 struct nvgpu_mapped_buf **mapped_buffers, 207 struct nvgpu_mapped_buf **mapped_buffers,
208 int num_buffers); 208 int num_buffers);
209 209
210void nvgpu_vm_unmap_locked(struct nvgpu_mapped_buf *mapped_buffer, 210void nvgpu_vm_unmap(struct vm_gk20a *vm, u64 offset,
211 struct vm_gk20a_mapping_batch *batch); 211 struct vm_gk20a_mapping_batch *batch);
212void nvgpu_vm_unmap_locked_ref(struct nvgpu_ref *ref);
213 212
214void nvgpu_vm_unmap(struct vm_gk20a *vm, u64 offset); 213/*
214 * Implemented by each OS. Called from within the core VM code to handle OS
215 * specific components of an nvgpu_mapped_buf.
216 */
217void nvgpu_vm_unmap_system(struct nvgpu_mapped_buf *mapped_buffer);
218
219/*
220 * Don't use this outside of the core VM code!
221 */
222void __nvgpu_vm_unmap_ref(struct nvgpu_ref *ref);
215 223
216/* 224/*
217 * These all require the VM update lock to be held. 225 * These all require the VM update lock to be held.