summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/nvgpu/gk20a/cde_gk20a.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/cde_gk20a.h b/drivers/gpu/nvgpu/gk20a/cde_gk20a.h
index 49296234..92757271 100644
--- a/drivers/gpu/nvgpu/gk20a/cde_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/cde_gk20a.h
@@ -26,6 +26,14 @@
26#define MAX_CDE_USER_PARAMS 32 26#define MAX_CDE_USER_PARAMS 32
27#define MAX_CDE_OBJ_IDS 4 27#define MAX_CDE_OBJ_IDS 4
28 28
29/*
30 * The size of the context ring buffer that is dedicated for handling cde
31 * jobs. Re-using a context (=channel) for a differnt cde job forces a cpu
32 * wait on the previous job to that channel, so increasing this value
33 * reduces the likelihood of stalls.
34 */
35#define NUM_CDE_CONTEXTS 4
36
29struct dma_buf; 37struct dma_buf;
30struct gk20a; 38struct gk20a;
31 39
@@ -241,7 +249,7 @@ struct gk20a_cde_app {
241 struct mutex mutex; 249 struct mutex mutex;
242 struct vm_gk20a *vm; 250 struct vm_gk20a *vm;
243 251
244 struct gk20a_cde_ctx cde_ctx[1]; 252 struct gk20a_cde_ctx cde_ctx[NUM_CDE_CONTEXTS];
245 int cde_ctx_ptr; 253 int cde_ctx_ptr;
246 254
247 u32 shader_parameter; 255 u32 shader_parameter;