From owner-freebsd-current@FreeBSD.ORG Wed May 9 20:19:53 2007 Return-Path: X-Original-To: freebsd-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 6BA8716A405 for ; Wed, 9 May 2007 20:19:53 +0000 (UTC) (envelope-from rhurlin@gwdg.de) Received: from amailer.gwdg.de (amailer.gwdg.de [134.76.10.18]) by mx1.freebsd.org (Postfix) with ESMTP id 045F813C45A for ; Wed, 9 May 2007 20:19:52 +0000 (UTC) (envelope-from rhurlin@gwdg.de) Received: from [87.139.104.184] (helo=krabat.raven.hur) by mailer.gwdg.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.66) (envelope-from ) id 1Hlsdb-000337-4M; Wed, 09 May 2007 22:19:51 +0200 Message-ID: <46422CE3.60609@gwdg.de> Date: Wed, 09 May 2007 22:19:47 +0200 From: Rainer Hurling User-Agent: Thunderbird 2.0.0.0 (X11/20070421) MIME-Version: 1.0 To: pyunyh@gmail.com References: <20070509034005.GE65105@cdnetworks.co.kr> In-Reply-To: <20070509034005.GE65105@cdnetworks.co.kr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated: Id:rhurlin X-Spam-Level: - X-Virus-Scanned: (clean) by exiscan+sophie Cc: freebsd-current@FreeBSD.org Subject: Re: CFT: nfe(4) MSI/MSIX support 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: Wed, 09 May 2007 20:19:53 -0000 Hello Pyun YongHyeon, my mainboard is K9N Neo from MSI with BIOS version 1.60. I compiled CURRENT from 05/09/07 on i386 with your new if_nfe files and your patch for ciphy (/usr/src/sys/dev/mii). Before, I had to use polling mode with nfe(4), now this is not neccessary any more :-) boot -v gives me: ------------------- pcib0: slot 1 INTA routed to irq 20 via \\_SB_.LSMB MSI supports 4 messages, 64 bit ... pcib0: slot 5 INTA routed to irq 23 via \\_SB_.LSA0 MSI supports 4 messages, 64 bit ... pcib0: slot 5 INTB routed to irq 20 via \\_SB_.LSA1 MSI supports 1 message, 64 bit, vector masks ... pcib0: slot 6 INTB routed to irq 21 via \\_SB_.LAZA MSI supports 8 messages, 64 bit, vector masks MSI-X supports 8 messages in maps 0x18 and 0x1c ... pcib0: slot 8 INTA routed to irq 22 via \\_SB_.LMAC MSI supports 2 messages, 64 bit MSI supports 2 messages, 64 bit MSI supports 2 messages, 64 bit MSI supports 2 messages, 64 bit MSI supports 2 messages, 64 bit ... pci6: physical bus=6 MSI supports 1 message, 64 bit ... nfe0: port 0xb000-0xb007 mem 0xfbef3000-0xfbef3fff,0xfbefa800-0xfbefa8ff,0 xfbefa400-0xfbefa40f irq 22 at device 8.0 on pci0 nfe0: Reserved 0x1000 bytes for rid 0x10 type 3 at 0xfbef3000 nfe0: attempting to allocate 8 MSI vectors (8 supported) msi: routing MSI IRQ 256 to vector 56 msi: routing MSI IRQ 257 to vector 57 msi: routing MSI IRQ 258 to vector 58 msi: routing MSI IRQ 259 to vector 59 msi: routing MSI IRQ 260 to vector 60 msi: routing MSI IRQ 261 to vector 61 msi: routing MSI IRQ 262 to vector 62 msi: routing MSI IRQ 263 to vector 63 nfe0: using IRQs 256-263 for MSI nfe0: Using 8 MSI messages miibus0: on nfe0 ciphy0: PHY 1 on miibus0 ciphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto nfe0: bpf attached nfe0: Ethernet address: xx:xx:xx:xx:xx:xx nfe0: [MPSAFE] nfe0: [FILTER] nfe0: [MPSAFE] nfe0: [FILTER] nfe0: [MPSAFE] nfe0: [FILTER] nfe0: [MPSAFE] nfe0: [FILTER] nfe0: [MPSAFE] nfe0: [FILTER] nfe0: [MPSAFE] nfe0: [FILTER] nfe0: [MPSAFE] nfe0: [FILTER] nfe0: [MPSAFE] nfe0: [FILTER] ... msi: Assigning MSI IRQ 256 to local APIC 0 msi: Assigning MSI IRQ 257 to local APIC 1 msi: Assigning MSI IRQ 258 to local APIC 0 msi: Assigning MSI IRQ 259 to local APIC 1 msi: Assigning MSI IRQ 260 to local APIC 0 msi: Assigning MSI IRQ 261 to local APIC 1 msi: Assigning MSI IRQ 262 to local APIC 0 msi: Assigning MSI IRQ 263 to local APIC 1 ------------------- It seems that everything is alright know. Thank you very much, Rainer Pyun YongHyeon schrieb: > Dear all, > > I've received a patch from Shigeaki Tagashira. The patch enables > MSI/MSIX capability on nVidia network adapters. I've slightly modified > the patch and merged it into existing overhauled nfe(4). > I guess the nfe(4) now supports almost all hardware capabilities > including MSI/MSIX, IP/TCP/UDP checksum offload, TCP segmentation > offload and hardware assisted VLAN processing. > > Shigeaki Tagashira tested only MSI due to lack of hardwares so there > might be bugs in MSIX support code. I don't have nVidia hardwares > that supports MSI/MSIX so I need user's feedback to improve it. If > you have one of nVidia network adapters that have MSI/MSIX capability > please give it spin and let me know how it goes on your system. > > Overhauled nfe(4) can be found at the following URL. > http://people.freebsd.org/~yongari/nfe/WIP/if_nfe.c > http://people.freebsd.org/~yongari/nfe/WIP/if_nfereg.h > http://people.freebsd.org/~yongari/nfe/WIP/if_nfevar.h > > Thanks.