From owner-freebsd-bugs@FreeBSD.ORG Wed May 16 07:30:05 2007 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2952C16A402 for ; Wed, 16 May 2007 07:30:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 0A0A013C45A for ; Wed, 16 May 2007 07:30:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l4G7U4C7031782 for ; Wed, 16 May 2007 07:30:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l4G7U4Wg031781; Wed, 16 May 2007 07:30:04 GMT (envelope-from gnats) Resent-Date: Wed, 16 May 2007 07:30:04 GMT Resent-Message-Id: <200705160730.l4G7U4Wg031781@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Arthur Hartwig Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 82F3916A401 for ; Wed, 16 May 2007 07:28:07 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id 7419313C45B for ; Wed, 16 May 2007 07:28:07 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l4G7S7JX095958 for ; Wed, 16 May 2007 07:28:07 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l4G7N5Rp095206; Wed, 16 May 2007 07:23:05 GMT (envelope-from nobody) Message-Id: <200705160723.l4G7N5Rp095206@www.freebsd.org> Date: Wed, 16 May 2007 07:23:05 GMT From: Arthur Hartwig To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: kern/112702: emdriver doesn't use MSI on MSI capable device X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2007 07:30:05 -0000 >Number: 112702 >Category: kern >Synopsis: emdriver doesn't use MSI on MSI capable device >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed May 16 07:30:04 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Arthur Hartwig >Release: FreeBSD 7 >Organization: Nokia >Environment: FreeBSD oz-net-11.nes.nokia.com 7.0-CURRENT FreeBSD 7.0-CURRENT #4: Fri May 11 11:56:18 EST 2007 root@oz-net-11.nes.nokia.com:/usr/obj/usr/src/sys/FBSD_TM PFS i386 >Description: FreeBSD 7 built a few weeks ago used MSI on two MSI capable interfaces (82572 chips). The recent substantial changes to emdriver have broken emdriver's use of MSI. Inspection of if_em.c shows em_attach() calls em_allocate_pci_resources() which for a 82572 based NIC to use MSI ends up requiring the bus.type field in the adapter structure to be set to e1000_bus_type_pci_express. However the bus type is not initialised until the call to e1000_get_bus_info() which is called AFTER em_attach() calls em_allocate_pci_resources(). I have been investigating the use of MSI to avoid interrupt sharing in a new system with a significant number of PCI express NICs. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: