Date: Wed, 29 Jan 2003 14:14:14 -0800 From: Terry Lambert <tlambert2@mindspring.com> To: Andrea Campi <andrea@webcom.it> Cc: "M. Warner Losh" <imp@bsdimp.com>, Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>, current@FreeBSD.ORG Subject: Re: firewire hangs on Thinkpad Message-ID: <3E385236.29718458@mindspring.com> References: <20030124144823.GA600@webcom.it> <20030125.115501.13766238.imp@bsdimp.com> <20030129114951.GA3635@webcom.it>
next in thread | previous in thread | raw e-mail | index | archive | help
Andrea Campi wrote: > On Sat, Jan 25, 2003 at 11:55:01AM -0700, M. Warner Losh wrote: > > This sounds like it might be an interrupt storm. I'm not sure if the > > fwohci driver is failing to clear an interrupt source, or if the > > cardbus bridge is failing. Have you connected a fw device to the > > firewire card? > > I've been able to run a few more tests, even though I've not done abused > it in every way I have in my mind yet... > > The evidence I currently have is: > - if I load the modules at loader time everything is fine, with or without > a device attached > - if I load the modules later on, the kldload doesn't return and the system > stops responding; I can still enter DDB. The only way to recover from that is > to eject the card; at that point, the system is usable BUT as soon as there > is network activity, the system freezes hard (can't get to DDB). > > IMHO this is 100% an interrupt problem. Does this ring a bell with one of you, > or should I provide more info? I expect that the attach of the device creates an interrupt if the system is already up. This would indicate that it was an order of operations problem in the driver registration for a "live" piece of hardware. Probably, it needs to attach the interrupt handler first, and then handle the result of an active probe as a special case (if it can). This should let you set up the hardware in the right order that you don't start getting interrupts because you've enabled them before establishing a handler. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E385236.29718458>