summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDebarshi Dutta <ddutta@nvidia.com>2018-06-21 00:35:13 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-06-28 03:25:25 -0400
commit74d786dd1327bafa18b21310ac8d67db4a5614cb (patch)
tree0330690f670b655a3fe29da8ee560d5969a2ff84 /drivers
parent7998233b77a343d002b699d5f348bbeb243e16f5 (diff)
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 <ddutta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1756503 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/nvgpu/os/linux/platform_gp10b_tegra.c14
1 files changed, 14 insertions, 0 deletions
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 @@
13 * more details. 13 * more details.
14 */ 14 */
15 15
16#include <linux/version.h>
16#include <linux/of_platform.h> 17#include <linux/of_platform.h>
17#include <linux/debugfs.h> 18#include <linux/debugfs.h>
18#include <linux/dma-buf.h> 19#include <linux/dma-buf.h>
@@ -385,6 +386,18 @@ struct gk20a_platform gp10b_tegra_platform = {
385 .ldiv_slowdown_factor_init = SLOWDOWN_FACTOR_FPDIV_BY16, 386 .ldiv_slowdown_factor_init = SLOWDOWN_FACTOR_FPDIV_BY16,
386 387
387 /* power management configuration */ 388 /* power management configuration */
389#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0)
390 .can_railgate_init = false,
391 .enable_elpg = false,
392 .can_elpg_init = false,
393 .enable_blcg = false,
394 .enable_slcg = false,
395 .enable_elcg = false,
396 .can_slcg = false,
397 .can_blcg = false,
398 .can_elcg = false,
399 .enable_aelpg = false,
400#else
388 .can_railgate_init = true, 401 .can_railgate_init = true,
389 .enable_elpg = true, 402 .enable_elpg = true,
390 .can_elpg_init = true, 403 .can_elpg_init = true,
@@ -395,6 +408,7 @@ struct gk20a_platform gp10b_tegra_platform = {
395 .can_blcg = true, 408 .can_blcg = true,
396 .can_elcg = true, 409 .can_elcg = true,
397 .enable_aelpg = true, 410 .enable_aelpg = true,
411#endif
398 .enable_perfmon = true, 412 .enable_perfmon = true,
399 413
400 /* ptimer src frequency in hz*/ 414 /* ptimer src frequency in hz*/