From owner-freebsd-current@freebsd.org Sat May 1 23:37:45 2021 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 23CFA63C0FF for ; Sat, 1 May 2021 23:37:45 +0000 (UTC) (envelope-from gcr+freebsd-current@tharned.org) Received: from roadkill.tharned.org (tunnel294749-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:107f::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "tharned.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FXlyw6rYfz3J7x; Sat, 1 May 2021 23:37:44 +0000 (UTC) (envelope-from gcr+freebsd-current@tharned.org) Received: from flake.tharned.org ([IPv6:2001:470:1f11:107f:d9b3:cb12:9690:219]) (authenticated bits=0) by roadkill.tharned.org (8.16.1/8.16.1) with ESMTPSA id 141Nbgrm007374 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sat, 1 May 2021 18:37:43 -0500 (CDT) (envelope-from gcr+freebsd-current@tharned.org) X-Authentication-Warning: roadkill.tharned.org: Host [IPv6:2001:470:1f11:107f:d9b3:cb12:9690:219] claimed to be flake.tharned.org From: Greg Rivers To: Stefan Esser Cc: FreeBSD CURRENT Subject: Re: Problems with realtek NIC Date: Sat, 01 May 2021 18:37:42 -0500 Message-ID: <2191438.sMrx5ctUpN@no.place.like.home> In-Reply-To: References: <202105011909.141J9kQ4068083@server.i805.com.br> <2429724.0dHE6SNnxz@no.place.like.home> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.4 (roadkill.tharned.org [IPv6:2001:470:1f10:107f:0:0:0:2]); Sat, 01 May 2021 18:37:43 -0500 (CDT) X-Rspamd-Queue-Id: 4FXlyw6rYfz3J7x X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; TAGGED_FROM(0.00)[freebsd-current] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 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: Sat, 01 May 2021 23:37:45 -0000 On Saturday, 1 May 2021 16:45:03 CDT Stefan Esser wrote: > Am 01.05.21 um 21:48 schrieb Greg Rivers via freebsd-current: > > On Saturday, 1 May 2021 14:09:46 CDT Nilton Jose Rizzo wrote: > >> I using a FreeBSD 14-Current and get random error with my NIC. The watchdog timer send a timeout message and I loose connection temporaly. In logs show only this message: > >> > > Switch to the official Realtek driver in ports: net/realtek-re-kmod > > The "official" RealTek driver is based on a very old version of "our" > driver that was written by Bill Paul. > > It lacks many features that have been introduced in FreeBSD in the > last decade (or even earlier) like NETMAP-Support. > > The RealTek-driver has special cases for some 50 variants of RealTek > Ethernet chips and contains individual firmware patches for nearly all > of them. > > I had started to merge chip specific changes from the official driver > to the FreeBSD driver in the hope to get it to support the RTL8125A/B > chips. But I have stopped that project for lack of RTL8125 documentation, > especially regarding the PHY, which has its own driver module in our > version but not the RealTek code. (And somebody claimed to know that > another FreeBSD developer was working on RTL8125 support but did not > tell who that might be and whether he had documentation.) > > Anyway, there are changes regarding the initialization and error recovery > of different RealTek chips in the official driver that could be merged > into our version. But I do not know whether these changes require the > firmware changes provided by the RealTek driver to correctly work. > Thanks for the information Stefan, and for your work on FreeBSD. My use of the term "official" was apparently inaccurate. I was not aware of the deficiencies in the RealTek driver. I would prefer to use the FreeBSD driver, but I don't for purely pragmatic reasons: the FreeBSD driver continually locks up and resets under load (as described by the OP), while the RealTek driver does not. FWIW, here are the particulars on the RealTek chip-set that I've got: re0: port 0xe000-0xe0ff mem 0xb0804000-0xb0804fff,0xb0800000-0xb0803fff irq 16 at device 0.0 on pci1 re0: Using 1 MSI-X message re0: Chip rev. 0x2c800000 re0: MAC rev. 0x00100000 re0@pci0:1:0:0: class=0x020000 rev=0x06 hdr=0x00 vendor=0x10ec device=0x8168 subvendor=0x1458 subdevice=0xe000 vendor = 'Realtek Semiconductor Co., Ltd.' device = 'RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller' class = network subclass = ethernet Would the FreeBSD Foundation be able to help with getting documentation from RealTek? -- Greg