From owner-freebsd-current@FreeBSD.ORG Fri May 11 10:29:38 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 8A44E16A400 for ; Fri, 11 May 2007 10:29:38 +0000 (UTC) (envelope-from dudu@dudu.ro) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.186]) by mx1.freebsd.org (Postfix) with ESMTP id 0F9B513C487 for ; Fri, 11 May 2007 10:29:37 +0000 (UTC) (envelope-from dudu@dudu.ro) Received: by mu-out-0910.google.com with SMTP id w8so218977mue for ; Fri, 11 May 2007 03:29:36 -0700 (PDT) Received: by 10.82.184.2 with SMTP id h2mr5126351buf.1178878712503; Fri, 11 May 2007 03:18:32 -0700 (PDT) Received: by 10.82.148.19 with HTTP; Fri, 11 May 2007 03:18:32 -0700 (PDT) Message-ID: Date: Fri, 11 May 2007 13:18:32 +0300 From: "Vlad GALU" To: freebsd-current@freebsd.org In-Reply-To: <20070511093845.GG74182@cdnetworks.co.kr> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070509034005.GE65105@cdnetworks.co.kr> <20070511093845.GG74182@cdnetworks.co.kr> 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: Fri, 11 May 2007 10:29:38 -0000 On 5/11/07, Pyun YongHyeon wrote: > On Wed, May 09, 2007 at 12:40:05PM +0900, To freebsd-current@FreeBSD.org wrote: > > 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 > > > > I've fixed MSIX support with the help of jhb@ and Shigeaki Tagashira. > Shigeaki Tagashira also tested MSI/MSIX on his hardware so it should > now work without issues. > Please let me know any strange things. I have an Asus M2N32WS mainboard with two embedded nfe(4)s. Here's the output: -- cut here -- nfe0: port 0xb000-0xb007 mem 0xfe02a000-0xfe02afff,0xfe029000-0xfe0290ff,0xfe028000-0xfe02800f irq 23 at device 16.0 on pci0 nfe0: Reserved 0x1000 bytes for rid 0x10 type 3 at 0xfe02a000 nfe0: Reserved 0x100 bytes for rid 0x18 type 3 at 0xfe029000 nfe0: Reserved 0x10 bytes for rid 0x1c type 3 at 0xfe028000 nfe0: attempting to allocate 8 MSI-X vectors (8 supported) msi: routing MSI-X IRQ 256 to vector 56 msi: routing MSI-X IRQ 257 to vector 57 msi: routing MSI-X IRQ 258 to vector 58 msi: routing MSI-X IRQ 259 to vector 59 msi: routing MSI-X IRQ 260 to vector 60 msi: routing MSI-X IRQ 261 to vector 61 msi: routing MSI-X IRQ 262 to vector 62 msi: routing MSI-X IRQ 263 to vector 63 nfe0: using IRQs 256-263 for MSI-X nfe0: Using 8 MSIX messages miibus0: on nfe0 e1000phy0: PHY 1 on miibus0 e1000phy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto nfe0: bpf attached nfe0: Ethernet address: 00:18:f3:4d:0c:44 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] nfe1: port 0xac00-0xac07 mem 0xfe027000-0xfe027fff,0xfe026000-0xfe0260ff,0xfe025000-0xfe02500f irq 20 at device 17.0 on pci0 nfe1: Reserved 0x1000 bytes for rid 0x10 type 3 at 0xfe027000 nfe1: Reserved 0x100 bytes for rid 0x18 type 3 at 0xfe026000 nfe1: Reserved 0x10 bytes for rid 0x1c type 3 at 0xfe025000 nfe1: attempting to allocate 8 MSI-X vectors (8 supported) msi: routing MSI-X IRQ 264 to vector 64 msi: routing MSI-X IRQ 265 to vector 65 msi: routing MSI-X IRQ 266 to vector 66 msi: routing MSI-X IRQ 267 to vector 67 msi: routing MSI-X IRQ 268 to vector 68 msi: routing MSI-X IRQ 269 to vector 69 msi: routing MSI-X IRQ 270 to vector 70 msi: routing MSI-X IRQ 271 to vector 71 nfe1: using IRQs 264-271 for MSI-X nfe1: Using 8 MSIX messages miibus1: on nfe1 e1000phy1: PHY 1 on miibus1 e1000phy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto nfe1: bpf attached nfe1: Ethernet address: 00:18:f3:4d:0d:01 nfe1: [MPSAFE] nfe1: [FILTER] nfe1: [MPSAFE] nfe1: [FILTER] nfe1: [MPSAFE] nfe1: [FILTER] nfe1: [MPSAFE] nfe1: [FILTER] nfe1: [MPSAFE] nfe1: [FILTER] nfe1: [MPSAFE] nfe1: [FILTER] nfe1: [MPSAFE] nfe1: [FILTER] nfe1: [MPSAFE] nfe1: [FILTER] -- and here -- I applied the patch this morning and things have been running smoothly ever since. Thanks! :) > Thanks. > -- > Regards, > Pyun YongHyeon > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > -- If it's there, and you can see it, it's real. If it's not there, and you can see it, it's virtual. If it's there, and you can't see it, it's transparent. If it's not there, and you can't see it, you erased it.