From 8c5b39353e7353b358c0da9d0de8691922e1179d Mon Sep 17 00:00:00 2001 From: Konsta Holtta Date: Thu, 23 Oct 2014 14:17:52 +0300 Subject: 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 Reviewed-on: http://git-master/r/562855 Reviewed-by: Terje Bergstrom Tested-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/platform_gk20a.h | 2 ++ 1 file changed, 2 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 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 { u64 virt_handle; struct task_struct *intr_handler; #endif + + bool has_cde; }; static inline struct gk20a_platform *gk20a_get_platform( -- cgit v1.2.2