Skip to contentSkip to conversation

New: Strange readout on fan1_input when pwm1_min < 33

Bug 79820 [email protected] 1 participant 7 messages Jun 9, 2014 – Nov 20, 2014 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=79820

Priority: medium
Bug ID: 79820
Assignee: [email protected]
Summary: Strange readout on fan1_input when pwm1_min < 33
QA Contact: [email protected]
Severity: normal
Classification: Unclassified
OS: Linux (All)
Reporter: [email protected]
Hardware: x86-64 (AMD64)
Status: NEW
Version: unspecified
Component: Driver/nouveau
Product: xorg

Created attachment 100705
--> https://bugs.freedesktop.org/attachment.cgi?id=100705&action=edit
jountalctl -b -k|grep nouveau

When running the drivers from kernel 3.15.0, pwm1_min seems to default to 35. I noticed that this yields reported ~2k RPM in fan1_input for my card. Since the fan runs at ~1k RPM in idle when running the NVIDIA blob, I tried lowering pwm1_min and noticed odd results.

Lowering pwm1_min to 32 is fine and gives me a readout of ~1.8k RPM. However, after that, I see weird output values:

31 ~ 4.5k
30 ~ 9k
29 ~ 5k
28 ~ 22k (sic)
27 ~ 75k (sic)
26 ~ 400k (sic)

At no time was my computer lifting up from the ground though, and even with the reported 4.5k it seems that the fan did not actually speed up.

Additional background: It seems my fan is only supported as of Linux 3.15.0. Before that, the fan ran at 100% and dmesg showed «FAN control: none / external». On IRC I was informed that a new fan has been added to 3.15, and indeed it seems to be recognized now (many thanks for that!).

I’m attaching my dmesg and my vbios in case it helps. Note though that nvagetbios reported a warning when dumping the BIOS:

Quoted 3 lines

No extraction method specified (using -s extraction_method). Defaulting to PRAMIN. Attempt to extract the vbios from card 0 (nve6) using PRAMIN
Invalid signature(0x55aa). You may want to try another retrieval method.

Let me know if there’s additional information I could supply.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#2 lore raw

[Bug 79820] Strange readout on fan1_input when pwm1_min < 33

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=79820

--- Comment #1 from [email protected] --- Created attachment 100707
--> https://bugs.freedesktop.org/attachment.cgi?id=100707&action=edit
vbios

Extracted by nvagetbios, which reported these warnings:

Quoted 3 lines

No extraction method specified (using -s extraction_method). Defaulting to PRAMIN. Attempt to extract the vbios from card 0 (nve6) using PRAMIN
Invalid signature(0x55aa). You may want to try another retrieval method.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#3 lore raw

[Bug 79820] [NVE6] Strange readout on fan1_input when pwm1_min < 33

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=79820

Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

            Summary|Strange readout on          |[NVE6] Strange readout on
                   |fan1_input when pwm1_min <  |fan1_input when pwm1_min <
                   |33                          |33

--- Comment #2 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> --- With nouveau loaded, can you grab vbios from /sys/kernel/debug/dri/0/vbios.rom? Or use -s prom with nvagetbios?

It's moderately likely that the reported fan rpm is just 2x what it should be -- did the fan sound louder with nouveau than with the blob? See
http://cgit.freedesktop.org/~darktama/nouveau/commit/?id=e3601d0869a18acc19e58f2d1216b810632d75f0
(which will be in 3.16-rc1).

Martin -- any idea about the weird RPMs reported for the lower values?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#4 lore raw

[Bug 79820] [NVE6] Strange readout on fan1_input when pwm1_min < 33

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=79820

--- Comment #3 from [email protected] --- The noise didn’t really noticeably increase. And I just checked the values reported by nvidia-settings. When idle, these always seem to jump in increments of 30 RPM (usually between 1050 and 1080). With nouveau, the output value jumps in increments of 60 RPM, so you are probably right and the difference is only nominal.

In any case, I’m attaching the BIOS file obtained from nvagetbios -s prom. No warnings were reported this time.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#5 lore raw

[Bug 79820] [NVE6] Strange readout on fan1_input when pwm1_min < 33

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=79820

[email protected] changed:

What |Removed |Added
----------------------------------------------------------------------------

 Attachment #100707|0                           |1

is obsolete| |

--- Comment #4 from [email protected] --- Created attachment 100758
--> https://bugs.freedesktop.org/attachment.cgi?id=100758&action=edit
VBIOS

BIOS obtained by nvagetbios -s prom.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#6 lore raw

[Bug 79820] [NVE6] Strange readout on fan1_input when pwm1_min < 33

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=79820

--- Comment #5 from Martin Peres <[email protected]> --- (In reply to comment #2)

Quoted 2 lines

With nouveau loaded, can you grab vbios from /sys/kernel/debug/dri/0/vbios.rom? Or use -s prom with nvagetbios?

I just pushed a patch to nvagetbios to suggest to use -s prom when the signature is invalid. Let's stop wasting time suggesting this.

Quoted 5 lines

It's moderately likely that the reported fan rpm is just 2x what it should be -- did the fan sound louder with nouveau than with the blob? See
http://cgit.freedesktop.org/~darktama/nouveau/commit/
?id=e3601d0869a18acc19e58f2d1216b810632d75f0 (which will be in 3.16-rc1).

Yes, this is likely the problem here.

Quoted 2 lines

Martin -- any idea about the weird RPMs reported for the lower values?

It probably is a bouncing problem of the Hall effect sensor. This one may not have a proper hysteresis cycle which leads to an unstable signal during the transition phases. The longer the transition takes, the more un-wanted oscillation is introduced. It is possible that the fan manufacturer added a low-pass filter on the fan that only works down to the minimum speed (35%) and fails to clean up the signal after that.

In any case, this is not our bug unless nvidia is able to cope with it (which is impossible to test with the coolbits since they don't allow a fan speed lower than the minimum speed). I could edit the vbios to change the minimum speed limit and ask you to re-upload it and check if nvidia yields the same result. Would you be interested in doing that?

(In reply to comment #3)

Quoted 5 lines

The noise didn’t really noticeably increase. And I just checked the values reported by nvidia-settings. When idle, these always seem to jump in increments of 30 RPM (usually between 1050 and 1080). With nouveau, the output value jumps in increments of 60 RPM, so you are probably right and the difference is only nominal.

Perfect! Thank you :)

Quoted 3 lines

In any case, I’m attaching the BIOS file obtained from nvagetbios -s prom. No warnings were reported this time.

Thanks, but I don't think it will be necessary...

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#7 lore raw

[Bug 79820] [NVE6] Strange readout on fan1_input when pwm1_min < 33

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=79820

Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> --- The reported RPM being 2x should be fixed in 3.16. Lowering the fan outside of VBIOS-supplied values isn't explicitly supported, and the fact that you're getting junk RPM readings from that isn't unexpected.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau