From owner-freebsd-stable@FreeBSD.ORG Thu Jun 19 10:00:21 2014 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 15B8CB14 for ; Thu, 19 Jun 2014 10:00:21 +0000 (UTC) Received: from mxout013.mail.hostpoint.ch (mxout013.mail.hostpoint.ch [IPv6:2a00:d70:0:e::313]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C74A92DAF for ; Thu, 19 Jun 2014 10:00:20 +0000 (UTC) Received: from [10.0.2.46] (helo=asmtp013.mail.hostpoint.ch) by mxout013.mail.hostpoint.ch with esmtp (Exim 4.82 (FreeBSD)) (envelope-from ) id 1WxZ8j-0002bk-0D for stable@freebsd.org; Thu, 19 Jun 2014 12:00:17 +0200 Received: from [82.136.95.119] (helo=atlantis.intranet) by asmtp013.mail.hostpoint.ch with esmtpa (Exim 4.82 (FreeBSD)) (envelope-from ) id 1WxZ8i-000NeC-UV for stable@freebsd.org; Thu, 19 Jun 2014 12:00:16 +0200 Received: from maxlor.mine.nu (localhost [127.0.0.1]) by atlantis.intranet (Postfix) with ESMTP id 9B7872DF2 for ; Thu, 19 Jun 2014 12:00:16 +0200 (CEST) X-Authenticated-Sender-Id: mail@maxlor.com MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Thu, 19 Jun 2014 12:00:16 +0200 From: Benjamin Lutz To: stable@freebsd.org Subject: re(4) on Realtek 8111G in Shuttle DS437 not working Message-ID: <3a9fc5056ecfe9d78d0b80be929b4c54@maxlor.mine.nu> X-Sender: mail@maxlor.com User-Agent: Roundcube Webmail/1.0.1 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jun 2014 10:00:21 -0000 Hello, I bought a Shuttle DS437 (cheap small industrial barebone), it has two Realtek 8111G network interfaces onboard. While support for that NIC was added to FreeBSD 10.0, it doesn't seem to actually work. I can configure the interface, and detect whether a cable is plugged in, but no data is actually sent or received over the wire in 1000baseTX mode. If I reduce the interface speed to 100baseTX, data is sent (I see outgoing ARP requests on the local machine, as well as on a second machine using tcpdump), but no data is received (anwers are seen on the second machine, but not the local one.) I'm running FreeBSD 10.0-RELEASE-p5 amd64, GENERIC kernel. The hardware works, I think, using the driver from Realtek's homepage. But using that driver is not a long-term option: for one, it doesn't cause devd events, which partially breaks the network configuration scripts, and for another, it doesn't seem to be 100% stable; I've observed lockups under load (indicated by sendto: no buffer space available) that needed an ifconfig down/up to clear, and since it replaces FreeBSD's re driver, kernel updates become a chore. Are there any parameters that I can maybe tune to get the standard FreeBSD driver going? Patches don't scare me either. Here's how FreeBSD sees the devices: dmesg re0: port 0xd000-0xd0ff mem 0xf7a00000-0xf7a00fff,0xf0100000-0xf0103fff irq 17 at device 0.0 on pci2 re1: port 0xc000-0xc0ff mem 0xf7800000-0xf7800fff,0xf0000000-0xf0003fff irq 19 at device 0.0 on pci4 pciconf -lv re0@pci0:2:0:0: class=0x020000 card=0x40211297 chip=0x816810ec rev=0x0c hdr=0x00 vendor = 'Realtek Semiconductor Co., Ltd.' device = 'RTL8111/8168B PCI Express Gigabit Ethernet controller' class = network subclass = ethernet re1@pci0:4:0:0: class=0x020000 card=0x40211297 chip=0x816810ec rev=0x0c hdr=0x00 vendor = 'Realtek Semiconductor Co., Ltd.' device = 'RTL8111/8168B PCI Express Gigabit Ethernet controller' class = network subclass = ethernet Cheers, Benjamin PS: For people curious about the DS437, it has a Celeron 1037U CPU, is passively cooled and rated for 24/7 operation. It has two NICs, two serial ports (one RS232 and one RS232/RS422/RS485) and the ichwd(4) hardware watchdog. I've benchmarked it reaching 16 MiB/sec out and 20MiB/sec in through a single OpenVPN connection. The WiFi card it ships with is not recognized by FreeBSD. Under load at 24°C room temperature in still air, the case temperature reaches about 43°C and the CPUs (according to coretemp(4)) reach about 50°C. pciconf -lv shows the unsupported WiFi card as follows: none2@pci0:1:0:0: class=0x028000 card=0x817510ec chip=0x817610ec rev=0x01 hdr=0x00 vendor = 'Realtek Semiconductor Co., Ltd.' device = 'RTL8188CE 802.11b/g/n WiFi Adapter' class = network