From owner-freebsd-questions@FreeBSD.ORG Tue May 23 18:35:43 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 764F616A46A for ; Tue, 23 May 2006 18:35:43 +0000 (UTC) (envelope-from chowse@charter.net) Received: from mxsf20.cluster1.charter.net (mxsf20.cluster1.charter.net [209.225.28.220]) by mx1.FreeBSD.org (Postfix) with ESMTP id 64CBD43D49 for ; Tue, 23 May 2006 18:35:42 +0000 (GMT) (envelope-from chowse@charter.net) Received: from mxip32a.cluster1.charter.net (mxip32a.cluster1.charter.net [209.225.28.247]) by mxsf20.cluster1.charter.net (8.12.11/8.12.11) with ESMTP id k4NIZeZD026306 for ; Tue, 23 May 2006 14:35:41 -0400 Received: from 24-176-104-160.dhcp.jcsn.tn.charter.com (HELO [192.168.254.3]) ([24.176.104.160]) by mxip32a.cluster1.charter.net with ESMTP; 23 May 2006 14:35:40 -0400 In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v750) X-Priority: 3 (Normal) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <40E37917-77ED-423A-B606-4AC9062BCD23@charter.net> Content-Transfer-Encoding: 7bit From: Charles Howse Date: Tue, 23 May 2006 11:15:23 -0500 To: FreeBSD Questions X-Mailer: Apple Mail (2.750) Subject: Re: Best Practices - interrupt storm X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 May 2006 18:35:47 -0000 Thanks very much, I'll also make a note to check the FAQ before posting. On May 23, 2006, at 10:45 AM, fbsd wrote: > Stray irq 7 messages > The FBSD FAQ entry says > > 5.24. What does ``stray IRQ'' mean? > > Stray IRQs are indications of hardware IRQ glitches, mostly from > hardware that removes its interrupt request in the middle of the > interrupt request acknowledge cycle. > > One has three options for dealing with this: > > 1. Live with the warnings. All except the first 5 per IRQ are > suppressed anyway. > > 2. Break the warnings by changing 5 to 0 in isa_strayintr() so that > all the warnings are suppressed. > > 3. Break the warnings by installing parallel port hardware that uses > IRQ 7 and the PPP driver for it (this happens on most systems), and > install an IDE drive or other hardware that uses IRQ 15 and a > suitable driver for it. > > ********** End of FAQ # 5.24 ********************************* > > The number 3 item above is false, the ATA IDE standard is the > primary IDE channel master and slave devices use IRQ 14 and the > secondary IDE channel master and slave devices use IRQ 15. IRQ 15 is > also used by many NIC cards. A printer attached to the parallel port > uses IRQ 7, and the annoying bogus stray IRQ 7 messages still gets > issued. So you are left with two options, learn to deal with it, or > hack the code to make it go away. > > To stop the annoying bogus stray IRQ 7 messages you can hack the > source where these messages originate from and change the counter > value 5 to 0 so the messages will no longer be issued. > > isa_strayintr lives in /usr/src/sys/i386/isa/intr_machdep.c > > cd /usr/src/sys/i386/i386/ > > cp intr_machdep.c intr_machdep.c.org # make backup of original > > ee intr_machdep.c > > > > Find isa_strayintr to locate the start of the stray IRQ 7 logic > > change this > > if (intrcnt[1 + intr] <= 5) > > To this > > if (intrcnt[1 + intr] <= 0) > > Recompile your kernel source and those stray IRQ 7 messages are > gone. Document this some place for yourself just in case you > reinstall from CDROM. Remember that if you cvsup update your source > to upgrade to next stable release, your 'stray IRQ 7 hack' will be > stepped on and return back to the official FBSD version. You will > have to reapply this hack. > > > > > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Charles > Howse > Sent: Tuesday, May 23, 2006 10:14 AM > To: FreeBSD Questions > Subject: Best Practices - interrupt storm > > > Hi, > FreeBSD 6.1-RELEASE, cups-1.1.23.0_1, HP 1100 LaserJet > > I've found quite a bit of information about how to deal with: > "Interrupt storm detected in "irq7:"; throttling interrupt source" > > Problem is, it's a little confusing. > From what I've gathered, the options are: > Use the BIOS to set the printer port to ECP, > Use lptcontrol to set the port to polled mode, > Use device.hints to do both > > IIRC, in the past, I have used lptcontrol to set polled mode, but > that resulted in: > "too many stray irq7's, not logging any more" > > Can anyone suggest a method to make both "interrupt storm" and "too > many stray irq7's" go away? > > -- > Thanks, > Charles > http://bubbabbq.homeunix.net > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" -- How I make Great Barbecue - http://bubbabbq.homeunix.net/bbq.html