* What are the general causes of frozen system?
@ 2005-11-27 2:44 Larry Finger
2005-11-27 2:52 ` thockin
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Larry Finger @ 2005-11-27 2:44 UTC (permalink / raw)
To: linux-kernel
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: What are the general causes of frozen system?
2005-11-27 2:44 What are the general causes of frozen system? Larry Finger
@ 2005-11-27 2:52 ` thockin
2005-11-27 3:05 ` Larry Finger
2005-11-27 10:59 ` Michael Buesch
2005-11-27 21:11 ` Benjamin Herrenschmidt
2 siblings, 1 reply; 6+ messages in thread
From: thockin @ 2005-11-27 2:52 UTC (permalink / raw)
To: Larry Finger; +Cc: linux-kernel
> 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: What are the general causes of frozen system?
2005-11-27 2:52 ` thockin
@ 2005-11-27 3:05 ` Larry Finger
[not found] ` <20051127031115.GA31651@hockin.org>
0 siblings, 1 reply; 6+ messages in thread
From: Larry Finger @ 2005-11-27 3:05 UTC (permalink / raw)
To: thockin; +Cc: linux-kernel
thockin@hockin.org wrote:
>>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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: What are the general causes of frozen system?
2005-11-27 2:44 What are the general causes of frozen system? Larry Finger
2005-11-27 2:52 ` thockin
@ 2005-11-27 10:59 ` Michael Buesch
2005-11-27 21:11 ` Benjamin Herrenschmidt
2 siblings, 0 replies; 6+ messages in thread
From: Michael Buesch @ 2005-11-27 10:59 UTC (permalink / raw)
To: Larry Finger, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1216 bytes --]
On Sunday 27 November 2005 03:44, you wrote:
> 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?
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.
--
Greetings Michael.
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: What are the general causes of frozen system?
2005-11-27 2:44 What are the general causes of frozen system? Larry Finger
2005-11-27 2:52 ` thockin
2005-11-27 10:59 ` Michael Buesch
@ 2005-11-27 21:11 ` Benjamin Herrenschmidt
2 siblings, 0 replies; 6+ messages in thread
From: Benjamin Herrenschmidt @ 2005-11-27 21:11 UTC (permalink / raw)
To: Larry Finger; +Cc: linux-kernel
On Sat, 2005-11-26 at 20:44 -0600, Larry Finger wrote:
> 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?
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: What are the general causes of frozen system?
[not found] ` <20051127031115.GA31651@hockin.org>
@ 2005-11-28 5:01 ` Larry Finger
0 siblings, 0 replies; 6+ messages in thread
From: Larry Finger @ 2005-11-28 5:01 UTC (permalink / raw)
To: thockin; +Cc: linux-kernel
thockin@hockin.org wrote:
> On Sat, Nov 26, 2005 at 09:05:37PM -0600, Larry Finger wrote:
>
>>>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.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-11-28 5:01 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-27 2:44 What are the general causes of frozen system? Larry Finger
2005-11-27 2:52 ` thockin
2005-11-27 3:05 ` Larry Finger
[not found] ` <20051127031115.GA31651@hockin.org>
2005-11-28 5:01 ` Larry Finger
2005-11-27 10:59 ` Michael Buesch
2005-11-27 21:11 ` Benjamin Herrenschmidt
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.