movidis x16 hard lockup using 2.6.33
Hi,
Thanks to Jan Rovins and David Daney we linux 2.6.33 working fine with 1 additional patch for the ethernet NICs. We are using this machine as a buildd. Unfortunately we found out that building gcc 4.5 using all available 16 cores causes the machine to lock up after about 6 hours of building. There is no output on the serial console indicating a kernel panic or some malfunction. The machine is hosted in some data center so physical access is difficult.
Any insight welcome !
Thanks,
Peter.
Quoted 9 lines · On 03/26/2010 11:41 AM, Peter 'p2' De Schrijver wrote:
Hi,
Thanks to Jan Rovins and David Daney we linux 2.6.33 working fine with 1 additional patch for the ethernet NICs. We are using this machine as a buildd. Unfortunately we found out that building gcc 4.5 using all available 16 cores causes the machine to lock up after about 6 hours of building. There is no output on the serial console indicating a kernel panic or some malfunction. The machine is hosted in some data center so physical access is difficult.
Quoted 4 lines
Any insight welcome !
Thanks,
What is the output of:
cat /proc/cpuinfo | grep 'system type'
Also you could try running with the attached patch. It is not the best watchdog, but it will print the register state for each core when things get stuck. Occasionally that is enough to see where the problem is.
David Daney
MIPS: Watchdog driver for Cavium OCTEON CPU.
This is a new driver for the OCTEON's on-chip watchdog hardware.
--- arch/mips/cavium-octeon/Kconfig | 10 ++ arch/mips/cavium-octeon/Makefile | 1 + arch/mips/cavium-octeon/watchdog.c | 255 ++++++++++++++++++++++++++++++++ arch/mips/cavium-octeon/watchdog_nmi.S | 96 ++++++++++++ 4 files changed, 362 insertions(+), 0 deletions(-)
arch/mips/cavium-octeon/Kconfig +10 -0
@@ -83,3 +83,13 @@ config ARCH_SPARSEMEM_ENABLE def_bool y select SPARSEMEM_STATIC depends on CPU_CAVIUM_OCTEON + +config CAVIUM_OCTEON_WATCHDOG + tristate "Octeon watchdog driver" + default y + help + This option enables a watchdog driver for all cores running Linux. It + installs a NMI handler and pokes the watchdog based on an interrupt. + On first expiration of the watchdog, the interrupt handler pokes it. + The second expiration causes an NMI that prints a message and resets + the chip. The third expiration causes a global soft reset.
arch/mips/cavium-octeon/Makefile +1 -0
@@ -14,5 +14,6 @@ obj-y += dma-octeon.o flash_setup.o obj-y += octeon-memcpy.o obj-$(CONFIG_SMP) += smp.o +obj-$(CONFIG_CAVIUM_OCTEON_WATCHDOG) += watchdog.o watchdog_nmi.o EXTRA_CFLAGS += -Werror
arch/mips/cavium-octeon/watchdog.c new file +255 -0
255 lines not on this page · raw message
arch/mips/cavium-octeon/watchdog_nmi.S new file +96 -0
96 lines not on this page · raw message
Hi David,
Quoted 10 lines · On 03/26/2010 11:41 AM, Peter 'p2' De Schrijver wrote:
Quoted 9 lines
Hi,
Thanks to Jan Rovins and David Daney we linux 2.6.33 working fine with 1 additional patch for the ethernet NICs. We are using this machine as a buildd. Unfortunately we found out that building gcc 4.5 using all available 16 cores causes the machine to lock up after about 6 hours of building. There is no output on the serial console indicating a kernel panic or some malfunction. The machine is hosted in some data center so physical access is difficult.
Quoted 10 lines
Quoted 4 lines
Any insight welcome !
Thanks,
What is the output of:
cat
/proc/cpuinfo| grep 'system type'
p2@corelli:/home/buildd$ cat /proc/cpuinfo | grep 'system type' system type : CUST_WSX16 (CN3860p3.X-500-EXP)
Quoted 4 lines
Also you could try running with the attached patch. It is not the best watchdog, but it will print the register state for each core when things get stuck. Occasionally that is enough to see where the problem is.
Ok. I will try that.
Thanks,
Peter.
Quoted 3 lines · * David Daney ([email protected]) [100326 19:57]:
Also you could try running with the attached patch. It is not the best watchdog, but it will print the register state for each core when things get stuck. Occasionally that is enough to see where the problem is.
Thanks.
As our logging has only limited buffer size, I'd be happy about an variant of the patch which doesn't reboot but just let the machine hang after the third occurence.
Any chances for it?
Andi
Quoted 5 lines · Andreas Barth
Quoted 3 lines · * David Daney ([email protected]) [100326 19:57]:
Also you could try running with the attached patch. It is not the best watchdog, but it will print the register state for each core when things get stuck. Occasionally that is enough to see where the problem is.
Quoted 8 lines
Thanks.
As our logging has only limited buffer size, I'd be happy about an variant of the patch which doesn't reboot but just let the machine hang after the third occurence.
Any chances for it?
You could just sit in a loop kicking the watchdog timer after you get to the NMI handler. That should prevent a reset, but still print the machine state.
David Daney
Quoted 12 lines · * David Daney ([email protected]) [100329 18:54]:
Quoted 11 lines · Andreas Barth
Quoted 3 lines · * David Daney ([email protected]) [100326 19:57]:
Also you could try running with the attached patch. It is not the best watchdog, but it will print the register state for each core when things get stuck. Occasionally that is enough to see where the problem is.
Thanks.
As our logging has only limited buffer size, I'd be happy about an variant of the patch which doesn't reboot but just let the machine hang after the third occurence.
Quoted 5 lines
Quoted 1 line
Any chances for it?
You could just sit in a loop kicking the watchdog timer after you get to the NMI handler. That should prevent a reset, but still print the machine state.
I need to admit that I'm totally unable to make code from that statement.
Could you (or someone else) give me a hand? Also please note that it usually takes a few hours to crash the machine, and I didn't see anything in the normal syslog.
Andi
Quoted 19 lines · Andreas Barth
Quoted 12 lines · * David Daney ([email protected]) [100329 18:54]:
Quoted 11 lines · Andreas Barth
Quoted 3 lines · * David Daney ([email protected]) [100326 19:57]:
Also you could try running with the attached patch. It is not the best watchdog, but it will print the register state for each core when things get stuck. Occasionally that is enough to see where the problem is.
Thanks.
As our logging has only limited buffer size, I'd be happy about an variant of the patch which doesn't reboot but just let the machine hang after the third occurence.
Quoted 5 lines
Quoted 1 line
Any chances for it?
You could just sit in a loop kicking the watchdog timer after you get to the NMI handler. That should prevent a reset, but still print the machine state.
Quoted 7 lines
I need to admit that I'm totally unable to make code from that statement.
Could you (or someone else) give me a hand? Also please note that it usually takes a few hours to crash the machine, and I didn't see anything in the normal syslog.
At the end of octeon_watchdog_nmi_stage3, instead of returning, do:
for(;;) watchdog_poke_irq(0, NULL);
That should prevent it from rebooting. The messages will appear on the serial port, not in syslog.
David Daney
Quoted 6 lines · * David Daney ([email protected]) [100330 00:14]:
At the end of
octeon_watchdog_nmi_stage3, instead of returning, do:for(;;)
watchdog_poke_irq(0, NULL);That should prevent it from rebooting. The messages will appear on the serial port, not in syslog.
Thanks, trying that now.
Andi
Quoted 1 line · * David Daney ([email protected]) [100329 18:54]:
[...]
I need to admit I'm sorry but I can't read enough from the log file. Serial console output is http://alius.ayous.org/~aba/screenlog.0
This kernel is with the NMI-handler but without the "don't reboot" patch:
Linux version 2.6.34-rc2-dsa-octeon (aba@gabrielli) (gcc version 4.4.3 (Debian 4.4.3-3) ) #5 SMP Sat Mar 27 10:16:03 UTC 2010
and this one has NMI-handler plus the small loop:
Linux version 2.6.34-rc2-dsa-octeon (aba@gabrielli) (gcc version 4.4.3 (Debian 4.4.3-3) ) #6 SMP Mon Mar 29 22:23:26 UTC 2010
Unfortunatly it looks like we get neither the information nor don't reboot, but adding the NMU handler changed behaviour from "machine freezes" to "machine reboots".
Thanks for helping us so much.
Andi
Hi,
Quoted 11 lines · * David Daney ([email protected]) [100329 18:54]:
Quoted 1 line
[...]
I need to admit I'm sorry but I can't read enough from the log file. Serial console output is http://alius.ayous.org/~aba/screenlog.0
This kernel is with the NMI-handler but without the "don't reboot" patch:
Linux version 2.6.34-rc2-dsa-octeon (aba@gabrielli) (gcc version 4.4.3 (Debian 4.4.3-3) ) #5 SMP Sat Mar 27 10:16:03 UTC 2010
Quoted 9 lines
and this one has NMI-handler plus the small loop:
Linux version 2.6.34-rc2-dsa-octeon (aba@gabrielli) (gcc version 4.4.3 (Debian 4.4.3-3) ) #6 SMP Mon Mar 29 22:23:26 UTC 2010Unfortunatly it looks like we get neither the information nor don't reboot, but adding the NMU handler changed behaviour from "machine freezes" to "machine reboots".
http://zobel.ftbfs.de/.x/lucatelli-nmi-watchdog-output.txt
Dump of one of those hangs. Most cores seem to be stuck in wait (0xffffffff81100b80), except for core 1 which is in octeon_irq_ciu0_ack (octeon_irq_ciu0_ack).
Any insight welcome.
Thanks,
Peter.
irqbalance on movidis crashes the machine (was: movidis x16 hard lockup using 2.6.33)
Quoted 4 lines · * Peter 'p2' De Schrijver ([email protected]) [100403 17:43]:
http://zobel.ftbfs.de/.x/lucatelli-nmi-watchdog-output.txt
Dump of one of those hangs. Most cores seem to be stuck in wait (0xffffffff81100b80), except for core 1 which is inocteon_irq_ciu0_ack(octeon_irq_ciu0_ack).
On further investigation we found out that this happens when irqbalance is started. The version of irqbalance being run is 0.55.
We removed this program from the affected machine, but of course this still should be fixed (and we still get a few reboots on another machine without irqbalance).
Andi
Re: irqbalance on movidis crashes the machine (was: movidis x16 hard lockup using 2.6.33)
Quoted 6 lines · * Andreas Barth ([email protected]) [100415 20:43]:
Quoted 4 lines · * Peter 'p2' De Schrijver ([email protected]) [100403 17:43]:
http://zobel.ftbfs.de/.x/lucatelli-nmi-watchdog-output.txt
Dump of one of those hangs. Most cores seem to be stuck in wait (0xffffffff81100b80), except for core 1 which is inocteon_irq_ciu0_ack(octeon_irq_ciu0_ack).
Quoted 6 lines
On further investigation we found out that this happens when irqbalance is started. The version of irqbalance being run is 0.55.
We removed this program from the affected machine, but of course this still should be fixed (and we still get a few reboots on another machine without irqbalance).
Clarification:
Running irqbalance itself doesn't crash the machine, but increases the probability of crashes dramatically. Usually the next few (< 10) commands crash the machine.
The crashs however look similar to the ones we have without irqbalance
- just way less often then with irqbalance. This seems like irqbalance exposes the crash way better than we do without.
Andi
Re: irqbalance on movidis crashes the machine (was: movidis x16 hard lockup using 2.6.33)
Quoted 16 lines · * Andreas Barth ([email protected]) [100415 22:35]:
Quoted 6 lines · * Andreas Barth ([email protected]) [100415 20:43]:
Quoted 4 lines · * Peter 'p2' De Schrijver ([email protected]) [100403 17:43]:
http://zobel.ftbfs.de/.x/lucatelli-nmi-watchdog-output.txt
Dump of one of those hangs. Most cores seem to be stuck in wait (0xffffffff81100b80), except for core 1 which is inocteon_irq_ciu0_ack(octeon_irq_ciu0_ack).Quoted 6 lines
On further investigation we found out that this happens when irqbalance is started. The version of irqbalance being run is 0.55.
We removed this program from the affected machine, but of course this still should be fixed (and we still get a few reboots on another machine without irqbalance).
Clarification:
Quoted 7 lines
Running irqbalance itself doesn't crash the machine, but increases the probability of crashes dramatically. Usually the next few (< 10) commands crash the machine.
The crashs however look similar to the ones we have without irqbalance
- just way less often then with irqbalance. This seems like irqbalance exposes the crash way better than we do without.
Any ideas what we could do to reduce the number of crashes we experience?
Andi