From owner-freebsd-current@freebsd.org Fri Feb 5 19:02:17 2016 Return-Path: Delivered-To: freebsd-current@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 DB22EA9C05E for ; Fri, 5 Feb 2016 19:02:17 +0000 (UTC) (envelope-from marius@alchemy.franken.de) Received: from alchemy.franken.de (alchemy.franken.de [194.94.249.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "alchemy.franken.de", Issuer "alchemy.franken.de" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 77DE716E for ; Fri, 5 Feb 2016 19:02:17 +0000 (UTC) (envelope-from marius@alchemy.franken.de) Received: from alchemy.franken.de (localhost [127.0.0.1]) by alchemy.franken.de (8.15.2/8.15.2/ALCHEMY.FRANKEN.DE) with ESMTPS id u15J2FxI005021 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 5 Feb 2016 20:02:15 +0100 (CET) (envelope-from marius@alchemy.franken.de) Received: (from marius@localhost) by alchemy.franken.de (8.15.2/8.15.2/Submit) id u15J2Eb2005020; Fri, 5 Feb 2016 20:02:14 +0100 (CET) (envelope-from marius) Date: Fri, 5 Feb 2016 20:02:14 +0100 From: Marius Strobl To: s.o.k@web.de Cc: freebsd-current@freebsd.org Subject: Re: Realtek 8168/8111 if_re not working in current r295091 Message-ID: <20160205190214.GA4902@alchemy.franken.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (alchemy.franken.de [0.0.0.0]); Fri, 05 Feb 2016 20:02:15 +0100 (CET) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 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, 05 Feb 2016 19:02:17 -0000 On Wed, Feb 03, 2016 at 08:57:01PM +0100, s.o.k@web.de wrote: > After updating -current at Jan, 31st (r295091) the Realtek ethernet device driver of my Zotac ZBox RI323 mini pc seems to be broken: I can neither connect to the host even though the interface is shown as active, nor can I initiate connection from the host through re0. > Reverting the kernel to my previous build -current r290151 (install date Nov 1st, 2015) the re0 interface is working OK. > > Looking through the svn logs regarding /head/sys/dev/re/if_re.c I supect, that Revision 290566 might have someting to do with this and that I have to include my Realtek Chipset to the exclusion list for "enabling RX/TX after initial configuration (or viceversa; I am really confused here), but I havent got a clue how; as I do not know how to find the right RL_HWREV_XXX flag for my device. > > dmesg shows RealTek 8168/8111 B/C/CP/D/DP/E/F/G PCIe Gigabit Ethernet and pciconf -l -v re0 shows: > re0@pci0:2:0:0: class=0x020000 card=0x816819da chip=0x816810ec rev=0x07 hdr=0x00 > vendor = 'Realtek Semiconductor Co., Ltd.' > device = 'RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller' > > I am grateful for any suggestion towards a solution and I am willing (and able) to assist by patching or debugging my kernel or giving further hw information about my system. > Hrm, does that happen to be RL_HWREV_8411B (0x5c800000) according to the "Chip rev." in the dmesg(8) output? Marius