From 74d786dd1327bafa18b21310ac8d67db4a5614cb Mon Sep 17 00:00:00 2001 From: Debarshi Dutta Date: Thu, 21 Jun 2018 10:05:13 +0530 Subject: gpu: nvgpu: disable powergating for kernel-4.14 in gp10b temporarily. All the powergating features such as railgating and other clock-gating are disabled temporarily for kernel-4.14 which leads to several kernel-panics. These will be re-enabled later. Bug 200414723 Bug 200424473 Change-Id: I72b95bf027517309bd4ae32d0513e458ae46283f Signed-off-by: Debarshi Dutta Reviewed-on: https://git-master.nvidia.com/r/1756503 Reviewed-by: svc-mobile-coverity GVS: Gerrit_Virtual_Submit Reviewed-by: Konsta Holtta Reviewed-by: Bitan Biswas Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/os/linux/platform_gp10b_tegra.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'drivers/gpu') diff --git a/drivers/gpu/nvgpu/os/linux/platform_gp10b_tegra.c b/drivers/gpu/nvgpu/os/linux/platform_gp10b_tegra.c index 5cb82687..00fd386e 100644 --- a/drivers/gpu/nvgpu/os/linux/platform_gp10b_tegra.c +++ b/drivers/gpu/nvgpu/os/linux/platform_gp10b_tegra.c @@ -13,6 +13,7 @@ * more details. */ +#include #include #include #include @@ -385,6 +386,18 @@ struct gk20a_platform gp10b_tegra_platform = { .ldiv_slowdown_factor_init = SLOWDOWN_FACTOR_FPDIV_BY16, /* power management configuration */ +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0) + .can_railgate_init = false, + .enable_elpg = false, + .can_elpg_init = false, + .enable_blcg = false, + .enable_slcg = false, + .enable_elcg = false, + .can_slcg = false, + .can_blcg = false, + .can_elcg = false, + .enable_aelpg = false, +#else .can_railgate_init = true, .enable_elpg = true, .can_elpg_init = true, @@ -395,6 +408,7 @@ struct gk20a_platform gp10b_tegra_platform = { .can_blcg = true, .can_elcg = true, .enable_aelpg = true, +#endif .enable_perfmon = true, /* ptimer src frequency in hz*/ -- cgit v1.2.2