summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2014-12-09 03:04:05 -0500
committerDan Willemsen <dwillemsen@nvidia.com>2015-04-04 18:06:45 -0400
commit5df3d09e16c9d2f413cea53d16bc8ca42ae42d6e (patch)
tree0ed55cf8bdf0d265742d396c160f8dd0f1ac9d85 /drivers/gpu/nvgpu/gk20a/mm_gk20a.h
parent4ccb162da7a2414c344aecc9cdf85bee9c284caf (diff)
gpu: nvgpu: gm20b: Enable CTA preemption
CTA preemption needs to be enabled by setting a value in context. Set it for gm20b. Bug 200063473 Bug 1517461 Change-Id: I080cd71b348d08f834fd23ebbe7443dba79224db Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/661299
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/mm_gk20a.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
index d3ee8670..04f9446b 100644
--- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
@@ -150,11 +150,15 @@ struct gr_ctx_desc {
150 u64 iova; 150 u64 iova;
151 size_t size; 151 size_t size;
152 u64 gpu_va; 152 u64 gpu_va;
153 int preempt_mode;
153#ifdef CONFIG_ARCH_TEGRA_18x_SOC 154#ifdef CONFIG_ARCH_TEGRA_18x_SOC
154 struct gr_ctx_desc_t18x t18x; 155 struct gr_ctx_desc_t18x t18x;
155#endif 156#endif
156}; 157};
157 158
159#define NVGPU_GR_PREEMPTION_MODE_WFI 0
160#define NVGPU_GR_PREEMPTION_MODE_CTA 2
161
158struct compbit_store_desc { 162struct compbit_store_desc {
159 struct page **pages; 163 struct page **pages;
160 struct sg_table *sgt; 164 struct sg_table *sgt;