summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/therm
diff options
context:
space:
mode:
authorVijayakumar <vsubbu@nvidia.com>2016-10-27 09:35:13 -0400
committerDeepak Nibade <dnibade@nvidia.com>2016-12-27 04:56:52 -0500
commit2ebf09920755daeb7e1be71bf317f88ec9d533e1 (patch)
treec9a376f8fb5f11f0dc39587992b229e1e6b06491 /drivers/gpu/nvgpu/therm
parent1f0a38797fbd86b5f5e7f6b43d1c81b2028a82b0 (diff)
gpu: nvgpu: handle vf curve change due to temp
JIRA DNVGPU-129 1)send 150'c as default temperature to PMU so that PMU will start reading temperature from sensor to evaluate VFE equations 2)Send GP106's temp min and max range for GPU sensor so that PMU will read right temperature 3)PMU will send event whenever temperature goes above +ve hysteresis or goes below -ve hysteresis. Call the Arbiter's VF re-evaluation function in the event handler. Change-Id: Iaebc0655f60e17998f0864824095f4fc8bba5b62 Signed-off-by: Vijayakumar <vsubbu@nvidia.com> Reviewed-on: http://git-master/r/1245392 (cherry picked from commit 7e59d0faa8cee6aace5524c724001e88248b2da7) Reviewed-on: http://git-master/r/1268062 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Tested-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/therm')
-rw-r--r--drivers/gpu/nvgpu/therm/thrmchannel.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/therm/thrmchannel.c b/drivers/gpu/nvgpu/therm/thrmchannel.c
index 015e065b..b5a7dfd2 100644
--- a/drivers/gpu/nvgpu/therm/thrmchannel.c
+++ b/drivers/gpu/nvgpu/therm/thrmchannel.c
@@ -74,9 +74,8 @@ static struct boardobj *construct_channel_device(struct gk20a *g,
74 pchannel = (struct therm_channel *)board_obj_ptr; 74 pchannel = (struct therm_channel *)board_obj_ptr;
75 pchannel_device = (struct therm_channel_device *)board_obj_ptr; 75 pchannel_device = (struct therm_channel_device *)board_obj_ptr;
76 76
77 pchannel->temp_min = 0; 77 g->ops.therm.get_internal_sensor_limits(&pchannel->temp_max,
78 pchannel->temp_max = 0; 78 &pchannel->temp_min);
79
80 pchannel->scaling = (1 << 8); 79 pchannel->scaling = (1 << 8);
81 pchannel->offset = 0; 80 pchannel->offset = 0;
82 81