From owner-freebsd-stable Mon Feb 19 1:37: 4 2001 Delivered-To: freebsd-stable@freebsd.org Received: from mailgate.abacus.co.uk (mailgate.abacus.co.uk [194.130.48.21]) by hub.freebsd.org (Postfix) with ESMTP id C861437B4EC; Mon, 19 Feb 2001 01:36:56 -0800 (PST) Received: from abacus.co.uk (pcantony.bl.abacus.co.uk [194.130.48.111]) by mailgate.abacus.co.uk (8.9.3/8.9.3) with ESMTP id JAA30081; Mon, 19 Feb 2001 09:35:23 GMT Message-ID: <3A90E936.BD86EA65@abacus.co.uk> Date: Mon, 19 Feb 2001 09:36:54 +0000 From: Antony T Curtis Organization: Abacus Polar PLC (UK) X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.1.1-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: Andreas Klemm Cc: freebsd-stable@FreeBSD.ORG Subject: Re: stray irq's 7, printing hangs, about 20000-50000 irqs per second ... References: <20010217185425.A450@titan.klemm.gtn.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Andreas Klemm wrote: > > Somethings wrong with the parallel printing device. > > All print jobs hang no matter if I'm using polled or IRQ driven > mode (using lptcontrol). > > With a FreeBSD of today I get stray IRQ's 7 and when looking at the > IRQs I notice 20000-50000 (!!!) per second on a print job ... Having that volume of IRQs for the printer port is normal for standard mode printer port. There is one IRQ signal for each and every byte sent. You may want to investigate changing the default mode of the printer port driver by playing with the flags for the printer port device ( see `man ppc' ) ECP mode should give the best performance by using a DMA channel to transfer data and only issuing an IRQ at the end of DMA. Should yield up to 2MB/s. However, I always seem to get occasional bytes going missing when printing to a Panasonic laser printer. Otherwise, one can opt for EPP or PS/2 mode, which should enable the small FIFO available in most printer ports - this should slash the number of IRQs. -- ANTONY T CURTIS Tel: +44 (1635) 36222 Abacus Polar Holdings Ltd Fax: +44 (1635) 38670 > The trouble with superheros is what to do between phone booths. >  -- Ken Kesey To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message