From owner-freebsd-hackers@freebsd.org Wed Apr 11 22:04:47 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D57FAF9569C for ; Wed, 11 Apr 2018 22:04:46 +0000 (UTC) (envelope-from khanzf@gmail.com) Received: from mail-it0-x236.google.com (mail-it0-x236.google.com [IPv6:2607:f8b0:4001:c0b::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5E2656CB87 for ; Wed, 11 Apr 2018 22:04:46 +0000 (UTC) (envelope-from khanzf@gmail.com) Received: by mail-it0-x236.google.com with SMTP id 19-v6so4570868itw.3 for ; Wed, 11 Apr 2018 15:04:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=x4v4DoJoEqVSPjxMu965qPvKJ3gF3NBPDfGYTvaRPz4=; b=QFb36umc5Mmqou+KerwKHLdLMSxRibwwAM+gswhz+HqiQhJqlA1skGJVZzZkVpyPVe V8bbVrbdcygjMqt4X0WnqXVwTeIN68iAxDhrndfrz2/tOWodj9UETV2Qxd0rn3I8LWJD xdMF1flRwf3PQtJHkrdUPnqx0O4PQapL0On8vMc1HwhKa299uLXnn/q8KOOHO6PH4iOJ r+s03AZEtWcpSDzKNRx/a1Z955zKmyCm/jI53gWCXZRPTNXtlOnxMDt198Vc4Uauyrie uK3IU7hcd3Trl49BRZNQr2kWGu1SDWEUocFr9E1RGWxI/C2zd5qZOZsKk93idYEUBPA9 ENHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=x4v4DoJoEqVSPjxMu965qPvKJ3gF3NBPDfGYTvaRPz4=; b=o6BhRliqcK2yewjo7OexpEnX5Wo0y4j5WKXK8OyM5uL97CuKD33jQslz2+t+Bk78jZ r7C537XBWNAA1vPHtCQjYJU8uy9ILkvq4LFslCmgvHP4SgOKW/HRwxzcOAGmMzdtF63t sK48DSE1V6sPL/COD2K4xVDOWoh4niv/cFgzpy3urDwEFLObY9F8CVRPlz5p+d28XYPP fBM1JIM9B0urcSh6Cfcfd9YM/oX4oSagIkgmi8qUMlEZzxRGZEnrf5MkajGGsX012yk6 r7qAtXudU+WdTIGQrZC47feGV7RovobEYpFyf+1Kuigv7nuMhbb1iRkhvWFTC7NXOsnw lLmA== X-Gm-Message-State: ALQs6tDrcKfwRTLp+p2BMCCS6Hf/kiP2dYHYOcYe5FkstmCEnW+JrsgO GWx4pXYFsulEW/YH1H8TTS3akxHmZyznwZWYMhI= X-Google-Smtp-Source: AIpwx4/0MivvISDLB1PdYUGltOjj9BDFqxV2XrgjtBY6C6G0+kacMDfHx78oGEVWUXmVZqT6KQBTsQsCjQ57kIqAMdA= X-Received: by 2002:a24:76c4:: with SMTP id z187-v6mr5932047itb.138.1523484285301; Wed, 11 Apr 2018 15:04:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.192.242.161 with HTTP; Wed, 11 Apr 2018 15:04:24 -0700 (PDT) In-Reply-To: <0466ec9d-b517-bee1-fa5f-b23ed56e7d36@multiplay.co.uk> References: <201804111801.w3BI1D9x028952@pdx.rh.CN85.dnsmgr.net> <90c5e785-1e73-0bcc-2e36-24cabce74c71@systella.fr> <0466ec9d-b517-bee1-fa5f-b23ed56e7d36@multiplay.co.uk> From: Farhan Khan Date: Wed, 11 Apr 2018 18:04:24 -0400 Message-ID: Subject: Re: Realtek re(4) driver To: Steven Hartland Cc: freebsd-hackers@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Apr 2018 22:04:47 -0000 On Wed, Apr 11, 2018 at 5:22 PM, Steven Hartland wrote: > > > On 11/04/2018 22:01, BERTRAND Jo=C3=ABl wrote: > >> Rodney W. Grimes a =C3=A9crit : >> >>> SO if you want to submit your pciconf -lv, >>> PLEASE include the dmesg output for the device. >>> >> I don't know if it's enough as I cannot reboot with FreeBSD >> officiel >> driver. I use Realtek one : >> >> Mar 24 21:35:06 pythagore kernel: re0: > Controller> port 0xe000-0xe0ff mem >> 0xf7d00000-0xf7d00fff,0xf0000000-0xf0003fff irq 19 at device 0.0 on pci2 >> Mar 24 21:35:06 pythagore kernel: re0: Using Memory Mapping! >> Mar 24 21:35:06 pythagore kernel: re0: Using 1 MSI-X message >> Mar 24 21:35:06 pythagore kernel: re0: version:1.94.01 >> Mar 24 21:35:06 pythagore kernel: re0: Ethernet address: d8:cb:8a:7d:10:= 59 >> Mar 24 21:35:06 pythagore kernel: re0: Ethernet address: d8:cb:8a:7d:10:= 59 >> Mar 24 21:35:06 pythagore kernel: re0: link state changed to UP >> >> This adapter doesn't work as expected on diskless workstation wi= th >> kernel driver. No problem with Realtek driver. >> >> re0@pci0:2:0:0: class=3D0x020000 card=3D0x78511462 chip=3D0x816810ec rev= =3D0x0c >> hdr=3D0x00 >> vendor =3D 'Realtek Semiconductor Co., Ltd.' >> device =3D 'RTL8111/8168/8411 PCI Express Gigabit Ethernet >> Controller' >> class =3D network >> subclass =3D ethernet >> >> I know you said you couldn't do this, but it may well be very useful to > compare this to the output when using the built in FreeBSD driver as it m= ay > highlight a key difference. > > I'm thinking given the ages of the Realtek driver we could be looking at = a > different operational mode, different MSI-X count etc. > > Here's some other links with potentially relevant info: > https://forums.freebsd.org/threads/replacing-realtek-re-driver.55861/ > https://unixblogger.com/2011/10/18/the-pain-of-an-realtek-rt > l8111rtl8168-ethernet-card/ > > Regards > Steve > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org= " > Hi all, I would love to assist and perform testing in any way I can. I have 2 devices running Realtek devices. One is a 4-port NIC. If we can narrow-down the issue and create a reproduceable failure, I might be able to hunt through the code to help identify the problem (I am primarily tapped on rtwn(4), but I would not mind lending an extra pair of eye-balls) Laptop machine running 12.0-CURRENT: re0@pci0:3:0:0: class=3D0x020000 card=3D0x21de103c chip=3D0x813610ec rev=3D= 0x08 hdr=3D0x00 vendor =3D 'Realtek Semiconductor Co., Ltd.' device =3D 'RTL8101/2/6E PCI Express Fast Ethernet controller' class =3D network subclass =3D ethernet Think Server running 11.1-RELEASE-p8: re0@pci0:4:0:0: class=3D0x020000 card=3D0x012310ec chip=3D0x816810ec rev=3D= 0x07 hdr=3D0x00 vendor =3D 'Realtek Semiconductor Co., Ltd.' device =3D 'RTL8111/8168/8411 PCI Express Gigabit Ethernet Controll= er' class =3D network subclass =3D ethernet re1@pci0:5:0:0: class=3D0x020000 card=3D0x012310ec chip=3D0x816810ec rev=3D= 0x07 hdr=3D0x00 vendor =3D 'Realtek Semiconductor Co., Ltd.' device =3D 'RTL8111/8168/8411 PCI Express Gigabit Ethernet Controll= er' class =3D network subclass =3D ethernet re2@pci0:6:0:0: class=3D0x020000 card=3D0x012310ec chip=3D0x816810ec rev=3D= 0x07 hdr=3D0x00 vendor =3D 'Realtek Semiconductor Co., Ltd.' device =3D 'RTL8111/8168/8411 PCI Express Gigabit Ethernet Controll= er' class =3D network subclass =3D ethernet re3@pci0:7:0:0: class=3D0x020000 card=3D0x012310ec chip=3D0x816810ec rev=3D= 0x07 hdr=3D0x00 vendor =3D 'Realtek Semiconductor Co., Ltd.' device =3D 'RTL8111/8168/8411 PCI Express Gigabit Ethernet Controll= er' class =3D network subclass =3D ethernet pcib9@pci0:8:0:0: class=3D0x060401 card=3D0x30a517aa chip=3D0x88931283 rev= =3D0x41 hdr=3D0x01 vendor =3D 'Integrated Technology Express, Inc.' device =3D 'IT8893E PCIe to PCI Bridge' class =3D bridge subclass =3D PCI-PCI