From owner-freebsd-hackers@freebsd.org Fri Jul 8 10:55:10 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0B3DEB82A18 for ; Fri, 8 Jul 2016 10:55:10 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: from puchar.net (puchar.net [194.1.144.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "puchar.net", Issuer "puchar.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 94FFD11BB for ; Fri, 8 Jul 2016 10:55:09 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: Received: from 127.0.0.1 (localhost [127.0.0.1]) by puchar.net (8.15.2/8.14.9) with ESMTPS id u68Asxn9002790 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Fri, 8 Jul 2016 12:54:59 +0200 (CEST) (envelope-from wojtek@puchar.net) Received: from laptop.wojtek.intra (localhost [127.0.0.1]) by laptop.wojtek.intra (8.14.9/8.14.9) with ESMTP id u68At2kB000865 for ; Fri, 8 Jul 2016 12:55:02 +0200 (CEST) (envelope-from wojtek@puchar.net) Received: from localhost (wojtek@localhost) by laptop.wojtek.intra (8.14.9/8.14.9/Submit) with ESMTP id u68AsvCs000862 for ; Fri, 8 Jul 2016 12:54:57 +0200 (CEST) (envelope-from wojtek@puchar.net) X-Authentication-Warning: laptop.wojtek.intra: wojtek owned process doing -bs Date: Fri, 8 Jul 2016 12:54:57 +0200 (CEST) From: Wojciech Puchar X-X-Sender: wojtek@laptop.wojtek.intra To: freebsd-hackers@freebsd.org Subject: help with onboard LAN Message-ID: User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (puchar.net [10.0.1.1]); Fri, 08 Jul 2016 12:54:59 +0200 (CEST) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jul 2016 10:55:10 -0000 my supermicro-rebranded server is specified as having 2 1Gb/s ethernet ports onboard what actually is: ix0@pci0:3:0:0: class=0x020000 card=0x152815d9 chip=0x15288086 rev=0x01 hdr=0x00 vendor = 'Intel Corporation' device = 'Ethernet Controller 10-Gigabit X540-AT2' class = network subclass = ethernet ix1@pci0:3:0:1: class=0x020000 card=0x152815d9 chip=0x15288086 rev=0x01 hdr=0x00 vendor = 'Intel Corporation' device = 'Ethernet Controller 10-Gigabit X540-AT2' class = network subclass = ethernet which is strange card is autodetected with ixgbe driver under FreeBSD 10 and i put device miibus device ixgbe in my custom kernel. ix0: port 0xe020-0xe03f mem 0xfbc00000-0xfbdfffff,0xfbe04000-0xfbe07fff irq 42 at device 0.0 on pci3 ix0: Using MSIX interrupts with 9 vectors ix0: Ethernet address: 0c:c4:7a:6e:7e:9e ix0: PCI Express Bus: Speed 5.0GT/s Width x8 ix1: port 0xe000-0xe01f mem 0xfba00000-0xfbbfffff,0xfbe00000-0xfbe03fff irq 45 at device 0.1 on pci3 ix1: Using MSIX interrupts with 9 vectors ix1: Ethernet address: 0c:c4:7a:6e:7e:9f ix1: PCI Express Bus: Speed 5.0GT/s Width x8 And it works. But seems i have autonegotiation problem with gigabit switch - it connects at 100Mb/s ix0: flags=8843 metric 0 mtu 1500 options=8407bb ether 0c:c4:7a:6e:7e:9e inet 194.1.144.90 netmask 0xfffffff8 broadcast 194.1.144.95 inet 194.1.144.91 netmask 0xfffffff8 broadcast 194.1.144.95 media: Ethernet autoselect (100baseTX ) status: active i tried ifconfig ix0 media 1000baseT but it shows error. Any idea what i really have in my server and how to manually set it up to 1Gb/s Seems like no phy is detected.