summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.h
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-05-01 16:37:03 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-05-11 14:05:31 -0400
commitbd68f98ba76f43954e9858252a30e6c3b054c146 (patch)
treefaa4e213603b9fe91d911cf5e0f06977c4232db4 /drivers/gpu/nvgpu/gk20a/gk20a.h
parentc3fa78b1d9cba28547ca59154207d434931ae746 (diff)
gpu: nvgpu: Move secure_alloc to struct gk20a
Move the function pointer for VPR page allocation to struct gk20a and use it from there. At the same time remove secure_page_alloc pointer and add a direct call to it in probe. Move platform_tegra.h as tegra/linux/platform_gk20a_tegra.h, as it's only declaring functions defined in platform_gk20a_tegra.c to other files in the same directory. JIRA NVGPU-16 Change-Id: I19ac9ee0b2f6734203ae32a1f51d67fd51aced9f Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1473706 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index 96ca69a3..03f61c33 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -669,6 +669,14 @@ struct gpu_ops {
669 void (*init_inst_block)(struct nvgpu_mem *inst_block, 669 void (*init_inst_block)(struct nvgpu_mem *inst_block,
670 struct vm_gk20a *vm, u32 big_page_size); 670 struct vm_gk20a *vm, u32 big_page_size);
671 bool (*mmu_fault_pending)(struct gk20a *g); 671 bool (*mmu_fault_pending)(struct gk20a *g);
672 /* This function is called to allocate secure memory (memory
673 * that the CPU cannot see). The function should fill the
674 * context buffer descriptor (especially fields destroy, sgt,
675 * size).
676 */
677 int (*secure_alloc)(struct device *dev,
678 struct gr_ctx_buffer_desc *desc,
679 size_t size);
672 } mm; 680 } mm;
673 struct { 681 struct {
674 u32 (*enter)(struct gk20a *g, struct nvgpu_mem *mem, 682 u32 (*enter)(struct gk20a *g, struct nvgpu_mem *mem,