diff options
author | Arto Merilainen <amerilainen@nvidia.com> | 2014-07-21 03:19:27 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:10:32 -0400 |
commit | 4cb6f6b357963b2eab6a0d02974a6f64c874bd89 (patch) | |
tree | bf188670cdb38bf3ca849ca931568125e4681978 /drivers/gpu/nvgpu/gk20a/mm_gk20a.h | |
parent | 9b00f352423d4bd90d10cf598e6ce8a750cdd869 (diff) |
gpu: nvgpu: Add helpers for backing store access
This patch adds mm helpers to access compression backing store
from in-kernel shader.
Bug 1409151
Change-Id: Icb4f6dc0b5a35fdb97bc4221ab3657866f775fae
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/440263
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Lauri Peltonen <lpeltonen@nvidia.com>
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h index b0f3536e..30f9e50b 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h | |||
@@ -198,6 +198,11 @@ enum gmmu_pgsz_gk20a { | |||
198 | gmmu_nr_page_sizes = 2 | 198 | gmmu_nr_page_sizes = 2 |
199 | }; | 199 | }; |
200 | 200 | ||
201 | struct gk20a_comptags { | ||
202 | u32 offset; | ||
203 | u32 lines; | ||
204 | }; | ||
205 | |||
201 | 206 | ||
202 | struct page_directory_gk20a { | 207 | struct page_directory_gk20a { |
203 | /* backing for */ | 208 | /* backing for */ |
@@ -473,6 +478,9 @@ int gk20a_vm_map_buffer(struct gk20a_as_share *as_share, | |||
473 | u64 buffer_offset, | 478 | u64 buffer_offset, |
474 | u64 mapping_size); | 479 | u64 mapping_size); |
475 | int gk20a_vm_unmap_buffer(struct gk20a_as_share *, u64 offset); | 480 | int gk20a_vm_unmap_buffer(struct gk20a_as_share *, u64 offset); |
481 | void gk20a_get_comptags(struct device *dev, struct dma_buf *dmabuf, | ||
482 | struct gk20a_comptags *comptags); | ||
483 | dma_addr_t gk20a_mm_gpuva_to_iova(struct vm_gk20a *vm, u64 gpu_vaddr); | ||
476 | 484 | ||
477 | int gk20a_dmabuf_alloc_drvdata(struct dma_buf *dmabuf, struct device *dev); | 485 | int gk20a_dmabuf_alloc_drvdata(struct dma_buf *dmabuf, struct device *dev); |
478 | 486 | ||