summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2014-12-03 09:13:39 -0500
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:12:27 -0400
commit0d9bb7f82e99a014d56d2662a67fc8efa86d398a (patch)
treee0ff8d4663dfc32fbdf061a6b04db5ec05459c72 /drivers/gpu/nvgpu/gk20a/mm_gk20a.h
parent5477d0f4c226847fe030ad00425e00206118b0d6 (diff)
gpu: nvgpu: Per-chip context creation
Add HAL for context creation, and expose functions that T18x context creation needs. Bug 1517461 Bug 1521790 Bug 200063473 Change-Id: I63d1c52594e851570b677184a4585d402125a86d Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/660237
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/mm_gk20a.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
index 041c7edf..4dbde580 100644
--- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
@@ -141,11 +141,18 @@ struct gr_ctx_buffer_desc {
141 void *priv; 141 void *priv;
142}; 142};
143 143
144#ifdef CONFIG_ARCH_TEGRA_18x_SOC
145#include "gr_t18x.h"
146#endif
147
144struct gr_ctx_desc { 148struct gr_ctx_desc {
145 struct page **pages; 149 struct page **pages;
146 u64 iova; 150 u64 iova;
147 size_t size; 151 size_t size;
148 u64 gpu_va; 152 u64 gpu_va;
153#ifdef CONFIG_ARCH_TEGRA_18x_SOC
154 struct gr_ctx_desc_t18x t18x;
155#endif
149}; 156};
150 157
151struct compbit_store_desc { 158struct compbit_store_desc {