diff options
author | Seshendra Gadagottu <sgadagottu@nvidia.com> | 2016-01-15 16:33:09 -0500 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-01-19 20:48:57 -0500 |
commit | 3c6b40c762f0d4501c86f4d386a53165208a8677 (patch) | |
tree | bd3598e70dfc2608d75e70bb5037c199d2d7c656 /drivers/gpu/nvgpu/gk20a | |
parent | dad5a6a3c105013991cc95246f3b1b383776c761 (diff) |
gpu: nvgpu: gk20a: correct thermal slowdown factor
With extended mode enable, correct thermal slowdown factors
to have divideby2, divideby4 and divideby8 slowdown.
Bug 1719974
Change-Id: I5723b3972d34de13ffc456195b001fffe9fb56ec
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/933293
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/therm_gk20a.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/therm_gk20a.c b/drivers/gpu/nvgpu/gk20a/therm_gk20a.c index 1c1b8419..1fb60438 100644 --- a/drivers/gpu/nvgpu/gk20a/therm_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/therm_gk20a.c | |||
@@ -3,7 +3,7 @@ | |||
3 | * | 3 | * |
4 | * GK20A Therm | 4 | * GK20A Therm |
5 | * | 5 | * |
6 | * Copyright (c) 2011-2015, NVIDIA CORPORATION. All rights reserved. | 6 | * Copyright (c) 2011-2016, NVIDIA CORPORATION. All rights reserved. |
7 | * | 7 | * |
8 | * This program is free software; you can redistribute it and/or modify it | 8 | * This program is free software; you can redistribute it and/or modify it |
9 | * under the terms and conditions of the GNU General Public License, | 9 | * under the terms and conditions of the GNU General Public License, |
@@ -43,13 +43,13 @@ static int gk20a_init_therm_setup_hw(struct gk20a *g) | |||
43 | therm_use_a_ext_therm_2_enable_f()); | 43 | therm_use_a_ext_therm_2_enable_f()); |
44 | /* priority for EXT_THERM_0 event set to highest */ | 44 | /* priority for EXT_THERM_0 event set to highest */ |
45 | gk20a_writel(g, therm_evt_ext_therm_0_r(), | 45 | gk20a_writel(g, therm_evt_ext_therm_0_r(), |
46 | therm_evt_ext_therm_0_slow_factor_f(1) | | 46 | therm_evt_ext_therm_0_slow_factor_f(0x2) | |
47 | therm_evt_ext_therm_0_priority_f(3)); | 47 | therm_evt_ext_therm_0_priority_f(3)); |
48 | gk20a_writel(g, therm_evt_ext_therm_1_r(), | 48 | gk20a_writel(g, therm_evt_ext_therm_1_r(), |
49 | therm_evt_ext_therm_1_slow_factor_f(2) | | 49 | therm_evt_ext_therm_1_slow_factor_f(0x6) | |
50 | therm_evt_ext_therm_1_priority_f(2)); | 50 | therm_evt_ext_therm_1_priority_f(2)); |
51 | gk20a_writel(g, therm_evt_ext_therm_2_r(), | 51 | gk20a_writel(g, therm_evt_ext_therm_2_r(), |
52 | therm_evt_ext_therm_2_slow_factor_f(3) | | 52 | therm_evt_ext_therm_2_slow_factor_f(0xe) | |
53 | therm_evt_ext_therm_2_priority_f(1)); | 53 | therm_evt_ext_therm_2_priority_f(1)); |
54 | 54 | ||
55 | 55 | ||