diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.h | 4 |
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 | |||
158 | struct compbit_store_desc { | 162 | struct compbit_store_desc { |
159 | struct page **pages; | 163 | struct page **pages; |
160 | struct sg_table *sgt; | 164 | struct sg_table *sgt; |