From a918003694984b6fca9e6b6c07fd7cdf3503055e Mon Sep 17 00:00:00 2001 From: Srikar Srimath Tirumala Date: Mon, 5 Dec 2016 18:28:51 -0800 Subject: gpu: nvgpu: fix gpcclk for K4.4 Move the sw initialization of the gpcclk from gpu rail ungate path to the nvgpu probe path. This allows gpcclk to register itself successfully with CCF and makes it discoverable for other clients early on during boot. Bug 200233943 Bug 200259437 Change-Id: I88d94542092f92e68dc63c40444a70991d1f6129 Signed-off-by: Srikar Srimath Tirumala Reviewed-on: http://git-master/r/1265549 Reviewed-by: Tejal Kudav --- drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c') diff --git a/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c b/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c index 1b4d2c07..978ad5aa 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c @@ -18,12 +18,17 @@ * along with this program. If not, see . */ +#include #include #include #include #include #include +#include #include +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0)) +#include +#endif #include "gk20a.h" #include "gr_gk20a.h" -- cgit v1.2.2