From owner-freebsd-current@FreeBSD.ORG Fri Dec 7 19:46:37 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ACDF616A420 for ; Fri, 7 Dec 2007 19:46:37 +0000 (UTC) (envelope-from qpadla@gmail.com) Received: from hs-out-2122.google.com (hs-out-0708.google.com [64.233.178.249]) by mx1.freebsd.org (Postfix) with ESMTP id 4CC8513C447 for ; Fri, 7 Dec 2007 19:46:37 +0000 (UTC) (envelope-from qpadla@gmail.com) Received: by hs-out-2122.google.com with SMTP id j58so337634hsj for ; Fri, 07 Dec 2007 11:46:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:reply-to:to:subject:date:user-agent:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:message-id; bh=fPftNTNvtS6L8wuxq8isYkvnhw5m2PvvMqalTREfxrg=; b=E78wDJQ07OcoNaEUc9nKoyZngZ58mkA+oTcibnLU2m/XQ0976EKJpeduStb/ACqaPFckLgWY1jnU7lJLO6MeUEaVWfNGJEHrdVNg1AUnApqNcSVaw/HC/tgomSWNQqAYOqbuBLYqmxY/2D0mazU/3selwL6M57r5cJEVhs9BWGE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:reply-to:to:subject:date:user-agent:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:message-id; b=ChX2GhcElx9aIadLfgUuvD8xIoGO4G9cLQROZaxL3UpPaIh8NsKOTRufyD3OQAuPzIoFGHzS7z8rt/28+m26W5uliWfuRm7dGMl68Nn8IrUre88wiEgFS2ctKrhtqDxGhPsfNptBtHKyBgLnwziq+r3jH1MLn0x/JASZ8bau3nw= Received: by 10.78.204.7 with SMTP id b7mr4156326hug.1197056794807; Fri, 07 Dec 2007 11:46:34 -0800 (PST) Received: from orion ( [89.162.141.1]) by mx.google.com with ESMTPS id c9sm1102696nfi.2007.12.07.11.46.32 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 07 Dec 2007 11:46:33 -0800 (PST) From: Nikolay Pavlov To: Erik Trulsson Date: Fri, 7 Dec 2007 21:46:37 +0200 User-Agent: KMail/1.9.6 (enterprise 0.20070907.709405) References: <200712072114.01360.qpadla@gmail.com> <20071207192642.GA65135@owl.midgard.homeip.net> In-Reply-To: <20071207192642.GA65135@owl.midgard.homeip.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1795797.neeHdfm7lH"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200712072146.37458.qpadla@gmail.com> Cc: freebsd-current@freebsd.org Subject: Re: Strange IRQ number X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: qpadla@gmail.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Dec 2007 19:46:37 -0000 --nextPart1795797.neeHdfm7lH Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Friday 07 December 2007 21:26:42 Erik Trulsson wrote: > On Fri, Dec 07, 2007 at 09:13:57PM +0200, Nikolay Pavlov wrote: > > I see some strange IRQ number for my em0 card on BETA4: > > root@cassini:~# vmstat -i > > interrupt total rate > > irq1: atkbd0 6 0 > > irq6: fdc0 1 0 > > irq14: ata0 184947 16 > > irq15: ata1 184946 16 > > cpu0: timer 22110598 1999 > > irq256: em0 6945039 628 > > ^^^^^^^^^^^^^^^^ > > cpu1: timer 22110396 1999 > > Total 51535933 4661 > > > > On 6.2 it was shared with uhci. Now all uhci controllers gone from the > > vmstat but not from the system: > > 'vmstat -i' only shows those interrupts that have generated at least one > interrupt. Use 'vmstat -ia' to see all the interrupts (I suspect that > you will find the uhci* devices there.) > > > root@cassini:~# usbdevs > > addr 1: UHCI root hub, Intel > > addr 1: UHCI root hub, Intel > > addr 1: UHCI root hub, Intel > > addr 1: UHCI root hub, Intel > > addr 1: EHCI root hub, Intel > > > > root@cassini:~# dmesg | grep em0 > > em0: port > > 0x4000-0x401f mem 0xd0100000-0xd011ffff irq 16 at device 0.0 on pci6 > > em0: Using MSI interrupt > > ^^^^^^^^^^^^^^^^^^^^^^ > > This is the magic information. On 7.x MSI/MSI-X interrupts are enabled > by default (which is not the case on 6.x). > MSI/MSI-X is a new interrupt delivery mechanism that can be used by all > PCI-E devices (although not all device drivers in FreeBSD take > advantage of this yet) and some PCI-X devices, that essentially assigns > a separate interrupt for each device - thus no need for sharing > interrupts. > > > em0: Ethernet address: 00:30:48:91:c0:90 > > em0: [FILTER] > > > > The entire system work ok. > > As expected. What you see is simply the em0 NIC (apparently a PCI-E > device) using MSI instead of the old interrupt method. > FreeBSD assigns such devices a "virtual" interrupt number starting at > 256. > > > Short version: It is not a bug, it is a feature. :-) Yes you are right Erik. Thanks for a good explanation. :) =2D-=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =20 =2D Best regards, Nikolay Pavlov. <<<----------------------------------- = =20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =20 --nextPart1795797.neeHdfm7lH Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBHWaMd/2R6KvEYGaIRAmpiAJ9Ro2T6AxcEOr44frNh8P98MhhHKwCg8tKh NHUkBKqyM8Vr1oC9p1HuHY0= =uXRA -----END PGP SIGNATURE----- --nextPart1795797.neeHdfm7lH--