From owner-freebsd-net@FreeBSD.ORG Wed Dec 18 08:44:58 2013 Return-Path: Delivered-To: freebsd-net@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 154ED8A3; Wed, 18 Dec 2013 08:44:58 +0000 (UTC) Received: from mail-pa0-x235.google.com (mail-pa0-x235.google.com [IPv6:2607:f8b0:400e:c03::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D3649164F; Wed, 18 Dec 2013 08:44:57 +0000 (UTC) Received: by mail-pa0-f53.google.com with SMTP id hz1so5656397pad.40 for ; Wed, 18 Dec 2013 00:44:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=gySQ0+SYJMFd3tA5L0knQj8JoBIafOi8Ec7a9s/qC10=; b=g9elrydPCNi1yDLDt35JEw3p1vAy73OOy4z7VgRS4I5FXwLph/YNGJ4+8KxC0PChPw BjvpdEjS/0qdZcLCftxhP7uKKq9xX4TjpfMJjAMaEPpNy7QNCho++0e07HLC8aKmtYoX DW9+Bf/RB9TzPylbGKVswzfiSVSL7Au4kFFKdkIiEXG1FG7py7u+v93D52fHvEFXi8kW 2bK+fdY7lwbV0RiUc9hFC569A1uQ5VSfNh/nJt/h2ZajBMinQqIt5UF0mwWgPMHvGfZ+ lO1UUHTD4n8cCl44svnO9cNV1XmoAiKQTo36WzKIKvSDWP1n+NaSRdju1t6xhqJ8aShB 1KGQ== X-Received: by 10.66.216.129 with SMTP id oq1mr32168358pac.75.1387356297533; Wed, 18 Dec 2013 00:44:57 -0800 (PST) Received: from pyunyh@gmail.com (lpe4.p59-icn.cdngp.net. [114.111.62.249]) by mx.google.com with ESMTPSA id er3sm39338181pbb.40.2013.12.18.00.44.52 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 18 Dec 2013 00:44:56 -0800 (PST) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Wed, 18 Dec 2013 17:44:51 +0900 From: Yonghyeon PYUN Date: Wed, 18 Dec 2013 17:44:51 +0900 To: Shteryana Shopova Subject: Re: RTL8111/8168B NIC & FreeBSD Message-ID: <20131218084450.GB1400@michelle.cdnetworks.com> References: <20131216014704.GB3345@michelle.cdnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: "freebsd-net@FreeBSD.org" , David Rufino X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Dec 2013 08:44:58 -0000 On Mon, Dec 16, 2013 at 09:06:14PM +0200, Shteryana Shopova wrote: > Hm, > > It's neither - > > re0: port > 0x2000-0x20ff mem 0xd1404000-0xd1404fff,0xd1400000-0xd1403fff irq 18 > at device 0.1 on pci4 > re0: Using 1 MSI-X message > re0: ASPM disabled > re0: Chip rev. 0x5c800000 > re0: MAC rev. 0x00000000 Your controller is RTL8411B. Try this one instead. http://people.freebsd.org/~yongari/re/re.rxdv_gated.diff > > cheers, > Shteryana > > > On Mon, Dec 16, 2013 at 3:47 AM, Yonghyeon PYUN wrote: > > On Sun, Dec 15, 2013 at 06:46:35AM +0200, Shteryana Shopova wrote: > >> Hi, > >> > >> I hit the same problem with the same chip on FreeBSD 11.0-CURRENT #0 > >> r258178 - the card would receive nothing or (perhaps not-so-)random > >> crap. ifconfig down/up and disabling RX/TX check-summing makes the > >> card work for me as a temporary workaround. > >> > > > > David's controller is RTL8168G. Are you sure you have the same > > controller? If your controller is RTL8168E-VL(Chip rev. > > 0x2c800000 in dmesg), try the patch at the following URL. > > http://people.freebsd.org/~yongari/re/re.8168evl.diff > > > >> re0@pci0:4:0:1: class=0x020000 card=0x07981025 chip=0x816810ec > >> rev=0x14 hdr=0x00 > >> vendor = 'Realtek Semiconductor Co., Ltd.' > >> device = 'RTL8111/8168B PCI Express Gigabit Ethernet controller' > >> class = network > >> subclass = ethernet > >> > >> cheers, > >> Shteryana > >> > >> > >> On Sat, Dec 14, 2013 at 11:31 PM, David Rufino wrote: > >> > Hello, > >> > > >> > I'm having similar problems using an onboard RTL 8168B NIC. I noticed > >> > there were some recent changes to the re0 driver, so I tried -STABLE > >> > (r258961). The device is detected but can't send or receive packets. > >> > Interestingly it doesn't work in Debian wheezy, but does work fine in > >> > Windows 7 with latest drivers. I'm happy to assist in any way. Here's > >> > some relevant debugging information > >> > > >> > pciconf -l -v > >> > > >> > re0@pci0:1:0:0: class=0x020000 card=0x81161019 chip=0x816810ec rev=0x0c hdr=0x00 > >> > vendor = 'Realtek Semiconductor Co., Ltd.' > >> > device = 'RTL8111/8168B PCI Express Gigabit Ethernet controller' > >> > class = network > >> > subclass = ethernet > >> > > >> > re0: port > >> > 0xe000-0xe0ff mem 0xfea00000-0xfea00fff,0xd0800000-0xd0803fff irq 32 > >> > at device 0.0 on pci1 > >> > re0: Using 1 MSI-X message > >> > re0: ASPM disabled > >> > re0: Chip rev. 0x4c000000 > >> > re0: MAC rev. 0x00000000 > >> > miibus0: on re0 > >> > re0: Ethernet address: 74:27:ea:d3:de:5a > >> > > >> > Thanks!, > >> > David > >> > > >> >> > >> >> Hello, > >> >> > >> >> we are trying to install FreeBSD on a computer that uses the NIC mentioned > >> >> above. The NIC is running under linux without problems, which we've tested > >> >> for several days transferring several GB of data.