From owner-freebsd-current@FreeBSD.ORG Thu Apr 19 07:31:42 2007 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 47C9816A406 for ; Thu, 19 Apr 2007 07:31:42 +0000 (UTC) (envelope-from wilkinsa@obelix.dsto.defence.gov.au) Received: from digger1.defence.gov.au (digger1.defence.gov.au [203.5.217.4]) by mx1.freebsd.org (Postfix) with ESMTP id C61F913C489 for ; Thu, 19 Apr 2007 07:31:41 +0000 (UTC) (envelope-from wilkinsa@obelix.dsto.defence.gov.au) Received: from ednmsw510.dsto.defence.gov.au (ednmsw510.dsto.defence.gov.au [131.185.68.11]) by digger1.defence.gov.au (8.13.8/8.13.8) with ESMTP id l3J772Kt028726 for ; Thu, 19 Apr 2007 16:37:02 +0930 (CST) Received: from ednex510.dsto.defence.gov.au (ednex510.dsto.defence.gov.au) by ednmsw510.dsto.defence.gov.au (Clearswift SMTPRS 5.2.5) with ESMTP id for ; Thu, 19 Apr 2007 16:46:05 +0930 Received: from obelix.dsto.defence.gov.au ([203.6.60.208]) by ednex510.dsto.defence.gov.au with Microsoft SMTPSVC(6.0.3790.1830); Thu, 19 Apr 2007 16:46:04 +0930 Received: from obelix.dsto.defence.gov.au (localhost [127.0.0.1]) by obelix.dsto.defence.gov.au (8.13.8/8.13.8) with ESMTP id l3J7FsLC094853 for ; Thu, 19 Apr 2007 15:15:54 +0800 (WST) (envelope-from wilkinsa@obelix.dsto.defence.gov.au) Received: (from wilkinsa@localhost) by obelix.dsto.defence.gov.au (8.13.8/8.13.8/Submit) id l3J7FsCp094852 for current@freebsd.org; Thu, 19 Apr 2007 15:15:54 +0800 (WST) (envelope-from wilkinsa) Date: Thu, 19 Apr 2007 15:15:53 +0800 From: "Wilkinson, Alex" To: current Message-ID: <20070419071552.GB94633@obelix.dsto.defence.gov.au> Mail-Followup-To: current References: <4626D35B.7070308@root.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <4626D35B.7070308@root.org> User-Agent: Mutt/1.5.14 (2007-02-12) X-OriginalArrivalTime: 19 Apr 2007 07:16:05.0022 (UTC) FILETIME=[97DE83E0:01C78252] Content-Transfer-Encoding: 7bit Cc: Subject: Re: IRQ Question? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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, 19 Apr 2007 07:31:42 -0000 0n Wed, Apr 18, 2007 at 07:26:35PM -0700, Nate Lawson wrote: >> FreeBSD 7.0-CURRENT #0: Tue Apr 10 13:47:53 WST 2007 >> >> Could be an insanely dumb question, however, I have to ask. >> >> Why don't IRQs in the BIOS map to IRQs in the output of vmstat(8) ? >> >> e.g. >> >> I manually changed an IRQ assingment of an Intel NIC [em(4)] to be on IRQ 11 in >> the BIOS and vmstat(8) reports its as irq16. >> >> #vmstat -i | egrep -i em >> irq16: em0 uhci0 2990236 18 >> >> Can someone (njl@ jhb@) please enlighten me ? > >Interrupt routing is determined by a number of factors. Without acpi, >it's determined by the BIOS initial irq and then anything the $PIR table >changes (usually matches the BIOS value). With acpi, it's the BIOS irq >and MADT acpi table. And that assumes APIC, not PIC-based routing. > >You can override the values with these tunables from the acpi man page: > > hw.pci.link.%s.%d.irq > Override the interrupt to use for this link and index. This > capability should be used carefully, and only if a device is not > working with acpi enabled. "%s" is the name of the link (e.g., > LNKA). "%d" is the resource index when the link supports multi- > ple IRQs. Most PCI links only have one IRQ resource, so the > below form should be used. > > hw.pci.link.%s.irq > Override the interrupt to use. This capability should be used > carefully, and only if a device is not working with acpi enabled. > "%s" is the name of the link (e.g., LNKA). > >You'll have to look at your dmesg to determine the proper values here. Cheers Nate ! -aW IMPORTANT: This email remains the property of the Australian Defence Organisation and is subject to the jurisdiction of section 70 of the CRIMES ACT 1914. If you have received this email in error, you are requested to contact the sender and delete the email.