From owner-freebsd-current@FreeBSD.ORG Thu Jul 15 21:07:12 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 DF20516A4CE for ; Thu, 15 Jul 2004 21:07:12 +0000 (GMT) Received: from palle.girgensohn.se (1-2-8-5a.asp.sth.bostream.se [82.182.157.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A7D943D39 for ; Thu, 15 Jul 2004 21:07:12 +0000 (GMT) (envelope-from girgen@pingpong.net) Received: from localhost.girgensohn.se (localhost.girgensohn.se [127.0.0.1]) by palle.girgensohn.se (Postfix) with ESMTP id AB7AB1CD1F; Thu, 15 Jul 2004 23:07:11 +0200 (CEST) Date: Thu, 15 Jul 2004 23:07:11 +0200 From: Palle Girgensohn To: Antony T Curtis Message-ID: In-Reply-To: <1089914418.54518.7.camel@pcgem.rdg.cyberkinetica.com> References: <2A1A414BD992B32464CA6FF3@palle.girgensohn.se> <1089914418.54518.7.camel@pcgem.rdg.cyberkinetica.com> X-Mailer: Mulberry/3.1.3 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline cc: current@freebsd.org Subject: Re: parallel port *slow* 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: Thu, 15 Jul 2004 21:07:13 -0000 Only, the flags don't work, nothing seems to happen? $ kenv | grep ppc hint.ppc.0.at="isa" hint.ppc.0.flags="0xc" hint.ppc.0.irq="7" $ dmesg | grep ppc ppc0: at port 0x378-0x37f irq 7 on isa0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/16 bytes threshold ppbus0: on ppc0 --On torsdag, juli 15, 2004 19.00.18 +0100 Antony T Curtis wrote: > On Thu, 2004-07-15 at 16:42, Palle Girgensohn wrote: >> Hi! >> >> >> For a while now my parallel port (with printer hooked up) has been >> *really SLOW*. Takes several minutes to print a single very simple page. >> >> Any idea how to debug or what to try/fix? >> >> All I see in the log is: > > > >> ppc0: at port 0x378-0x37f irq 7 on isa0 >> ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode >> ppc0: FIFO with 16/16/16 bytes threshold > > if you do a "man ppc" there are flags settable on the ppc device. > If you set the flags so that it is in ECP mode, it will be much faster. > Even EPP mode works faster. > > IIRC Compatible mode uses an interrupt for every character. EPP can > handle a burst of characters while ECP uses DMA so can transfer a large > block per interrupt. > > -- > Antony T Curtis >