Skip to contentSkip to conversation

nouveau: Crash in gk104_fifo_intr_runlist()

REGRESSION Eric Biggers 3 participants 8 messages Aug 9, 2015 – Aug 12, 2015 6 messages not in the archive

lore
Share & tools
lore
#0 lore raw

Hi,

I am testing Linux v4.2-rc5 and I am sporadically getting crashes shortly after startup in gk104_fifo_intr_runlist(). What I've found is that the 'mask' value read from offset 0x2a00 comes back as '0xbad0da00'. This causes the 'engn' variable to be assigned the value 9, which is invalid; then wake_up() is called on an uninitialized waitqueue which causes the crash.

Reverting commit 1addc12648521d ("drm/nouveau/fifo/gk104: kick channels when deactivating them") seemed to make the problem go away, although I can't be 100% sure because the problem is sporadic.

Attached an example of the kernel log up to the crash.

Eric

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

#1 lore raw

Alexandre, could you take a look? 0xbad* generally comes from bad mmio reads.

Quoted 17 lines · Eric Biggers

Hi,

I am testing Linux v4.2-rc5 and I am sporadically getting crashes shortly after
startup in gk104_fifo_intr_runlist(). What I've found is that the 'mask' value
read from offset 0x2a00 comes back as '0xbad0da00'. This causes the 'engn' variable to be assigned the value 9, which is invalid; then wake_up() is called
on an uninitialized waitqueue which causes the crash.

Reverting commit 1addc12648521d ("drm/nouveau/fifo/gk104: kick channels when
deactivating them") seemed to make the problem go away, although I can't be 100%
sure because the problem is sporadic.

Quoted 10 lines

Attached an example of the kernel log up to the crash.

Eric

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

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

A message that is not in the archive (sent off-list or not yet received): CAKb7Uviet+Bg_KBnaOHGm7b-0vppu6pLDkE-UcoaCcdZ7fEaUg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#3 lore raw

Indeed, and I am actually surprised to see one here. I will double-check that patch.

Eric, would you be able to give an estimate of the repro rate for this issue? More testing with and without the patch would be welcome, it'd be good to know whether it is actually the culprit or not.

Quoted 33 lines · Ilia Mirkin

Alexandre, could you take a look? 0xbad* generally comes from bad mmio reads.

Quoted 28 lines · Eric Biggers

Hi,

I am testing Linux v4.2-rc5 and I am sporadically getting crashes shortly after
startup in gk104_fifo_intr_runlist(). What I've found is that the 'mask' value
read from offset 0x2a00 comes back as '0xbad0da00'. This causes the 'engn'
variable to be assigned the value 9, which is invalid; then wake_up() is called
on an uninitialized waitqueue which causes the crash.

Reverting commit 1addc12648521d ("drm/nouveau/fifo/gk104: kick channels when
deactivating them") seemed to make the problem go away, although I can't be 100%
sure because the problem is sporadic.

Attached an example of the kernel log up to the crash.

Eric

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

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

A message that is not in the archive (sent off-list or not yet received): CAAVeFuLkJ9daa=G6EWA+jf4v_cfvBHgqF5hP4L-v139vOubNkA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#5 lore raw

Hi,

I think I've done about 10 reboots with the commit reverted and I never experienced the crash. But with 4.2.0-rc6 I get the crash on about every other reboot.

Probably relevant: the computer on which the crash occurs has two GPUs (one Intel and one Nvidia). The Intel one is actually being used, whereas I presume the Nvidia one is being automatically disabled shortly after boot, perhaps when the crash occurs...

Eric

Quoted 13 lines · Alexandre Courbot

Indeed, and I am actually surprised to see one here. I will double-check that patch.

Eric, would you be able to give an estimate of the repro rate for this issue? More testing with and without the patch would be welcome, it'd be good to know whether it is actually the culprit or not.

Quoted 5 lines · Ilia Mirkin

Alexandre, could you take a look? 0xbad* generally comes from bad mmio reads.

Quoted 1 line · Eric Biggers
Quoted 31 lines
Quoted 3 lines
Quoted 3 lines

Hi,

I am testing Linux v4.2-rc5 and I am sporadically getting crashes

shortly

Quoted 2 lines
Quoted 2 lines

after
startup in gk104_fifo_intr_runlist(). What I've found is that the

'mask'

Quoted 23 lines
Quoted 22 lines

value
read from offset 0x2a00 comes back as '0xbad0da00'. This causes the 'engn'
variable to be assigned the value 9, which is invalid; then wake_up() is called
on an uninitialized waitqueue which causes the crash.

Reverting commit 1addc12648521d ("drm/nouveau/fifo/gk104: kick channels when
deactivating them") seemed to make the problem go away, although I can't be 100%
sure because the problem is sporadic.

Attached an example of the kernel log up to the crash.

Eric

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

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

A message that is not in the archive (sent off-list or not yet received): CAPWJ_tKisH541xkEU6PV8GdxOOCvByh9FsmV2VtxjcqLwOtTXQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#7 lore raw

Mmm in that case it is probably best to revert that commit for the time being. It was targeting GM20B (and maybe other Maxwells too) so reverting it should not hurt anyone at the moment. I think Ben is on holidays for now, is there anyone else who can send a pull request to Dave Airlie for this? We don't want 4.2 to ship with a crash every other reboot...

Quoted 11 lines · Eric Biggers

Hi,

I think I've done about 10 reboots with the commit reverted and I never experienced the crash. But with 4.2.0-rc6 I get the crash on about every other reboot.

Probably relevant: the computer on which the crash occurs has two GPUs (one Intel and one Nvidia). The Intel one is actually being used, whereas I presume the Nvidia one is being automatically disabled shortly after boot, perhaps when the crash occurs...

Quoted 52 lines

Eric

Quoted 46 lines · Alexandre Courbot

Indeed, and I am actually surprised to see one here. I will double-check that patch.

Eric, would you be able to give an estimate of the repro rate for this issue? More testing with and without the patch would be welcome, it'd be good to know whether it is actually the culprit or not.

Quoted 37 lines · Ilia Mirkin

Alexandre, could you take a look? 0xbad* generally comes from bad mmio reads.

Quoted 32 lines · Eric Biggers

Hi,

I am testing Linux v4.2-rc5 and I am sporadically getting crashes shortly
after
startup in gk104_fifo_intr_runlist(). What I've found is that the 'mask'
value
read from offset 0x2a00 comes back as '0xbad0da00'. This causes the 'engn'
variable to be assigned the value 9, which is invalid; then wake_up() is
called
on an uninitialized waitqueue which causes the crash.

Reverting commit 1addc12648521d ("drm/nouveau/fifo/gk104: kick channels when
deactivating them") seemed to make the problem go away, although I can't
be 100%
sure because the problem is sporadic.

Attached an example of the kernel log up to the crash.

Eric

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

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

A message that is not in the archive (sent off-list or not yet received): CAAVeFu+FAzvz-W6aoV-wrfG2PQaZ7ms_jnDEmpnCg+47+4E1fA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#9 lore raw

Sending the revert patch to Dave after receiving his green light for this, and will investigate the issue on my side. I should be able to find a gk107 somewhere...

Quoted 7 lines · Alexandre Courbot

Mmm in that case it is probably best to revert that commit for the time being. It was targeting GM20B (and maybe other Maxwells too) so reverting it should not hurt anyone at the moment. I think Ben is on holidays for now, is there anyone else who can send a pull request to Dave Airlie for this? We don't want 4.2 to ship with a crash every other reboot...

Quoted 64 lines
Quoted 63 lines · Eric Biggers

Hi,

I think I've done about 10 reboots with the commit reverted and I never experienced the crash. But with 4.2.0-rc6 I get the crash on about every other reboot.

Probably relevant: the computer on which the crash occurs has two GPUs (one Intel and one Nvidia). The Intel one is actually being used, whereas I presume the Nvidia one is being automatically disabled shortly after boot, perhaps when the crash occurs...

Eric

Quoted 46 lines · Alexandre Courbot

Indeed, and I am actually surprised to see one here. I will double-check that patch.

Eric, would you be able to give an estimate of the repro rate for this issue? More testing with and without the patch would be welcome, it'd be good to know whether it is actually the culprit or not.

Quoted 37 lines · Ilia Mirkin

Alexandre, could you take a look? 0xbad* generally comes from bad mmio reads.

Quoted 32 lines · Eric Biggers

Hi,

I am testing Linux v4.2-rc5 and I am sporadically getting crashes shortly
after
startup in gk104_fifo_intr_runlist(). What I've found is that the 'mask'
value
read from offset 0x2a00 comes back as '0xbad0da00'. This causes the 'engn'
variable to be assigned the value 9, which is invalid; then wake_up() is
called
on an uninitialized waitqueue which causes the crash.

Reverting commit 1addc12648521d ("drm/nouveau/fifo/gk104: kick channels when
deactivating them") seemed to make the problem go away, although I can't
be 100%
sure because the problem is sporadic.

Attached an example of the kernel log up to the crash.

Eric

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

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

A message that is not in the archive (sent off-list or not yet received): CAAVeFuL5SYMcVc9gH9-OdCuGcKOeWwDUAhLzHKCiMbVPU6rB8Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#11 lore raw

I'm guessing that optimus is the operative difference, not the specific chip. Basically something that can be put to sleep via ACPI...

Quoted 4 lines · Alexandre Courbot

Sending the revert patch to Dave after receiving his green light for this, and will investigate the issue on my side. I should be able to find a gk107 somewhere...

Quoted 72 lines
Quoted 71 lines · Alexandre Courbot

Mmm in that case it is probably best to revert that commit for the time being. It was targeting GM20B (and maybe other Maxwells too) so reverting it should not hurt anyone at the moment. I think Ben is on holidays for now, is there anyone else who can send a pull request to Dave Airlie for this? We don't want 4.2 to ship with a crash every other reboot...

Quoted 63 lines · Eric Biggers

Hi,

I think I've done about 10 reboots with the commit reverted and I never experienced the crash. But with 4.2.0-rc6 I get the crash on about every other reboot.

Probably relevant: the computer on which the crash occurs has two GPUs (one Intel and one Nvidia). The Intel one is actually being used, whereas I presume the Nvidia one is being automatically disabled shortly after boot, perhaps when the crash occurs...

Eric

Quoted 46 lines · Alexandre Courbot

Indeed, and I am actually surprised to see one here. I will double-check that patch.

Eric, would you be able to give an estimate of the repro rate for this issue? More testing with and without the patch would be welcome, it'd be good to know whether it is actually the culprit or not.

Quoted 37 lines · Ilia Mirkin

Alexandre, could you take a look? 0xbad* generally comes from bad mmio reads.

Quoted 32 lines · Eric Biggers

Hi,

I am testing Linux v4.2-rc5 and I am sporadically getting crashes shortly
after
startup in gk104_fifo_intr_runlist(). What I've found is that the 'mask'
value
read from offset 0x2a00 comes back as '0xbad0da00'. This causes the 'engn'
variable to be assigned the value 9, which is invalid; then wake_up() is
called
on an uninitialized waitqueue which causes the crash.

Reverting commit 1addc12648521d ("drm/nouveau/fifo/gk104: kick channels when
deactivating them") seemed to make the problem go away, although I can't
be 100%
sure because the problem is sporadic.

Attached an example of the kernel log up to the crash.

Eric

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

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

A message that is not in the archive (sent off-list or not yet received): CAKb7UvibPn5gdFzqZ=+SCS1hyQJAqfxLZtYEMu6Sw6uofW4AtQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#13 lore raw

Right, that 0xbad0da00 is indicative of something being offline that should not be at that time. I have sent the revert patch. Thanks Eric for reporting this!

Quoted 4 lines · Ilia Mirkin

I'm guessing that optimus is the operative difference, not the specific chip. Basically something that can be put to sleep via ACPI...

Quoted 77 lines
Quoted 76 lines · Alexandre Courbot

Sending the revert patch to Dave after receiving his green light for this, and will investigate the issue on my side. I should be able to find a gk107 somewhere...

Quoted 71 lines · Alexandre Courbot

Mmm in that case it is probably best to revert that commit for the time being. It was targeting GM20B (and maybe other Maxwells too) so reverting it should not hurt anyone at the moment. I think Ben is on holidays for now, is there anyone else who can send a pull request to Dave Airlie for this? We don't want 4.2 to ship with a crash every other reboot...

Quoted 63 lines · Eric Biggers

Hi,

I think I've done about 10 reboots with the commit reverted and I never experienced the crash. But with 4.2.0-rc6 I get the crash on about every other reboot.

Probably relevant: the computer on which the crash occurs has two GPUs (one Intel and one Nvidia). The Intel one is actually being used, whereas I presume the Nvidia one is being automatically disabled shortly after boot, perhaps when the crash occurs...

Eric

Quoted 46 lines · Alexandre Courbot

Indeed, and I am actually surprised to see one here. I will double-check that patch.

Eric, would you be able to give an estimate of the repro rate for this issue? More testing with and without the patch would be welcome, it'd be good to know whether it is actually the culprit or not.

Quoted 37 lines · Ilia Mirkin

Alexandre, could you take a look? 0xbad* generally comes from bad mmio reads.

Quoted 32 lines · Eric Biggers

Hi,

I am testing Linux v4.2-rc5 and I am sporadically getting crashes shortly
after
startup in gk104_fifo_intr_runlist(). What I've found is that the 'mask'
value
read from offset 0x2a00 comes back as '0xbad0da00'. This causes the 'engn'
variable to be assigned the value 9, which is invalid; then wake_up() is
called
on an uninitialized waitqueue which causes the crash.

Reverting commit 1addc12648521d ("drm/nouveau/fifo/gk104: kick channels when
deactivating them") seemed to make the problem go away, although I can't
be 100%
sure because the problem is sporadic.

Attached an example of the kernel log up to the crash.

Eric

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

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