From 7f79d647d6f8beffc5d98d3b703f9408b5a05d14 Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Fri, 23 Oct 2015 15:41:21 +0530 Subject: 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 Reviewed-on: http://git-master/r/822041 (cherry picked from commit 98741e7e88066648f4f14490c76b61dbff745103) Reviewed-on: http://git-master/r/835800 Reviewed-by: Terje Bergstrom Tested-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/platform_gk20a.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a/platform_gk20a.h') 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 { /* Should be populated at probe. */ bool has_syncpoints; + /* flag to set sync destroy aggressiveness */ + bool aggressive_sync_destroy; + /* Should be populated by probe. */ struct dentry *debugfs; struct dentry *debugfs_alias; -- cgit v1.2.2