From owner-freebsd-net@freebsd.org Fri Feb 8 09:08:19 2019 Return-Path: Delivered-To: freebsd-net@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 A6B7C14D9327 for ; Fri, 8 Feb 2019 09:08:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 3F11370732 for ; Fri, 8 Feb 2019 09:08:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 030E714D9323; Fri, 8 Feb 2019 09:08:19 +0000 (UTC) Delivered-To: net@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 D33CA14D9321 for ; Fri, 8 Feb 2019 09:08:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 681367072E for ; Fri, 8 Feb 2019 09:08:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 873AB15014 for ; Fri, 8 Feb 2019 09:08:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x1898Hrg048380 for ; Fri, 8 Feb 2019 09:08:17 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x1898H3t048376 for net@FreeBSD.org; Fri, 8 Feb 2019 09:08:17 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 235147] em(4) driver not working for Intel 82583V Gigabit chip Date: Fri, 08 Feb 2019 09:08:14 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.0-RELEASE X-Bugzilla-Keywords: IntelNetworking, regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: kumba@gentoo.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Feb 2019 09:08:19 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D235147 --- Comment #5 from Joshua Kinard --- (In reply to Krzysztof Galazka from comment #4) I gave it a really quick test by trying to apply the diff from D18980 via '= cat | patch -p2' while in /usr/src/sys, and rebuilding a GENERIC 12.0-RELEASE-p3 kernel on a secondary machine. Copied the newer /boot/kern= el over to the networking appliance via USB and booted into the new kernel.=20 Doesn't seem to have had any effect: FreeBSD 12.0-RELEASE-p3 GENERIC amd64 FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on LLVM 6.0.1) [snip] pcib1: irq 16 at device 28.0 on pci0 pci1: on pcib1 em0: port 0xe000-0xe01f mem 0xdfe00000-0xdfe1ffff,0xdfe20000-0xdfe23fff irq 16 at device 0.0 on pci1 em0: Using 1024 tx descriptors and 1024 rx descriptors em0: Using 1 rx queues 1 tx queues em0: Using MSI-X interrupts with 2 vectors em0: Ethernet address: xx:xx:xx:xx:xx:xx em0: netmap queues/slots: TX 1/1024, RX 1/1024 [snip] # ifconfig -a em0: flags=3D8843 metric 0 mtu 1500 =20=20=20=20=20=20=20 options=3D81249b ether xx:xx:xx:xx:xx:xx inet a.b.c.d netmask 0xffffff00 broadcast a.b.c.255 media: Ethernet autoselect (1000baseT ) status: active nd6 options=3D29 # ping 8.8.8.8 PING 8.8.8.8 (8.8.8.8): 56 data bytes ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host I can't rule out that I need to apply other parts of that patch, but I find that Phabricator interface to be incredibly confusing. Is there a classic gitweb sitting around somewhere that will cough up a standard unidiff patch= of the whole commit? Or maybe the patch alone doesn't fix it? --- So that said, the info on this chipset not being compatible w/ MSI-X was ve= ry helpful, thank you. I had to dig around, as the iflib change made obsolete= the old "hw.x.*" tunables in /boot/loader.conf (and that's all that stupid Goog= le wants to find right now), but I found the correct tunable names for newer i= flib stuff, and disabled MSI-X there. After another reboot, we have contact: # ping 8.8.8.8 PING 8.8.8.8 (8.8.8.8): 56 data bytes 64 bytes from 8.8.8.8: icmp_seq=3D0 ttl=3D120 time=3D12.144 ms 64 bytes from 8.8.8.8: icmp_seq=3D1 ttl=3D120 time=3D12.667 ms 64 bytes from 8.8.8.8: icmp_seq=3D2 ttl=3D120 time=3D10.681 ms 64 bytes from 8.8.8.8: icmp_seq=3D3 ttl=3D120 time=3D10.519 ms ^C --- 8.8.8.8 ping statistics --- 4 packets transmitted, 4 packets received, 0.0% packet loss round-trip min/avg/max/stddev =3D 10.519/11.503/12.667/0.923 ms root@armenelos:~ # So! It looks like the fix for these specific chips would be for em(4) to automatically disable MSI-X when it detects the specific PCI ID of these chipsets. --=20 You are receiving this mail because: You are the assignee for the bug.=