diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2017-07-03 07:46:48 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-07-07 10:05:39 -0400 |
commit | 40c19c67d043e750cec4a8c33695e8cbe01bd639 (patch) | |
tree | 4bb193ed4a162964aa8fb5ff618854b5f8ffbbff /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | d479a781c68ab20ff27ae6d1a6eb6e15eb51fb88 (diff) |
gpu: nvgpu: support platform specific physical address translation
On some GPUs certain physical address bits have special meaning. This
patch adds support for setting those bits based on the GMMU attributes
struct.
Jira GPUT19X-10
Bug 200279508
Change-Id: I32b8a028be7fd62af06a60c393a8c9251de0ef3c
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: https://git-master/r/1512600
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index e30a89fe..f365ac94 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -713,6 +713,8 @@ struct gpu_ops { | |||
713 | (*get_mmu_levels)(struct gk20a *g, u32 big_page_size); | 713 | (*get_mmu_levels)(struct gk20a *g, u32 big_page_size); |
714 | void (*init_pdb)(struct gk20a *g, struct nvgpu_mem *inst_block, | 714 | void (*init_pdb)(struct gk20a *g, struct nvgpu_mem *inst_block, |
715 | struct vm_gk20a *vm); | 715 | struct vm_gk20a *vm); |
716 | u64 (*gpu_phys_addr)(struct gk20a *g, | ||
717 | struct nvgpu_gmmu_attrs *attrs, u64 phys); | ||
716 | u64 (*get_iova_addr)(struct gk20a *g, struct scatterlist *sgl, | 718 | u64 (*get_iova_addr)(struct gk20a *g, struct scatterlist *sgl, |
717 | u32 flags); | 719 | u32 flags); |
718 | size_t (*get_vidmem_size)(struct gk20a *g); | 720 | size_t (*get_vidmem_size)(struct gk20a *g); |