diff options
author | Martin Peres <martin.peres@labri.fr> | 2013-03-14 23:51:16 +0100 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2013-03-18 11:15:27 +1000 |
commit | ad40d73ef533ab0ad16b4a1ab2f7870c1f8ab954 (patch) | |
tree | eef75a21da0c8033835e6f25baf7631211551df5 /drivers/gpu/drm/nouveau/core/subdev/therm/temp.c | |
parent | drm/nouveau/therm-ic: the temperature is off by sensor_constant, warn the user (diff) | |
download | linux-dev-ad40d73ef533ab0ad16b4a1ab2f7870c1f8ab954.tar.xz linux-dev-ad40d73ef533ab0ad16b4a1ab2f7870c1f8ab954.zip |
drm/nv40/therm: disable temperature reading if the bios misses some parameters
Reported-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tested-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Martin Peres <martin.peres@labri.fr>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/core/subdev/therm/temp.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/core/subdev/therm/temp.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/gpu/drm/nouveau/core/subdev/therm/temp.c b/drivers/gpu/drm/nouveau/core/subdev/therm/temp.c index 441f60bba226..0d94d1a19eb7 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/therm/temp.c +++ b/drivers/gpu/drm/nouveau/core/subdev/therm/temp.c @@ -34,10 +34,6 @@ nouveau_therm_temp_set_defaults(struct nouveau_therm *therm) { struct nouveau_therm_priv *priv = (void *)therm; - priv->bios_sensor.slope_mult = 1; - priv->bios_sensor.slope_div = 1; - priv->bios_sensor.offset_num = 0; - priv->bios_sensor.offset_den = 1; priv->bios_sensor.offset_constant = 0; priv->bios_sensor.thrs_fan_boost.temp = 90; @@ -60,11 +56,6 @@ nouveau_therm_temp_safety_checks(struct nouveau_therm *therm) struct nouveau_therm_priv *priv = (void *)therm; struct nvbios_therm_sensor *s = &priv->bios_sensor; - if (!priv->bios_sensor.slope_div) - priv->bios_sensor.slope_div = 1; - if (!priv->bios_sensor.offset_den) - priv->bios_sensor.offset_den = 1; - /* enforce a minimum hysteresis on thresholds */ s->thrs_fan_boost.hysteresis = max_t(u8, s->thrs_fan_boost.hysteresis, 2); s->thrs_down_clock.hysteresis = max_t(u8, s->thrs_down_clock.hysteresis, 2); |