summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a
diff options
context:
space:
mode:
authorAingara Paramakuru <aparamakuru@nvidia.com>2015-09-29 12:56:05 -0400
committerTerje Bergstrom <tbergstrom@nvidia.com>2015-10-22 10:39:56 -0400
commitee18a3ae2699513ab3762757432355b5624ce4a0 (patch)
tree010f362b70e58b095f19e1d829f35a81fe9ba7de /drivers/gpu/nvgpu/gk20a
parent9165427ef7bb0d303a37214a3f4e68efebaf1418 (diff)
gpu: nvgpu: vgpu: re-factor gr ctx management
Move the gr ctx management to the GPU HAL. Also, add support for a new interface to allocate gr ctxsw buffers. Bug 1677153 Change-Id: I5a7980acf4de0de7dbd94b7dd20f91a6196dc989 Signed-off-by: Aingara Paramakuru <aparamakuru@nvidia.com> Reviewed-on: http://git-master/r/806961 Signed-off-by: Seema Khowala <seemaj@nvidia.com> Reviewed-on: http://git-master/r/817009 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r--drivers/gpu/nvgpu/gk20a/mm_gk20a.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
index 8f328696..e44ee631 100644
--- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
@@ -91,6 +91,9 @@ struct gr_ctx_desc {
91#ifdef CONFIG_ARCH_TEGRA_18x_SOC 91#ifdef CONFIG_ARCH_TEGRA_18x_SOC
92 struct gr_ctx_desc_t18x t18x; 92 struct gr_ctx_desc_t18x t18x;
93#endif 93#endif
94#ifdef CONFIG_TEGRA_GR_VIRTUALIZATION
95 u64 virt_ctx;
96#endif
94}; 97};
95 98
96#define NVGPU_GR_PREEMPTION_MODE_WFI 0 99#define NVGPU_GR_PREEMPTION_MODE_WFI 0