From owner-freebsd-current@FreeBSD.ORG Tue Dec 4 11:47:19 2012 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A82D8682 for ; Tue, 4 Dec 2012 11:47:19 +0000 (UTC) (envelope-from ianf@clue.co.za) Received: from zcs03.jnb1.cloudseed.co.za (zcs03.jnb1.cloudseed.co.za [41.154.0.139]) by mx1.freebsd.org (Postfix) with ESMTP id 36CF98FC08 for ; Tue, 4 Dec 2012 11:47:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by zcs03.jnb1.cloudseed.co.za (Postfix) with ESMTP id 8C1DF2B42C98 for ; Tue, 4 Dec 2012 13:47:17 +0200 (SAST) X-Virus-Scanned: amavisd-new at zcs03.jnb1.cloudseed.co.za Received: from zcs03.jnb1.cloudseed.co.za ([127.0.0.1]) by localhost (zcs03.jnb1.cloudseed.co.za [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id v2DbIuaTFEf4 for ; Tue, 4 Dec 2012 13:47:16 +0200 (SAST) Received: from clue.co.za (unknown [197.87.27.118]) by zcs03.jnb1.cloudseed.co.za (Postfix) with ESMTPSA id A54A22B42C50 for ; Tue, 4 Dec 2012 13:47:16 +0200 (SAST) Received: from localhost ([127.0.0.1] helo=clue.co.za) by clue.co.za with esmtp (Exim 4.80 (FreeBSD)) (envelope-from ) id 1Tfqy2-0001UK-RY for current@freebsd.org; Tue, 04 Dec 2012 13:47:14 +0200 To: current@freebsd.org Subject: ixgbe(4) and SFP+ (un)supported module From: "Ian FREISLICH" X-Attribution: BOFH Date: Tue, 04 Dec 2012 13:47:14 +0200 Message-Id: X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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: Tue, 04 Dec 2012 11:47:19 -0000 Hi I've just had this card installed in our servers: ix0@pci0:12:0:0: class=0x020000 card=0x7a118086 chip=0x10fb8086 rev=0x01 hdr=0x00 vendor = 'Intel Corporation' device = '82599EB 10-Gigabit SFI/SFP+ Network Connection' class = network subclass = ethernet cap 01[40] = powerspec 3 supports D0 D3 current D0 cap 05[50] = MSI supports 1 message, 64 bit, vector masks cap 11[70] = MSI-X supports 64 messages in map 0x20 enabled cap 10[a0] = PCI-Express 2 endpoint max data 512(512) FLR link x8(x8) speed 2.5(5.0) cap 03[e0] = VPD ecap 0001[100] = AER 1 0 fatal 0 non-fatal 1 corrected ecap 0003[140] = Serial 1 90e2baffff2b92e8 ecap 000e[150] = ARI 1 ecap 0010[160] = SRIOV 1 Which yielded the following error initializing the driver: ix0: port 0xbcc ix0: Using MSIX interrupts with 9 vectors ix0: Unsupported SFP+ Module device_attach: ix0 attach returned 5 ix0: port 0xbce ix0: Using MSIX interrupts with 9 vectors ix0: Unsupported SFP+ Module device_attach: ix0 attach returned 5 ix0: port 0xbcc ix0: Using MSIX interrupts with 9 vectors ix0: Unsupported SFP+ Module device_attach: ix0 attach returned 5 ix0: port 0xbce ix0: Using MSIX interrupts with 9 vectors ix0: Unsupported SFP+ Module device_attach: ix0 attach returned 5 The README in /usr/src/sys/dev/ixgbe claims that the module we have, AFBR-703SDZ-IN is supported. I had to make the following change to get the driver to attach. I get the feeling it's not the correct fix however: [firewall2.jnb1] /usr/src/sys/dev/ixgbe # svn diff Index: ixgbe_phy.c =================================================================== --- ixgbe_phy.c (revision 243808) +++ ixgbe_phy.c (working copy) @@ -955,7 +955,7 @@ u8 oui_bytes[3] = {0, 0, 0}; u8 cable_tech = 0; u8 cable_spec = 0; - u16 enforce_sfp = 0; + u16 enforce_sfp = 1; DEBUGFUNC("ixgbe_identify_sfp_module_generic"); Ian -- Ian Freislich