summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
diff options
context:
space:
mode:
authorKirill Artamonov <kartamonov@nvidia.com>2014-02-26 15:58:43 -0500
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:09:59 -0400
commitd364553f7c94b4caa649f5e83f709c1c31bc45bb (patch)
tree97b9349f3bab734ef7e1533156cbcfa4ee93feec /drivers/gpu/nvgpu/gk20a/mm_gk20a.h
parent5dc7fd024305f736bd920bdc12d116d1228ad2db (diff)
gpu: nvgpu: implement mapping for sparse allocation
Implement support for partial buffer mappings. Whitelist gr_pri_bes_crop_hww_esr accessed by fec during sparse texture initialization. bug 1456562 bug 1369014 bug 1361532 Change-Id: Ib0d1ec6438257ac14b40c8466b37856b67e7e34d Signed-off-by: Kirill Artamonov <kartamonov@nvidia.com> Reviewed-on: http://git-master/r/375012 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/mm_gk20a.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
index c759718e..7f86710b 100644
--- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
@@ -414,7 +414,9 @@ u64 gk20a_vm_map(struct vm_gk20a *vm,
414 int kind, 414 int kind,
415 struct sg_table **sgt, 415 struct sg_table **sgt,
416 bool user_mapped, 416 bool user_mapped,
417 int rw_flag); 417 int rw_flag,
418 u64 buffer_offset,
419 u64 mapping_size);
418 420
419/* unmap handle from kernel */ 421/* unmap handle from kernel */
420void gk20a_vm_unmap(struct vm_gk20a *vm, u64 offset); 422void gk20a_vm_unmap(struct vm_gk20a *vm, u64 offset);
@@ -455,7 +457,9 @@ int gk20a_vm_map_buffer(struct gk20a_as_share *as_share,
455 int dmabuf_fd, 457 int dmabuf_fd,
456 u64 *offset_align, 458 u64 *offset_align,
457 u32 flags, /*NVHOST_AS_MAP_BUFFER_FLAGS_*/ 459 u32 flags, /*NVHOST_AS_MAP_BUFFER_FLAGS_*/
458 int kind); 460 int kind,
461 u64 buffer_offset,
462 u64 mapping_size);
459int gk20a_vm_unmap_buffer(struct gk20a_as_share *, u64 offset); 463int gk20a_vm_unmap_buffer(struct gk20a_as_share *, u64 offset);
460 464
461int gk20a_dmabuf_alloc_drvdata(struct dma_buf *dmabuf, struct device *dev); 465int gk20a_dmabuf_alloc_drvdata(struct dma_buf *dmabuf, struct device *dev);