From owner-freebsd-current Mon Nov 25 3:19:28 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3041A37B401; Mon, 25 Nov 2002 03:19:27 -0800 (PST) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F83343E4A; Mon, 25 Nov 2002 03:19:25 -0800 (PST) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id WAA04507; Mon, 25 Nov 2002 22:19:22 +1100 Date: Mon, 25 Nov 2002 22:32:46 +1100 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Marc Fonvieille Cc: freebsd-current@FreeBSD.ORG Subject: Re: Polled mode with device.hints In-Reply-To: <20021125101719.GA210@nosferatu.blackend.org> Message-ID: <20021125214416.T56549-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 25 Nov 2002, Marc Fonvieille wrote: [polled mode for sio0 and ppc0] > But what about ppc0 ? I have to remove the IRQ line as well? > (sorry I can't test now) I don't know exactly (I rarely use it). > I also noted that lptcontrol(8) "does not" work under 4.X and 5.X. > It seems that since lpt(4) use ppbus(4), it is not possible to use > lptcontrol(8). Well maybe that question does not fit with > freebsd-current mailing list :) "lptcontrol -i" and "lptcontrol -p" work for me under -current. They presumably work because the driver sets up the interrupt for every write(2) if interrupts are enabled. This used to cause panics because a thread was created for every write and it was possible for threads to be created faster than they could exit. But everything except the thread creation and destruction seems to be necessary because the interrupt may be switched fairly dynamically between children of ppc0. I think this means that no one should want to force polled mode at the ppc0 level, and its children should have control programs like lptcontrol that permit configuring it if necessary. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message