Skip to contentSkip to conversation

NOUVEAU_LEGACY_CTX_SUPPORT Fan Speed

DISCUSSION Mar Mel 4 participants 11 messages Jun 13, 2019 – Jun 25, 2019 10 messages not in the archive

lore
Share & tools
lore

Mar Mel

author
#1 lore raw
In reply to a message not in the archive

As of kernel 5.1.9, on resume from suspend, my NV50 fan runs at full speed.

Not sure if it has to do with this new config option (NOUVEAU_LEGACY_CTX_SUPPORT)?

This issue is not present using kernel 5.0.21.
Years ago I filed a similar issue:

60704 – [nouveau, git regression] - I2C PWM fan control broken on nv50 adt7475 on kernels 3.3.x+ Thanks.

| 
| 
|  | 

60704 – [nouveau, git regression] - I2C PWM fan control broken on nv50 a...

|

|

|

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

author
#3 lore raw
In reply to a message not in the archive

Unfortunately, even with this change now reverted in kernel 5.1.10, the fan speed issue persists.
If someone could point me in the direction of a relevant commit(s) I'll happily file a bug report.

    On Thursday, June 13, 2019, 11:19:25 AM EDT, Mar Mel <[email protected]> wrote:  

As of kernel 5.1.9, on resume from suspend, my NV50 fan runs at full speed.

Not sure if it has to do with this new config option (NOUVEAU_LEGACY_CTX_SUPPORT)?

This issue is not present using kernel 5.0.21.
Years ago I filed a similar issue:

60704 – [nouveau, git regression] - I2C PWM fan control broken on nv50 adt7475 on kernels 3.3.x+ Thanks.

| 
| 
|  | 

60704 – [nouveau, git regression] - I2C PWM fan control broken on nv50 a...

|

|

|

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

#5 lore raw
In reply to a message not in the archive

I don't really see anything between v5.0..v5.1 which would account for this. Could have been a subtle change to the i2c logic somewhere. The fastest way to identify the problem would be to do a bisect on the kernel to identify the commit that caused this. There are many guides for this online.

Quoted 29 lines · Mar Mel

Unfortunately, even with this change now reverted in kernel 5.1.10, the fan speed issue persists.

If someone could point me in the direction of a relevant commit(s) I'll happily file a bug report.

On Thursday, June 13, 2019, 11:19:25 AM EDT, Mar Mel <marmel6942-/[email protected]> wrote:

As of kernel 5.1.9, on resume from suspend, my NV50 fan runs at full speed.

Not sure if it has to do with this new config option ( NOUVEAU_LEGACY_CTX_SUPPORT)?

This issue is not present using kernel 5.0.21.

Years ago I filed a similar issue:

60704 – [nouveau, git regression] - I2C PWM fan control broken on nv50 adt7475 on kernels 3.3.x+
<https://bugs.freedesktop.org/show_bug.cgi?id=60704>

Thanks.

60704 – [nouveau, git regression] - I2C PWM fan control broken on nv50 a...

Quoted 7 lines

<https://bugs.freedesktop.org/show_bug.cgi?id=60704>

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

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

#7 lore raw
In reply to a message not in the archive

Some weird interaction with disabling the i2c access, in the following patch perhaps?

commit cd68344b283174a9b38e9488d5a929464e1f417c

Author: Lyude Paul <[email protected]>
Date:   Tue Apr 9 16:23:30 2019 -0400
    drm/nouveau/i2c: Disable i2c bus access after ->fini()
Quoted 46 lines · Ilia Mirkin

I don't really see anything between v5.0..v5.1 which would account for this. Could have been a subtle change to the i2c logic somewhere. The fastest way to identify the problem would be to do a bisect on the kernel to identify the commit that caused this. There are many guides for this online.

Quoted 30 lines · Mar Mel

Unfortunately, even with this change now reverted in kernel 5.1.10, the fan speed issue persists.

If someone could point me in the direction of a relevant commit(s) I'll happily file a bug report.

On Thursday, June 13, 2019, 11:19:25 AM EDT, Mar Mel < marmel6942-/[email protected]> wrote:

As of kernel 5.1.9, on resume from suspend, my NV50 fan runs at full speed.

Not sure if it has to do with this new config option ( NOUVEAU_LEGACY_CTX_SUPPORT)?

This issue is not present using kernel 5.0.21.

Years ago I filed a similar issue:

60704 – [nouveau, git regression] - I2C PWM fan control broken on nv50 adt7475 on kernels 3.3.x+
<https://bugs.freedesktop.org/show_bug.cgi?id=60704>

Thanks.

60704 – [nouveau, git regression] - I2C PWM fan control broken on nv50 a...

Quoted 7 lines

<https://bugs.freedesktop.org/show_bug.cgi?id=60704>

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

Quoted 4 lines

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

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

author
#9 lore raw
In reply to a message not in the archive

Thanks for finding this Emil! The change you point out also landed on 4.19.49 and I am able to reproduce the fan speed issue with that kernel as well, whereas previous 4.19.x series kernels were fine.
I'll attempt to build both the latest 4.19.x and 5.1.x stable kernels with that patch reverted and see if it's the sole culprit.

    On Friday, June 21, 2019, 1:32:19 PM EDT, Emil Velikov <[email protected]> wrote:  

Some weird interaction with disabling the i2c access, in the following patch perhaps?
commit cd68344b283174a9b38e9488d5a929464e1f417c
Author: Lyude Paul <[email protected]>
Date:   Tue Apr 9 16:23:30 2019 -0400

    drm/nouveau/i2c: Disable i2c bus access after ->fini()

On Sun, 16 Jun 2019 at 15:28, Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> wrote:

I don't really see anything between v5.0..v5.1 which would account for this. Could have been a subtle change to the i2c logic somewhere. The fastest way to identify the problem would be to do a bisect on the kernel to identify the commit that caused this. There are many guides for this online. On Sat, Jun 15, 2019 at 12:17 PM Mar Mel <marmel6942-/[email protected]> wrote:

Unfortunately, even with this change now reverted in kernel 5.1.10, the fan speed issue persists.
If someone could point me in the direction of a relevant commit(s) I'll happily file a bug report.

    On Thursday, June 13, 2019, 11:19:25 AM EDT, Mar Mel <[email protected]> wrote:  

As of kernel 5.1.9, on resume from suspend, my NV50 fan runs at full speed.

Not sure if it has to do with this new config option (NOUVEAU_LEGACY_CTX_SUPPORT)?

This issue is not present using kernel 5.0.21.
Years ago I filed a similar issue:

60704 – [nouveau, git regression] - I2C PWM fan control broken on nv50 adt7475 on kernels 3.3.x+ Thanks.

| 
| 
|  | 

60704 – [nouveau, git regression] - I2C PWM fan control broken on nv50 a...

|

|

|

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

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

author
#11 lore raw
In reply to a message not in the archive

I can confirm that reverting just this commit fixes the fan speed regression using kernel 5.1.12.
How do we go about getting this reverted from stable kernels?

CCing the author.

    On Friday, June 21, 2019, 4:28:19 PM EDT, Mar Mel <marmel6942-/[email protected]> wrote:  

Thanks for finding this Emil! The change you point out also landed on 4.19.49 and I am able to reproduce the fan speed issue with that kernel as well, whereas previous 4.19.x series kernels were fine.
I'll attempt to build both the latest 4.19.x and 5.1.x stable kernels with that patch reverted and see if it's the sole culprit.

    On Friday, June 21, 2019, 1:32:19 PM EDT, Emil Velikov <[email protected]> wrote:  

Some weird interaction with disabling the i2c access, in the following patch perhaps?
commit cd68344b283174a9b38e9488d5a929464e1f417c
Author: Lyude Paul <[email protected]>
Date:   Tue Apr 9 16:23:30 2019 -0400

    drm/nouveau/i2c: Disable i2c bus access after ->fini()

On Sun, 16 Jun 2019 at 15:28, Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> wrote:

I don't really see anything between v5.0..v5.1 which would account for this. Could have been a subtle change to the i2c logic somewhere. The fastest way to identify the problem would be to do a bisect on the kernel to identify the commit that caused this. There are many guides for this online. On Sat, Jun 15, 2019 at 12:17 PM Mar Mel <marmel6942-/[email protected]> wrote:

Unfortunately, even with this change now reverted in kernel 5.1.10, the fan speed issue persists.
If someone could point me in the direction of a relevant commit(s) I'll happily file a bug report.

    On Thursday, June 13, 2019, 11:19:25 AM EDT, Mar Mel <[email protected]> wrote:  

As of kernel 5.1.9, on resume from suspend, my NV50 fan runs at full speed.

Not sure if it has to do with this new config option (NOUVEAU_LEGACY_CTX_SUPPORT)?

This issue is not present using kernel 5.0.21.
Years ago I filed a similar issue:

60704 – [nouveau, git regression] - I2C PWM fan control broken on nv50 adt7475 on kernels 3.3.x+ Thanks.

| 
| 
|  | 

60704 – [nouveau, git regression] - I2C PWM fan control broken on nv50 a...

|

|

|

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

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

#12 lore raw
In reply to a message not in the archive

Hi, is this actually an nv50 GPU, or some other model? I can try to take a closer look at this

Quoted 58 lines · Ilia Mirkin

I don't really see anything between v5.0..v5.1 which would account for this. Could have been a subtle change to the i2c logic somewhere. The fastest way to identify the problem would be to do a bisect on the kernel to identify the commit that caused this. There are many guides for this online.

Quoted 41 lines · Mar Mel

Unfortunately, even with this change now reverted in kernel
5.1.10, the fan speed issue persists.
If someone could point me in the direction of a relevant commit(s) I'll happily file a bug report.

                    On Thursday, June 13, 2019, 11:19:25 AM EDT, Mar Mel <

marmel6942-/[email protected]> wrote:

As of kernel 5.1.9, on resume from suspend, my NV50 fan
runs at full speed.

Not sure if it has to do with this new config option (NOUVEAU_LEGACY_CTX_SUPPORT)?

This issue is not present using kernel 5.0.21.

Years ago I filed a similar issue:

60704 – [nouveau, git regression] - I2C PWM fan control broken on nv50 adt7475 on kernels 3.3.x+

Thanks.

60704 – [nouveau, git regression] - I2C PWM fan control broken on nv50 a...

Quoted 7 lines

_______________________________________________

Nouveau mailing list

[email protected]

https://lists.freedesktop.org/mailman/listinfo/nouveau

_______________________________________________Nouveau mailing [email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

Signature · 2 lines
Cheers,
	Lyude Paul

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

#14 lore raw
In reply to a message not in the archive

Mar - can you provide the output of

lspci -nn -d 10de:

Quoted 57 lines · Lyude Paul

Hi, is this actually an nv50 GPU, or some other model? I can try to take a closer look at this

On Sun, 2019-06-16 at 10:28 -0400, Ilia Mirkin wrote:

I don't really see anything between v5.0..v5.1 which would account for this. Could have been a subtle change to the i2c logic somewhere. The fastest way to identify the problem would be to do a bisect on the kernel to identify the commit that caused this. There are many guides for this online.

On Sat, Jun 15, 2019 at 12:17 PM Mar Mel <marmel6942-/[email protected]> wrote:

Unfortunately, even with this change now reverted in kernel 5.1.10, the fan speed issue persists.

If someone could point me in the direction of a relevant commit(s) I'll happily file a bug report.

On Thursday, June 13, 2019, 11:19:25 AM EDT, Mar Mel <marmel6942-/[email protected]> wrote:

As of kernel 5.1.9, on resume from suspend, my NV50 fan runs at full speed.

Not sure if it has to do with this new config option ( NOUVEAU_LEGACY_CTX_SUPPORT)?

This issue is not present using kernel 5.0.21.

Years ago I filed a similar issue:

60704 – [nouveau, git regression] - I2C PWM fan control broken on nv50 adt7475 on kernels 3.3.x+
<https://bugs.freedesktop.org/show_bug.cgi?id=60704>

Thanks.

60704 – [nouveau, git regression] - I2C PWM fan control broken on nv50 a...

<https://bugs.freedesktop.org/show_bug.cgi?id=60704>

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

_______________________________________________

Nouveau mailing list

[email protected]

Quoted 7 lines

https://lists.freedesktop.org/mailman/listinfo/nouveau

--

Cheers,
Lyude Paul

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

author
#16 lore raw
In reply to a message not in the archive

Sure:

$ lspci -nn -d 10de:
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GT200 [GeForce GTX 260] [10de:05e2] (rev a1)
    On Saturday, June 22, 2019, 2:19:31 PM EDT, Ilia Mirkin <[email protected]> wrote:  

Mar - can you provide the output of
lspci -nn -d 10de:
On Sat, Jun 22, 2019 at 2:17 PM Lyude Paul <[email protected]> wrote:

Hi, is this actually an nv50 GPU, or some other model? I can try to take a closer look at this
On Sun, 2019-06-16 at 10:28 -0400, Ilia Mirkin wrote:
I don't really see anything between v5.0..v5.1 which would account for this. Could have been a subtle change to the i2c logic somewhere. The fastest way to identify the problem would be to do a bisect on the kernel to identify the commit that caused this. There are many guides for this online. On Sat, Jun 15, 2019 at 12:17 PM Mar Mel <marmel6942-/[email protected]> wrote:

Unfortunately, even with this change now reverted in kernel 5.1.10, the fan speed issue persists.
If someone could point me in the direction of a relevant commit(s) I'll happily file a bug report.

    On Thursday, June 13, 2019, 11:19:25 AM EDT, Mar Mel <[email protected]> wrote:  

As of kernel 5.1.9, on resume from suspend, my NV50 fan runs at full speed.

Not sure if it has to do with this new config option (NOUVEAU_LEGACY_CTX_SUPPORT)?

This issue is not present using kernel 5.0.21.
Years ago I filed a similar issue:

60704 – [nouveau, git regression] - I2C PWM fan control broken on nv50 adt7475 on kernels 3.3.x+ Thanks.

| 
| 
|  | 

60704 – [nouveau, git regression] - I2C PWM fan control broken on nv50 a...

|

|

|

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

Signature · 1 line
Cheers, Lyude Paul

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

#18 lore raw
In reply to a message not in the archive

Hi Mar,

Could you file a bug (bugs.freedesktop.org under xorg -> Driver/nouveau) with a summary of this info (i.e. a problem statement, that reverting the commit in question fixes it, the lspci output) and additionally, your VBIOS. You can obtain this with nouveau loaded by doing

cp /sys/kernel/debug/dri/0/vbios.rom /tmp

This will help centralize all the info.

Thanks,

-ilia

Quoted 74 lines · Mar Mel

Sure:

$ lspci -nn -d 10de:
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GT200
[GeForce GTX 260] [10de:05e2] (rev a1)

On Saturday, June 22, 2019, 2:19:31 PM EDT, Ilia Mirkin < imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> wrote:

Mar - can you provide the output of

lspci -nn -d 10de:

On Sat, Jun 22, 2019 at 2:17 PM Lyude Paul <[email protected]> wrote:

Hi, is this actually an nv50 GPU, or some other model? I can try to take a closer look at this

On Sun, 2019-06-16 at 10:28 -0400, Ilia Mirkin wrote:

I don't really see anything between v5.0..v5.1 which would account for this. Could have been a subtle change to the i2c logic somewhere. The fastest way to identify the problem would be to do a bisect on the kernel to identify the commit that caused this. There are many guides for this online.

On Sat, Jun 15, 2019 at 12:17 PM Mar Mel <marmel6942-/[email protected]> wrote:

Unfortunately, even with this change now reverted in kernel 5.1.10, the fan speed issue persists.

If someone could point me in the direction of a relevant commit(s) I'll happily file a bug report.

On Thursday, June 13, 2019, 11:19:25 AM EDT, Mar Mel <marmel6942-/[email protected]> wrote:

As of kernel 5.1.9, on resume from suspend, my NV50 fan runs at full speed.

Not sure if it has to do with this new config option ( NOUVEAU_LEGACY_CTX_SUPPORT)?

This issue is not present using kernel 5.0.21.

Years ago I filed a similar issue:

60704 – [nouveau, git regression] - I2C PWM fan control broken on nv50 adt7475 on kernels 3.3.x+
<https://bugs.freedesktop.org/show_bug.cgi?id=60704>

Thanks.

60704 – [nouveau, git regression] - I2C PWM fan control broken on nv50 a...

<https://bugs.freedesktop.org/show_bug.cgi?id=60704>

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

_______________________________________________

Nouveau mailing list

[email protected]

Quoted 8 lines

https://lists.freedesktop.org/mailman/listinfo/nouveau

--

Cheers,
Lyude Paul

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

author
#20 lore raw
In reply to a message not in the archive

Done. Thanks!

Bug 110997 - NV50 fan runs at full speed after resume from suspend on kernels 5.1.8, 4.19.49
https://bugs.freedesktop.org/show_bug.cgi?id=110997

On Tuesday, June 25, 2019, 11:21:24 AM EDT, Ilia Mirkin <[email protected]> wrote:

Hi Mar,

Could you file a bug (bugs.freedesktop.org under xorg -> Driver/nouveau) with a summary of this info (i.e. a problem statement, that reverting the commit in question fixes it, the lspci output) and additionally, your VBIOS. You can obtain this with nouveau loaded by doing

cp /sys/kernel/debug/dri/0/vbios.rom /tmp

This will help centralize all the info.

Thanks,

  -ilia

Quoted 17 lines · Mar Mel

Sure:

$ lspci -nn -d 10de:
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GT200 [GeForce GTX 260] [10de:05e2] (rev a1)



  On Saturday, June 22, 2019, 2:19:31 PM EDT, Ilia Mirkin <[email protected]> wrote:

Quoted 55 lines

Mar - can you provide the output of

lspci -nn -d 10de:

Quoted 48 lines · Lyude Paul

Hi, is this actually an nv50 GPU, or some other model? I can try to take a closer look at this

Quoted 37 lines · Ilia Mirkin

I don't really see anything between v5.0..v5.1 which would account for this. Could have been a subtle change to the i2c logic somewhere. The fastest way to identify the problem would be to do a bisect on the kernel to identify the commit that caused this. There are many guides for this online.

Quoted 34 lines · Mar Mel

Unfortunately, even with this change now reverted in kernel 5.1.10, the fan speed issue persists.

If someone could point me in the direction of a relevant commit(s) I'll happily file a bug report.



  On Thursday, June 13, 2019, 11:19:25 AM EDT, Mar Mel <[email protected]> wrote:

As of kernel 5.1.9, on resume from suspend, my NV50 fan runs at full speed.

Not sure if it has to do with this new config option (NOUVEAU_LEGACY_CTX_SUPPORT)?

This issue is not present using kernel 5.0.21.

Years ago I filed a similar issue:

60704 – [nouveau, git regression] - I2C PWM fan control broken on nv50 adt7475 on kernels 3.3.x+

Thanks.

60704 – [nouveau, git regression] - I2C PWM fan control broken on nv50 a...

Quoted 5 lines
Quoted 4 lines

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

_______________________________________________Nouveau mailing [email protected]://lists.freedesktop.org/mailman/listinfo/nouveau

-- Cheers,
  Lyude Paul

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