From owner-freebsd-current@FreeBSD.ORG Fri Jul 16 18:05:43 2004 Return-Path: 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 EA1D616A4CE for ; Fri, 16 Jul 2004 18:05:43 +0000 (GMT) Received: from afields.ca (afields.ca [216.194.67.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB23343D3F for ; Fri, 16 Jul 2004 18:05:43 +0000 (GMT) (envelope-from afields@afields.ca) Received: from afields.ca (localhost.afields.ca [127.0.0.1]) by afields.ca (8.12.11/8.12.11) with ESMTP id i6GI5fRe020593; Fri, 16 Jul 2004 14:05:41 -0400 (EDT) (envelope-from afields@afields.ca) Received: (from afields@localhost) by afields.ca (8.12.11/8.12.11/Submit) id i6GI5eqQ020592; Fri, 16 Jul 2004 14:05:40 -0400 (EDT) (envelope-from afields) Date: Fri, 16 Jul 2004 14:05:39 -0400 From: Allan Fields To: Andrew Gordon Message-ID: <20040716180539.GE12833@afields.ca> References: <2A1A414BD992B32464CA6FF3@palle.girgensohn.se> <1089914418.54518.7.camel@pcgem.rdg.cyberkinetica.com> <20040716003328.GB12833@afields.ca> <042E9B710BB3EA9CFBC625DE@palle.girgensohn.se> <20040716114743.B46679@server.arg.sj.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040716114743.B46679@server.arg.sj.co.uk> User-Agent: Mutt/1.4i cc: current@freebsd.org cc: Palle Girgensohn Subject: Re: parallel port *slow* (and plip probs.) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jul 2004 18:05:44 -0000 On Fri, Jul 16, 2004 at 11:59:39AM +0100, Andrew Gordon wrote: > On Fri, 16 Jul 2004, Palle Girgensohn wrote: > > > > --On torsdag, juli 15, 2004 20.33.28 -0400 Allan Fields > > wrote: > > > > > On Thu, Jul 15, 2004 at 11:36:30PM +0100, Antony T Curtis wrote: > > >> On Thu, 2004-07-15 at 22:07, Palle Girgensohn wrote: > > >> > Only, the flags don't work, nothing seems to happen? > > > > > > Did you set to ECP mode in your BIOS? > > > > ECP+EPP > > Should be fine > > However, the key thing in that line is the "drq 3" - ECP mode will not > work without a drq setting (and IIRC you just get left in SPP mode without > any diagnostics). The hints listed above don't appear to include one. > > > > I've had ECP working in 5.1 & 5.2 using device.hints as I've been > > > misusing a machine as PLIP router to provide old laptop w/ network > > > since PCMCIA interface isn't working w/ installed kernel. > > I'm fairly sure this is irrelevant, since PLIP just does bit-bashing in > the port registers that control the pins directly and doesn't use any of > the parallel port modes. > > So, your port probably isn't really working in ECP mode but you don't care > for that application. Yup, you're right, and performance isn't any better either way. At the time I enabled it, I thought it would help, but doesn't. plip really eats up the resources (explained in code or man page why.) So while useful for short term use absent any other setup, it bogs a machine down significantly -- with interrupt activity and sets splhigh() > [Disclaimer: I've not really used parallel ports since 4.x, but I don't > think anything of significance has changed. Certainly 'ECP must use > ISA DMA' is a fundamental feature of the hardware]. Yes: EPP requires IRQ, while ECP requires both DMA and an IRQ. So unless it uses DMA 3 setting implicitly, I'd follow the logic. - Allan