summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv11b/therm_gv11b.c
diff options
context:
space:
mode:
authorseshendra Gadagottu <sgadagottu@nvidia.com>2018-01-22 18:03:02 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2018-01-24 17:42:34 -0500
commit7bd1c4640ca37ef621a11b7bbabe2ead86dff87b (patch)
tree5b24957dd7c8fef1187047c35b4a1d775eebe3d1 /drivers/gpu/nvgpu/gv11b/therm_gv11b.c
parentfb0a23ea168fd0947d9bc1064f91f15ef8a0c057 (diff)
gpu: nvgpu: gv11b: disable idle clock slowdown
Updated thermal settings as per hw POR update: - Disabled idle clock slowdown - Updated therm_grad_stepping1_pdiv_duration as per updated hw por value. Bug 200365110 Change-Id: I0c67366ecebd5681343746e9badb57fa74dfaeaa Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1643895 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/therm_gv11b.c')
-rw-r--r--drivers/gpu/nvgpu/gv11b/therm_gv11b.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/therm_gv11b.c b/drivers/gpu/nvgpu/gv11b/therm_gv11b.c
index f2d929fa..fe843325 100644
--- a/drivers/gpu/nvgpu/gv11b/therm_gv11b.c
+++ b/drivers/gpu/nvgpu/gv11b/therm_gv11b.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * GV11B Therm 2 * GV11B Therm
3 * 3 *
4 * Copyright (c) 2015-2017, NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2015-2018, NVIDIA CORPORATION. All rights reserved.
5 * 5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a 6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"), 7 * copy of this software and associated documentation files (the "Software"),
@@ -81,12 +81,18 @@ int gv11b_init_therm_setup_hw(struct gk20a *g)
81 gk20a_writel(g, therm_config2_r(), v); 81 gk20a_writel(g, therm_config2_r(), v);
82 82
83 gk20a_writel(g, therm_grad_stepping1_r(), 83 gk20a_writel(g, therm_grad_stepping1_r(),
84 therm_grad_stepping1_pdiv_duration_f(0x40)); 84 therm_grad_stepping1_pdiv_duration_f(0xbf4));
85 85
86 v = gk20a_readl(g, therm_grad_stepping0_r()); 86 v = gk20a_readl(g, therm_grad_stepping0_r());
87 v |= therm_grad_stepping0_feature_enable_f(); 87 v |= therm_grad_stepping0_feature_enable_f();
88 gk20a_writel(g, therm_grad_stepping0_r(), v); 88 gk20a_writel(g, therm_grad_stepping0_r(), v);
89 89
90 /* disable idle clock slowdown */
91 v = therm_clk_slowdown_2_idle_condition_a_select_f(0) |
92 therm_clk_slowdown_2_idle_condition_a_type_never_f() |
93 therm_clk_slowdown_2_idle_condition_b_type_never_f();
94 gk20a_writel(g, therm_clk_slowdown_2_r(0), v);
95
90 return 0; 96 return 0;
91} 97}
92 98