summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLauri Peltonen <lpeltonen@nvidia.com>2014-08-21 21:08:31 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:11:22 -0400
commit9981cf44243e644e7ba3f01b66e08bea5b24979b (patch)
tree9f6c891090b61f8a6d769af54cd6e7e6184e6742 /drivers
parent17aeb7e87ecfc103d90c93902414e59509a51497 (diff)
gpu: nvgpu: cde: Increase the number of cde contexts
Allocate four channels for cde jobs. Bug 1546619 Change-Id: Id2637f71426f42c2d553d38cd74873b9f0628b55 Signed-off-by: Lauri Peltonen <lpeltonen@nvidia.com> Reviewed-on: http://git-master/r/499671 Reviewed-by: Jussi Rasanen <jrasanen@nvidia.com> Tested-by: Jussi Rasanen <jrasanen@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Arto Merilainen <amerilainen@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers')
-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;