summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/platform_gk20a.h
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2015-10-23 06:11:21 -0400
committerTerje Bergstrom <tbergstrom@nvidia.com>2015-11-23 11:43:49 -0500
commit7f79d647d6f8beffc5d98d3b703f9408b5a05d14 (patch)
tree87c91574f99c562780ba793ef0e5b68088604a42 /drivers/gpu/nvgpu/gk20a/platform_gk20a.h
parentb8b6df791b407a6b9cf568ecd34744c347968246 (diff)
gpu: nvgpu: set aggressive_sync_destroy at runtime
We currently set "aggressive_destroy" flag to destroy sync object statically and for each sync object Move this flag to per-platform structure so that it can be set per-platform for all the sync objects Also, set the default value of this flag as "false" and set it to "true" once we have more than 64 channels in use Bug 200141116 Change-Id: I1bc271df4f468a4087a06a27c7289ee0ec3ef29c Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/822041 (cherry picked from commit 98741e7e88066648f4f14490c76b61dbff745103) Reviewed-on: http://git-master/r/835800 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/platform_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/platform_gk20a.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h
index b7a28ea5..84b3fcaf 100644
--- a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h
@@ -47,6 +47,9 @@ struct gk20a_platform {
47 /* Should be populated at probe. */ 47 /* Should be populated at probe. */
48 bool has_syncpoints; 48 bool has_syncpoints;
49 49
50 /* flag to set sync destroy aggressiveness */
51 bool aggressive_sync_destroy;
52
50 /* Should be populated by probe. */ 53 /* Should be populated by probe. */
51 struct dentry *debugfs; 54 struct dentry *debugfs;
52 struct dentry *debugfs_alias; 55 struct dentry *debugfs_alias;