From 3c6b40c762f0d4501c86f4d386a53165208a8677 Mon Sep 17 00:00:00 2001 From: Seshendra Gadagottu Date: Fri, 15 Jan 2016 13:33:09 -0800 Subject: 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 Reviewed-on: http://git-master/r/933293 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/therm_gk20a.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/therm_gk20a.c') 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 @@ * * GK20A Therm * - * Copyright (c) 2011-2015, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2011-2016, NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * 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) therm_use_a_ext_therm_2_enable_f()); /* priority for EXT_THERM_0 event set to highest */ gk20a_writel(g, therm_evt_ext_therm_0_r(), - therm_evt_ext_therm_0_slow_factor_f(1) | + therm_evt_ext_therm_0_slow_factor_f(0x2) | therm_evt_ext_therm_0_priority_f(3)); gk20a_writel(g, therm_evt_ext_therm_1_r(), - therm_evt_ext_therm_1_slow_factor_f(2) | + therm_evt_ext_therm_1_slow_factor_f(0x6) | therm_evt_ext_therm_1_priority_f(2)); gk20a_writel(g, therm_evt_ext_therm_2_r(), - therm_evt_ext_therm_2_slow_factor_f(3) | + therm_evt_ext_therm_2_slow_factor_f(0xe) | therm_evt_ext_therm_2_priority_f(1)); -- cgit v1.2.2