diff options
author | Seshendra Gadagottu <sgadagottu@nvidia.com> | 2014-12-03 20:57:35 -0500 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-04-04 21:04:38 -0400 |
commit | f4883ab97af69610c0507c245f69eef00d203a28 (patch) | |
tree | c8555fbd7f474db20c44719eeab679ee7f5b1751 /drivers/gpu/nvgpu/gk20a/mm_gk20a.h | |
parent | 2dda8077ec7d88ac689b57448031a3bac269fdfa (diff) |
gpu:nvgpu: add bar2 aperture support
Bug 1587825
Change-Id: I884c6b268aabb04b4990713395ebedf92410e02a
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/659239
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
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.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h index 79bc50af..8470a7ac 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h | |||
@@ -347,6 +347,12 @@ struct mm_gk20a { | |||
347 | u32 aperture_size; | 347 | u32 aperture_size; |
348 | struct vm_gk20a vm; | 348 | struct vm_gk20a vm; |
349 | struct inst_desc inst_block; | 349 | struct inst_desc inst_block; |
350 | } bar2; | ||
351 | |||
352 | struct { | ||
353 | u32 aperture_size; | ||
354 | struct vm_gk20a vm; | ||
355 | struct inst_desc inst_block; | ||
350 | } pmu; | 356 | } pmu; |
351 | 357 | ||
352 | struct mutex l2_op_lock; | 358 | struct mutex l2_op_lock; |
@@ -534,6 +540,15 @@ int gk20a_vm_map_buffer(struct gk20a_as_share *as_share, | |||
534 | int kind, | 540 | int kind, |
535 | u64 buffer_offset, | 541 | u64 buffer_offset, |
536 | u64 mapping_size); | 542 | u64 mapping_size); |
543 | |||
544 | int gk20a_init_vm(struct mm_gk20a *mm, | ||
545 | struct vm_gk20a *vm, | ||
546 | u32 big_page_size, | ||
547 | u64 low_hole, | ||
548 | u64 aperture_size, | ||
549 | bool big_pages, | ||
550 | char *name); | ||
551 | void gk20a_deinit_vm(struct vm_gk20a *vm); | ||
537 | int gk20a_vm_unmap_buffer(struct gk20a_as_share *, u64 offset); | 552 | int gk20a_vm_unmap_buffer(struct gk20a_as_share *, u64 offset); |
538 | void gk20a_get_comptags(struct device *dev, struct dma_buf *dmabuf, | 553 | void gk20a_get_comptags(struct device *dev, struct dma_buf *dmabuf, |
539 | struct gk20a_comptags *comptags); | 554 | struct gk20a_comptags *comptags); |