summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b/therm_gm20b.c
diff options
context:
space:
mode:
authorSeshendra Gadagottu <sgadagottu@nvidia.com>2016-01-15 15:36:59 -0500
committerTerje Bergstrom <tbergstrom@nvidia.com>2016-01-19 20:48:27 -0500
commitdad5a6a3c105013991cc95246f3b1b383776c761 (patch)
tree6b976e4e1213eedfda1948fafd988237b7b712fe /drivers/gpu/nvgpu/gm20b/therm_gm20b.c
parent3a68fb2d7896170938af9a5bd7efd998f05eda29 (diff)
gpu: nvgpu: gm20b: correct thermal slowdown factor
With extended mode enable, correct thermal slowdown factors to have divideby2, divideby4 and divideby8 slowdown. Bug 1719974 Change-Id: I1e3a3f869657ce7c6409851df0ccd1523a06544b Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-on: http://git-master/r/933282 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/therm_gm20b.c')
-rw-r--r--drivers/gpu/nvgpu/gm20b/therm_gm20b.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/therm_gm20b.c b/drivers/gpu/nvgpu/gm20b/therm_gm20b.c
index ed1e0f49..5bd22841 100644
--- a/drivers/gpu/nvgpu/gm20b/therm_gm20b.c
+++ b/drivers/gpu/nvgpu/gm20b/therm_gm20b.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * GM20B THERMAL 2 * GM20B THERMAL
3 * 3 *
4 * Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2015-2016, NVIDIA CORPORATION. All rights reserved.
5 * 5 *
6 * This program is free software; you can redistribute it and/or modify it 6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License, 7 * under the terms and conditions of the GNU General Public License,
@@ -27,11 +27,11 @@ static int gm20b_init_therm_setup_hw(struct gk20a *g)
27 therm_use_a_ext_therm_1_enable_f() | 27 therm_use_a_ext_therm_1_enable_f() |
28 therm_use_a_ext_therm_2_enable_f()); 28 therm_use_a_ext_therm_2_enable_f());
29 gk20a_writel(g, therm_evt_ext_therm_0_r(), 29 gk20a_writel(g, therm_evt_ext_therm_0_r(),
30 therm_evt_ext_therm_0_slow_factor_f(1)); 30 therm_evt_ext_therm_0_slow_factor_f(0x2));
31 gk20a_writel(g, therm_evt_ext_therm_1_r(), 31 gk20a_writel(g, therm_evt_ext_therm_1_r(),
32 therm_evt_ext_therm_1_slow_factor_f(2)); 32 therm_evt_ext_therm_1_slow_factor_f(0x6));
33 gk20a_writel(g, therm_evt_ext_therm_2_r(), 33 gk20a_writel(g, therm_evt_ext_therm_2_r(),
34 therm_evt_ext_therm_2_slow_factor_f(3)); 34 therm_evt_ext_therm_2_slow_factor_f(0xe));
35 35
36 gk20a_writel(g, therm_grad_stepping_table_r(0), 36 gk20a_writel(g, therm_grad_stepping_table_r(0),
37 therm_grad_stepping_table_slowdown_factor0_f(therm_grad_stepping_table_slowdown_factor0_fpdiv_by1p5_f()) | 37 therm_grad_stepping_table_slowdown_factor0_f(therm_grad_stepping_table_slowdown_factor0_fpdiv_by1p5_f()) |