From 0d9bb7f82e99a014d56d2662a67fc8efa86d398a Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Wed, 3 Dec 2014 16:13:39 +0200 Subject: 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 Reviewed-on: http://git-master/r/660237 --- drivers/gpu/nvgpu/gk20a/mm_gk20a.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.h') 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 { void *priv; }; +#ifdef CONFIG_ARCH_TEGRA_18x_SOC +#include "gr_t18x.h" +#endif + struct gr_ctx_desc { struct page **pages; u64 iova; size_t size; u64 gpu_va; +#ifdef CONFIG_ARCH_TEGRA_18x_SOC + struct gr_ctx_desc_t18x t18x; +#endif }; struct compbit_store_desc { -- cgit v1.2.2