From owner-freebsd-hardware@FreeBSD.ORG Fri Feb 13 16:07:05 2015 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 174B384B; Fri, 13 Feb 2015 16:07:05 +0000 (UTC) Received: from mail-ie0-f175.google.com (mail-ie0-f175.google.com [209.85.223.175]) (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 D992822E; Fri, 13 Feb 2015 16:07:01 +0000 (UTC) Received: by ierx19 with SMTP id x19so20608506ier.3; Fri, 13 Feb 2015 08:07:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=ms6Kw84DFNv5/NjGGEqnzy0RFjmQ99Xk+eKUMSi0gAo=; b=cPDdtcaVbuyKXbvtLZrNKD1gKQe+E8UFcr3cLdCRbgT3BpBMH4Vm5++SwT1Cs8mh2e m3nEGFNITw901w/9EbsbpFJjPW6U3F/Fg9sYdKhvhbQYfHH1AjEN2sYbAXPqTieuWt8o 4rV9kzk9SOZr1RInkNemA1QiWTYkjQ2DJkeorT3JyKnzlyGBtz4Qvfgxcqmd1bbjBIQy tlSpEAnXGmZ/8PHj2cuBrYNPYn0WjTl0OpULSyGjZH5R1VBnTUAdEFrRo5TYpV/q+DtL +aCUKg8QEfaGmSKqeSgGXY6egrzN6HXpaG+t+GnAGAy6yLC9aoS/sfV4yI5llghPPGic +o2A== X-Received: by 10.42.152.201 with SMTP id j9mr10678289icw.25.1423843620772; Fri, 13 Feb 2015 08:07:00 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.107.138 with HTTP; Fri, 13 Feb 2015 08:06:40 -0800 (PST) From: Luca Pizzamiglio Date: Fri, 13 Feb 2015 17:06:40 +0100 Message-ID: Subject: pcie Realtek 8168G issues (re driver) To: FreeBSD Current , FreeBSD Hackers , freebsd-hardware@freebsd.org, freebsd-network@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Feb 2015 16:07:05 -0000 Hi, I'm Luca, I've some issues using a PCIe Realtek Ethernet board: re0@pci0:3:0:0: class=0x020000 card=0x012310ec chip=0x816810ec rev=0x0c hdr=0x00 vendor = 'Realtek Semiconductor Co., Ltd.' device = 'RTL8111/8168B PCI Express Gigabit Ethernet controller' class = network subclass = ethernet bar [10] = type I/O Port, range 32, base 0x1000, size 256, enabled bar [18] = type Memory, range 64, base 0x90500000, size 4096, enabled bar [20] = type Prefetchable Memory, range 64, base 0x90400000, size 16384, enabled cap 01[40] = powerspec 3 supports D0 D1 D2 D3 current D0 cap 05[50] = MSI supports 1 message, 64 bit cap 10[70] = PCI-Express 2 endpoint IRQ 1 max data 128(128) link x1(x1) speed 2.5(2.5) ASPM disabled(L0s/L1) cap 11[b0] = MSI-X supports 4 messages Table in map 0x20[0x0], PBA in map 0x20[0x800] cap 03[d0] = VPD ecap 0001[100] = AER 1 0 fatal 0 non-fatal 0 corrected ecap 0002[140] = VC 1 max VC0 ecap 0003[160] = Serial 1 01000000684ce000 ecap 0018[170] = LTR 1 Rx and Tx don't work. After some minutes the interface is activated I get kernel panic. I've already tried to disable MSIx and MSI. It seems a DMA problem, rx fill the 256 descriptors and the nothing else until the panic. netstat -s shows now new packets. I filled a bug report with more infos: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197535 could someone kindly pointing some ideas? Best regards, Luca From owner-freebsd-hardware@FreeBSD.ORG Fri Feb 13 18:34:56 2015 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8DE1CBD1; Fri, 13 Feb 2015 18:34:56 +0000 (UTC) Received: from mail-pd0-f171.google.com (mail-pd0-f171.google.com [209.85.192.171]) (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 5C7318F1; Fri, 13 Feb 2015 18:34:56 +0000 (UTC) Received: by pdjz10 with SMTP id z10so20969974pdj.12; Fri, 13 Feb 2015 10:34:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:mime-version:in-reply-to:content-type :content-transfer-encoding:message-id:cc:from:subject:date:to; bh=K3/M51oLDngo5JZ1AI+zcHFYA+08bbHJbl6aiusDeA8=; b=w35uSnBL/y0QwQiJAGsRmAyvT4RK69tyMULA2gMG0rhrkVvHLBS69g4JcS511EQgoX qf9e5niGZEOjJeivJMkn3aoGvwLe44NOt9IHV0J1OzwQKQQ1m94MunrY27uESDzNlIGZ zOhqtZ8VHYkITXObn8RNXq1l0zLjTuJNU2VcSeZaZsBIiznJVF7QmMNsvOv6DFlnbuAA /JRepC8xqXm0nCqh4Jyo3GSlymYHYSvAsUVvUqroUAGRTjYFaSs6GU2U8jbyh7RCqDgZ Fs1IwPGI57aHafn0pgC3mstIB9g9seC299ndfVdoVTPxRyht1HgpsgWGlwnXkg+GOJ6V 0vyA== X-Received: by 10.68.253.101 with SMTP id zz5mr17473240pbc.50.1423852490562; Fri, 13 Feb 2015 10:34:50 -0800 (PST) Received: from [10.0.37.153] (tessier.creepingfur.is. [70.36.196.188]) by mx.google.com with ESMTPSA id du13sm986749pdb.65.2015.02.13.10.34.49 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Feb 2015 10:34:49 -0800 (PST) References: Mime-Version: 1.0 (1.0) In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-Id: <4E4BF84E-F6FD-4D25-8B2C-2B443894697B@gmail.com> X-Mailer: iPad Mail (12B435) From: Ben Perrault Subject: Re: pcie Realtek 8168G issues (re driver) Date: Fri, 13 Feb 2015 10:34:49 -0800 To: Luca Pizzamiglio Cc: FreeBSD Hackers , "freebsd-network@freebsd.org" , FreeBSD Current , "freebsd-hardware@freebsd.org" X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Feb 2015 18:34:56 -0000 Luca, I've had the same issue with this interface on both PCIe boards and embedded= in a handful of Lenovo products. The one, fairly ugly workaround I've found= that makes it work well enough is disable tso ( i.e. ifconfig re0 down && i= fconfig re0 -tso && ifconfig re0 up ). This also seems to stop the panics un= der current. I'm not sure it will work for you - but it has on everyone of those interfac= es I've dealt with.=20 Good luck, -bp > On Feb 13, 2015, at 8:06 AM, Luca Pizzamiglio = wrote: >=20 > Hi, I'm Luca, >=20 > I've some issues using a PCIe Realtek Ethernet board: > re0@pci0:3:0:0: class=3D0x020000 card=3D0x012310ec chip=3D0x816810ec rev=3D= 0x0c hdr=3D0x00 > vendor =3D 'Realtek Semiconductor Co., Ltd.' > device =3D 'RTL8111/8168B PCI Express Gigabit Ethernet controller' > class =3D network > subclass =3D ethernet > bar [10] =3D type I/O Port, range 32, base 0x1000, size 256, enabled > bar [18] =3D type Memory, range 64, base 0x90500000, size 4096, enabl= ed > bar [20] =3D type Prefetchable Memory, range 64, base 0x90400000, > size 16384, enabled > cap 01[40] =3D powerspec 3 supports D0 D1 D2 D3 current D0 > cap 05[50] =3D MSI supports 1 message, 64 bit > cap 10[70] =3D PCI-Express 2 endpoint IRQ 1 max data 128(128) link x1(x= 1) > speed 2.5(2.5) ASPM disabled(L0s/L1) > cap 11[b0] =3D MSI-X supports 4 messages > Table in map 0x20[0x0], PBA in map 0x20[0x800] > cap 03[d0] =3D VPD > ecap 0001[100] =3D AER 1 0 fatal 0 non-fatal 0 corrected > ecap 0002[140] =3D VC 1 max VC0 > ecap 0003[160] =3D Serial 1 01000000684ce000 > ecap 0018[170] =3D LTR 1 >=20 > Rx and Tx don't work. After some minutes the interface is activated I > get kernel panic. > I've already tried to disable MSIx and MSI. > It seems a DMA problem, rx fill the 256 descriptors and the nothing > else until the panic. netstat -s shows now new packets. >=20 > I filled a bug report with more infos: > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D197535 >=20 > could someone kindly pointing some ideas? >=20 > Best regards, > Luca > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"=