Date: Wed, 01 Dec 1999 01:48:33 -0800 From: Mike Smith <msmith@freebsd.org> To: Mike Smith <msmith@freebsd.org> Cc: Warner Losh <imp@freebsd.org>, mobile@freebsd.org Subject: Re: cvs commit: src/sys/pccard pccard.c src/sys/isa sio.c src/sys/dev/ed if_ed_pccard.c src/sys/dev/ep if_ep_pccard.c Message-ID: <199912010948.BAA00516@mass.cdrom.com> In-Reply-To: Your message of "Wed, 01 Dec 1999 01:42:17 PST." <199912010942.BAA00486@mass.cdrom.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> > Fix the hang on card eject problem and maybe the hang on suspend > > problem. > > > > o Create new timeout routine so we don't detach the card inside a ISR > > but instead drop back to spl0 via a timeout of 0. > > This will still fail in most card-device interrupt handlers that don't > spin-limit themselves. If at all possible, there should be a mechanism > for a card-device interrupt handler to query the parent bus to determine > whether the hardware has gone away. (This would allow the handler to bail > out and let the detach code do its stuff if the handler is spinning madly.) I should have clarified this; the query method needs to be active, not reactive, ie. it needs to actually go and look at the hardware rather than rely on cached state, since there may be no way for this state to be updated between the time that the card is removed and the query made (consider eg. a timeout polling the slot status). -- \\ Give a man a fish, and you feed him for a day. \\ Mike Smith \\ Tell him he should learn how to fish himself, \\ msmith@freebsd.org \\ and he'll hate you for a lifetime. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199912010948.BAA00516>
