From owner-freebsd-mobile Sat Jan 15 11:35:56 2000 Delivered-To: freebsd-mobile@freebsd.org Received: from afs.itc.keio.ac.jp (afs.itc.keio.ac.jp [131.113.212.3]) by hub.freebsd.org (Postfix) with SMTP id 132B914BC5 for ; Sat, 15 Jan 2000 11:35:54 -0800 (PST) (envelope-from hosokawa@itc.keio.ac.jp) Received: (qmail 16018 invoked from network); 15 Jan 2000 19:35:52 -0000 Received: from ppp170.dialup.st.keio.ac.jp (HELO ringo.FromTo.Cc) (131.113.27.170) by afs.itc.keio.ac.jp with SMTP; 15 Jan 2000 19:35:52 -0000 Date: Sun, 16 Jan 2000 04:37:03 +0900 Message-ID: <86901rt9cw.wl@ringo.FromTo.Cc> From: Tatsumi Hosokawa To: imp@village.org Cc: hosokawa@itc.keio.ac.jp, mobile@FreeBSD.ORG Subject: Re: Polling mode of pcic as default? In-Reply-To: In your message of "Sat, 15 Jan 2000 11:21:58 -0700" <200001151821.LAA42322@harmony.village.org> References: <86oganhgj8.wl@ringo.FromTo.Cc> <200001151821.LAA42322@harmony.village.org> User-Agent: Wanderlust/2.2.13 (Keep The Faith) SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui) MULE XEmacs/21.1 (patch 8) (Bryce Canyon) (i386--freebsd) MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu") Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org At Sat, 15 Jan 2000 11:21:58 -0700, Warner Losh wrote: > I think that so long as I can set the pcic irq from the boot > loader/userconfig, I'm happy with making polling default. There are > more race conditions with polling (actually, there aren't more, but > their windows are larger), so we may see more system hangs with > polling rather than with the interrupt method, but I don't know how > many more. Removing heavy-loaded Ethernet PC-card or removing unmounted storage card (almost always) causes system crash regardless of IRQ/polling method. (Of course, I admit that polling mode is more dangerous than IRQ mode) To avoid race condition, users have to execute "pccard power slotnum 0" before s/he remove a card from a slot like Microsoft Windows. To make it easier, wrapper script or X interface (like xpccard in PAO) will be useful, and to solve this problem essentially, I think that it needs more and more hacks in device management system. Okay, default mode of PCIC is IRQ mode in coming 4.0-RELEASE, but polling mode works as well. -- --------------------------- Tatsumi Hosokawa hosokawa@itc.keio.ac.jp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message