[Nouveau] [PATCH 0/3] Several hwmon fixes

2017-09-02 Thread Karol Herbst
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)

[Nouveau] [PATCH 1/3] therm: split return code and value in nvkm_get_temp

2017-09-02 Thread Karol Herbst
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

[Nouveau] [PATCH 2/3] hwmon: properly check for errors

2017-09-02 Thread Karol Herbst
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

[Nouveau] [PATCH 3/3] subdev/volt/gk104: return error when read fails

2017-09-02 Thread Karol Herbst
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

[Nouveau] [Bug 93629] [NVE6] complete system freeze, PGRAPH engine fault on channel 2, SCHED_ERROR [ CTXSW_TIMEOUT ]

2017-09-02 Thread bugzilla-daemon
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