From owner-freebsd-stable@FreeBSD.ORG Wed Mar 2 03:13:12 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4630B16A4CE for ; Wed, 2 Mar 2005 03:13:12 +0000 (GMT) Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1CB1243D48 for ; Wed, 2 Mar 2005 03:13:12 +0000 (GMT) (envelope-from dwhite@gumbysoft.com) Received: by carver.gumbysoft.com (Postfix, from userid 1000) id E07F972DD4; Tue, 1 Mar 2005 19:13:11 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by carver.gumbysoft.com (Postfix) with ESMTP id DB26872DCB; Tue, 1 Mar 2005 19:13:11 -0800 (PST) Date: Tue, 1 Mar 2005 19:13:11 -0800 (PST) From: Doug White To: Peter Jeremy In-Reply-To: <20050301101136.GB28962@cirb503493.alcatel.com.au> Message-ID: <20050301191033.T72408@carver.gumbysoft.com> References: <20050301101136.GB28962@cirb503493.alcatel.com.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-stable@freebsd.org Subject: Re: Duplicated hardware interrupts X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Mar 2005 03:13:12 -0000 On Tue, 1 Mar 2005, Peter Jeremy wrote: > Whilst tracking down some interrupt latency problems, I've found that > I'm getting duplicate interrupts from some, but not all, devices. The > double interrupts appear to always occur for some IRQs and never occur > on others. Based on those symptoms, I wonder if there's a hardware > issue. That sounds like interrupt routing problems. If you're running UP, try running this in loader before booting: set hint.apic.0.disabled=1 If things improve then your I/O APIC or routing information is bad, which isn't unusual for UP systems. Remove "device apic" from your kernel or add the hint to device.hints or loader.conf. I need this on my KT400 at home. > > The system is a GigaByte GA-7VRX-P motherboard (VIA KT333) with an > Athlon XP-1800 running 5.3-RELEASE-p5 with APIC and ACPI: > CPU: AMD Athlon(tm) XP 1800+ (1533.40-MHz 686-class CPU) > Origin = "AuthenticAMD" Id = 0x662 Stepping = 2 > Features=0x383fbff > AMD Features=0xc0480000 > real memory = 536805376 (511 MB) > avail memory = 515629056 (491 MB) > ACPI APIC Table: > ioapic0 irqs 0-23 on motherboard > ... > acpi0: on motherboard > > I'm not seeing duplicate interrupts on atkbd0, rtc, fdc0, psm0 and ata0. > > I am seeing duplicate interrupts on drm0, rl0 and my video capture card. > > FWIW, the kernel code I'm using to check the interrupts is attached. > Userland just mmap's the buffer, converts it to ASCII and dumps it to > disk for later processing. > > Has anyone else seen anything like this? > -- Doug White | FreeBSD: The Power to Serve dwhite@gumbysoft.com | www.FreeBSD.org