summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/platform_gk20a.h
diff options
context:
space:
mode:
authorKonsta Holtta <kholtta@nvidia.com>2014-10-23 07:17:52 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:11:55 -0400
commit8c5b39353e7353b358c0da9d0de8691922e1179d (patch)
tree636e8bec07230737d5c5df525259fbde5af4e4bb /drivers/gpu/nvgpu/gk20a/platform_gk20a.h
parent2d5ff668cbc6a932df2c9cf79627d1d340e5c2c0 (diff)
gpu: nvgpu: cde: move GK20A_CDE to platform data
CONFIG_GK20A_CDE has not even been used for enabling CDE, just for initializing it at boot time, and it was disabled; initialization has been done late when the engine is first used. Remove the config setting and add information about CDE support in gk20a platform data, forcing the initialization at boot time. Boot time init removes rare race conditions when CDE would be initialized by first user. Bug 200046882 Change-Id: I85d5fb73dc27acbbe203138d25f6e342de030d93 Signed-off-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-on: http://git-master/r/562855 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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h
index aada1537..d5a1cc91 100644
--- a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h
@@ -160,6 +160,8 @@ struct gk20a_platform {
160 u64 virt_handle; 160 u64 virt_handle;
161 struct task_struct *intr_handler; 161 struct task_struct *intr_handler;
162#endif 162#endif
163
164 bool has_cde;
163}; 165};
164 166
165static inline struct gk20a_platform *gk20a_get_platform( 167static inline struct gk20a_platform *gk20a_get_platform(