Skip to contentSkip to conversation

What are the general causes of frozen system?

DISCUSSION Larry Finger 4 participants 6 messages Nov 27, 2005 – Nov 28, 2005 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

I am trying to help the bcm43xx project develop a driver for the Broadcom 43xx wireless chips, using my Linksys WPC54G card. Unfortunately, since the group got far enough to turn on RX DMA, my system has frozen whenever I load the driver. TX DMA was OK. It seems to correlate with the receipt of a beacon from my AP, but that cannot be proven. When the freeze happens, I cannot do anything more and have to power the system off.

What should I consider as a cause of the freeze? I have reviewed the code and do not find any obvious out-of-bounds memory references. I have tried various 'printk' statements, but none of them in the bottom-half interrupt routine make it to the logs. Are there any tricks that I should try?

Thanks,

Larry

#1 lore raw
Quoted 5 lines

What should I consider as a cause of the freeze? I have reviewed the code and do not find any obvious out-of-bounds memory references. I have tried various 'printk' statements, but none of them in the bottom-half interrupt routine make it to the logs. Are there any tricks that I should try?

Look for lock-related deadlocks. Try turning on the nmi watchdog

#2 lore raw
Quoted 5 lines · [email protected] wrote:
Quoted 1 line

What should I consider as a cause of the freeze? I have reviewed the code and do not find any obvious out-of-bounds memory references. I have tried various 'printk' statements, but none of them in the bottom-half interrupt routine make it to the logs. Are there any tricks that I should try?

Look for lock-related deadlocks. Try turning on the nmi watchdog

Thanks for the quick response. Unfortunately, adding either nmi_watchdog=1 or 2 makes my machine lockup in booting - just after ACPI is initialized.

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 9 lines · [email protected] wrote:
Quoted 3 lines · Larry Finger
Quoted 1 line

Look for lock-related deadlocks. Try turning on the nmi watchdog

Thanks for the quick response. Unfortunately, adding either nmi_watchdog=1 or 2 makes my machine lockup in booting - just after ACPI is initialized.

Try with acpi=off, too?

It turned out that an 'lacpi' was causing the boot lockup. I tried all combinations of acpi on/off and nmi_watchdog 1/2 without any success. The NMI count in /proc/interrupts remains stuck at 0.

#5 lore raw
In reply to Larry Finger
Quoted 8 lines · you

I am trying to help the bcm43xx project develop a driver for the Broadcom 43xx wireless chips, using my Linksys WPC54G card. Unfortunately, since the group got far enough to turn on RX DMA, my system has frozen whenever I load the driver. TX DMA was OK. It seems to correlate with the receipt of a beacon from my AP, but that cannot be proven. When the freeze happens, I cannot do anything more and have to power the system off.

Quoted 5 lines

What should I consider as a cause of the freeze? I have reviewed the code and do not find any obvious out-of-bounds memory references. I have tried various 'printk' statements, but none of them in the bottom-half interrupt routine make it to the logs. Are there any tricks that I should try?

Enable most of the "Kernel Hacking" Debugging options, like Memory and spinlock debugging. This will often catch memory corruptions or deadlocks.

I'm not sure where the freeze happens, from your explanations. Does it freeze before or after the DMA operations? I am sure we find the reason, if you talk to us about the problem on IRC or the bcm43xx mailing list.

Signature · 1 line
Greetings Michael.
#6 lore raw
In reply to Larry Finger
Quoted 8 lines · Larry Finger

I am trying to help the bcm43xx project develop a driver for the Broadcom 43xx wireless chips, using my Linksys WPC54G card. Unfortunately, since the group got far enough to turn on RX DMA, my system has frozen whenever I load the driver. TX DMA was OK. It seems to correlate with the receipt of a beacon from my AP, but that cannot be proven. When the freeze happens, I cannot do anything more and have to power the system off.

Quoted 5 lines

What should I consider as a cause of the freeze? I have reviewed the code and do not find any obvious out-of-bounds memory references. I have tried various 'printk' statements, but none of them in the bottom-half interrupt routine make it to the logs. Are there any tricks that I should try?

spinlock debugging is one... if it's a bad DMA to low memory, you can't do much. Another common cause is a stale interrupt, is your IRQ handler called over & over again in a loop ?

The problem is that depending on what you are interrupting, printk may not work ...

Ben.