Date: Fri, 28 Aug 1998 22:48:18 +0000 From: Mike Smith <mike@smith.net.au> To: "Igor Sysoev" <igor@nitek.ru> Cc: "Mike Smith" <mike@smith.net.au>, freebsd-hardware@FreeBSD.ORG Subject: Re: ThinkPad 365X and 3C589D Message-ID: <199808282248.WAA00874@word.smith.net.au> In-Reply-To: Your message of "Fri, 28 Aug 1998 13:34:55 %2B0400." <199808280932.NAA04099@mail.nitek.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
> > > Now I run 'ifconfig ep0 inet ...' then 'ifconfig ep0 delete' then > remove > > > card and system hang up. The single keys that working now is Fn-F7 > (they > > > switch between LCD and external monitor). > > > > If you try alt-ctrl-esc, what happens? It sounds to me as though > > you're in the interrupt routine for the 'ep' driver and spinning > > endlessly. > > I haven't debugger in kernel but when try a-c-e while all this hangups > message "No debugger in kernel" didn't even appear. Ok, that's what I was looking for. You still have SMI interrupts working, but the keyboard interrupt is out. It sounds like you're either locked up in the APM BIOS or in the kernel. > > If you're able to pursue these issues a little further, I'd be > > interested to know if you turn anything up. Needless to say, I use APM > > and plug/remove cards on a regular basis (including a 3c589), so I know > > it's _supposed_ to work. > > Yes, it's seems to me too that problem is mainly in interaction between APM > and > PC Card. So: > 1. ThinkPad hangs when I remove 3C589D while APM enabled (apmconf -e) > 2. If APM disabled ThinkPad doesn't hang up when I remove 3c589D for > the first time. (in case when pccardd doesn't run anything except echo). > 3. ThinkPad hangs up when I try to remove 3C589D for the second time. > 4. ThinkPad doesn't hangs up when I try to remove 3c589D after I'd ran > 'ifconfig ep0 inet ...', 'ifconfig ep0 delete'. > 5. ThinkPad hangs up when I try to remove 3c589D after I'd ran > 'ifconfig ep0 inet ...', ping, 'ifconfig ep0 delete' - after some > network activity. > 6. When I go to suspend mode, kernel unload ep0, return irq, disable slot. > After resume kernel insert card, and load ep0. > 7. Keys that switch CPU to SMM mode works while hang ups. > > I'll to look two modem cards. And I'll try to install PAO. PAO's pccardc > allows to power off card before removing, may be it helps. Ok. One other thing you could do is add a printf at the entry and exit of the epintr() routine in the ep driver, and see whether you end up stuck in there in case 5. I had this problem a while back with NE2000 clone cards, where the removal of the card can cause an interrupt, and once the card is gone, the interrupt bit is permanently set (reading empty port gives 0xff). In that case, we were still getting pcic interrupts, so it was possible to check the gone flag. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hardware" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199808282248.WAA00874>