We should simply return errors while the GPU is turned off, because the sensors
aren't accessable and setting any kind of value doesn't make any sense. Fixes
sensors values reported by "sensors"
Before:
nouveau-pci-0100
Adapter: PCI adapter
GPU core: +0.60 V (min = +0.60 V, max = +1.20 V)
The current hwmon code doesn't check if the returned value was actually an
error.
Since Kepler temperature sensors are able to report negative values.
Since Pascal (and maybe earlier) we have sensors with improved precision.
Adjust the nvkm_get_temp method to be able to deal with those changes
Otherwise hwmon interprets error codes as real values.
Signed-off-by: Karol Herbst
---
drm/nouveau/nouveau_hwmon.c | 33 ++---
1 file changed, 26 insertions(+), 7 deletions(-)
diff --git a/drm/nouveau/nouveau_hwmon.c
While my gpu was powered off, hwmon returned 0.6V as the current voltage.
If nvkm_rd32 fails for any reason, return the error.
With that sensors will display a "N/A" instead of 0.6V.
Signed-off-by: Karol Herbst
---
drm/nouveau/nvkm/subdev/volt/gk104.c | 7 ++-
1 file
https://bugs.freedesktop.org/show_bug.cgi?id=93629
--- Comment #38 from Robb Ebright ---
I ran into a similar bug with a recent Debian install. It occurs only when I
plugged in a monitor into the DVI port. It works fine with the HDMI port as I'm
using it to type. But it freezes