diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-05-01 16:37:03 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-05-11 14:05:31 -0400 |
commit | bd68f98ba76f43954e9858252a30e6c3b054c146 (patch) | |
tree | faa4e213603b9fe91d911cf5e0f06977c4232db4 /drivers/gpu/nvgpu/gk20a/platform_gk20a.h | |
parent | c3fa78b1d9cba28547ca59154207d434931ae746 (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/platform_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/platform_gk20a.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h index 8c93249a..44277abf 100644 --- a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h | |||
@@ -148,21 +148,7 @@ struct gk20a_platform { | |||
148 | /* Powerdown platform dependencies */ | 148 | /* Powerdown platform dependencies */ |
149 | void (*idle)(struct device *dev); | 149 | void (*idle)(struct device *dev); |
150 | 150 | ||
151 | /* This function is called to allocate secure memory (memory that the | ||
152 | * CPU cannot see). The function should fill the context buffer | ||
153 | * descriptor (especially fields destroy, sgt, size). | ||
154 | */ | ||
155 | int (*secure_alloc)(struct device *dev, | ||
156 | struct gr_ctx_buffer_desc *desc, | ||
157 | size_t size); | ||
158 | |||
159 | /* Function to allocate a secure buffer of PAGE_SIZE at probe time. | ||
160 | * This is also helpful to trigger secure memory resizing | ||
161 | * while GPU is off | ||
162 | */ | ||
163 | int (*secure_page_alloc)(struct device *dev); | ||
164 | struct secure_page_buffer secure_buffer; | 151 | struct secure_page_buffer secure_buffer; |
165 | bool secure_alloc_ready; | ||
166 | 152 | ||
167 | /* Device is going to be suspended */ | 153 | /* Device is going to be suspended */ |
168 | int (*suspend)(struct device *); | 154 | int (*suspend)(struct device *); |