From owner-freebsd-net@freebsd.org Sun Aug 19 14:21:18 2018 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 DFCCF1069D13 for ; Sun, 19 Aug 2018 14:21:17 +0000 (UTC) (envelope-from bogorodskiy@gmail.com) 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 78C3B781EF for ; Sun, 19 Aug 2018 14:21:17 +0000 (UTC) (envelope-from bogorodskiy@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 3D65E1069D12; Sun, 19 Aug 2018 14:21:17 +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 1B75F1069D11 for ; Sun, 19 Aug 2018 14:21:17 +0000 (UTC) (envelope-from bogorodskiy@gmail.com) Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8A4B3781EC for ; Sun, 19 Aug 2018 14:21:16 +0000 (UTC) (envelope-from bogorodskiy@gmail.com) Received: by mail-ed1-x52b.google.com with SMTP id x5-v6so6995975edr.0 for ; Sun, 19 Aug 2018 07:21:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=Fl+MLtCXa5HTzVZQl1yZ1DQ26qYe5E+cnbTCLDtBrDA=; b=aVX0KSogsBxuI+LHcre/07nq2WN4aeCSrzQNExT1uPKb3A8TG4ewu1fi6pHGL0htRI 3dFv6mjAO5NzvW5HSm4ZvTdSVfNfvRaWJjvg7QfWG85v3gdyDKjCTvmf7wwGZ+LOU6ys 7/gg0KCxF5gpderZ1A1ma+04UnC57jPhzyrOZicTCG6OnkcANPWR/a4Eoo9WCW49Hl2p u/OUgyC7uJakdsujLDiQ8bYj/sQSrvY+rrGEGl707BFzFFuyQKJdQFjtImeeDaVq4186 HWJxc5pr7V5RWW3RjfGLkyzEpDNPObXntq1Ga1GUL2Xhwz5ZRmXn3UEhk0Xpu3BWI6PI +hug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:subject:message-id :mime-version:content-disposition:user-agent; bh=Fl+MLtCXa5HTzVZQl1yZ1DQ26qYe5E+cnbTCLDtBrDA=; b=jZFXJn4yiz0UOiUh67SQzNzhdXy5q6I98goqsLVQLS/ZlSoRR+9PWpbJUD8H3q2jaZ sRYq+d0i1WG5sRqeVBCEIKD5oogcgse4kKYIZdwlb61MFrydZ7B50G1IyQ9ljHV6Z5n+ 1fv7ar0hZ7IMK8lNtZmTC1nBWK5+S9vaDPbCJGl5yjqYT4nggswDopSyHTSy79I4m1qS ybyvxAOG7xk9ebAXDsuvEO5OD9CfWW2WP8X+DJtsweJCR61wiNWYq2fbCMJyCWtpJNEy A6EVdgk2zGhhOlytt5r3oYSMJo1hWsBL7MwuhoyAH5U/Z2mcROl+oql+ed6hMiTDEvYK QM9w== X-Gm-Message-State: AOUpUlFuqDWvmZs8P0AOWX0urNvlN+WDyifiqEN06imSHYHSvQOWeDWi Gii9jI1vwJqlNPWAGojbQ9hl+uzc X-Google-Smtp-Source: AA+uWPzY5VyQHoyVGwhclcd8SXT3chTUpOE9wNjcJQ6LjGYUWGrzhCgT5QZ0TU4U1YNq2SpyqDjUtQ== X-Received: by 2002:a50:ae62:: with SMTP id c89-v6mr51028418edd.257.1534688475208; Sun, 19 Aug 2018 07:21:15 -0700 (PDT) Received: from kloomba ([77.94.198.250]) by smtp.gmail.com with ESMTPSA id g1-v6sm4569692edr.52.2018.08.19.07.21.13 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Aug 2018 07:21:14 -0700 (PDT) Sender: Roman Bogorodskiy Date: Sun, 19 Aug 2018 18:21:08 +0400 From: Roman Bogorodskiy To: net@freebsd.org Subject: igb: device_attach: igb1 attach returned 6 Message-ID: <20180819142106.GA1539@kloomba> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="RnlQjJ0d97Da+TV1" Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Aug 2018 14:21:18 -0000 --RnlQjJ0d97Da+TV1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I have a 4-port Intel I350 network card. When I plug sfp rj45 module to one of the ports, devices fails to initialise, e.g. ifconfig(8) only shows three igb interfaces (expected to be four): igb0: flags=3D8802 metric 0 mtu 1500 options=3De505bb ether 00:12:c0:00:e9:14 media: Ethernet autoselect status: no carrier nd6 options=3D29 igb1: flags=3D8802 metric 0 mtu 1500 options=3De505bb ether 00:12:c0:00:e9:16 media: Ethernet autoselect status: no carrier nd6 options=3D29 igb2: flags=3D8802 metric 0 mtu 1500 options=3De505bb ether 00:12:c0:00:e9:17 media: Ethernet autoselect status: no carrier nd6 options=3D29 dmesg has the following: igb0: port 0xe060-0xe07f mem= 0xf7a00000-0xf7bfffff,0xf7c0c000-0xf7c0ffff irq 16 at device 0.0 on pci1 = =20 igb0: attach_pre capping queues at 8 igb0: using 1024 tx descriptors and 1024 rx descriptors igb0: msix_init qsets capped at 8 igb0: pxm cpus: 4 queue msgs: 9 admincnt: 1 igb0: using 4 rx queues 4 tx queues igb0: Using MSIX interrupts with 5 vectors igb0: allocated for 4 tx_queues igb0: allocated for 4 rx_queues igb0: Ethernet address: 00:12:c0:00:e9:14 igb0: netmap queues/slots: TX 4/1024, RX 4/1024 igb1: port 0xe040-0xe05f mem= 0xf7800000-0xf79fffff,0xf7c08000-0xf7c0bfff irq 17 at device 0.1 on pci1 = =20 igb1: attach_pre capping queues at 8 igb1: Setup of Shared code failed, error -2 igb1: IFDI_ATTACH_PRE failed 6 device_attach: igb1 attach returned 6 igb1: port 0xe020-0xe03f mem= 0xf7600000-0xf77fffff,0xf7c04000-0xf7c07fff irq 18 at device 0.2 on pci1 = =20 igb1: attach_pre capping queues at 8 igb1: using 1024 tx descriptors and 1024 rx descriptors igb1: msix_init qsets capped at 8 igb1: pxm cpus: 4 queue msgs: 9 admincnt: 1 igb1: using 4 rx queues 4 tx queues igb1: Using MSIX interrupts with 5 vectors igb1: allocated for 4 tx_queues igb1: allocated for 4 rx_queues igb1: Ethernet address: 00:12:c0:00:e9:16 igb1: netmap queues/slots: TX 4/1024, RX 4/1024 igb2: port 0xe000-0xe01f mem= 0xf7400000-0xf75fffff,0xf7c00000-0xf7c03fff irq 19 at device 0.3 on pci1 = =20 igb2: attach_pre capping queues at 8 igb2: using 1024 tx descriptors and 1024 rx descriptors igb2: msix_init qsets capped at 8 igb2: pxm cpus: 4 queue msgs: 9 admincnt: 1 igb2: using 4 rx queues 4 tx queues igb2: Using MSIX interrupts with 5 vectors igb2: allocated for 4 tx_queues igb2: allocated for 4 rx_queues igb2: Ethernet address: 00:12:c0:00:e9:17 igb2: netmap queues/slots: TX 4/1024, RX 4/1024 And in pciconf(8) it shows as: igb0@pci0:1:0:0: class=3D0x020000 card=3D0x00101b6d chip=3D0x1522808= 6 rev=3D0x01 hdr=3D0x00 = =20 vendor =3D 'Intel Corporation' = = =20 device =3D 'I350 Gigabit Fiber Network Connection' = = =20 class =3D network = = =20 subclass =3D ethernet = = =20 none1@pci0:1:0:1: class=3D0x020000 card=3D0x00101b6d chip=3D0x1522808= 6 rev=3D0x01 hdr=3D0x00 = =20 vendor =3D 'Intel Corporation' = = =20 device =3D 'I350 Gigabit Fiber Network Connection' = = =20 class =3D network = = =20 subclass =3D ethernet = = =20 igb1@pci0:1:0:2: class=3D0x020000 card=3D0x00101b6d chip=3D0x1522808= 6 rev=3D0x01 hdr=3D0x00 = =20 vendor =3D 'Intel Corporation' = = =20 device =3D 'I350 Gigabit Fiber Network Connection' = = =20 class =3D network = = =20 subclass =3D ethernet = = =20 igb2@pci0:1:0:3: class=3D0x020000 card=3D0x00101b6d chip=3D0x1522808= 6 rev=3D0x01 hdr=3D0x00 = =20 vendor =3D 'Intel Corporation' = = =20 device =3D 'I350 Gigabit Fiber Network Connection' = = =20 class =3D network = = =20 subclass =3D ethernet=20 Any suggestions what could be wrong with that? The host is FreeBSD 12.0-ALPHA1 amd64 @ r337885. I don't know how/if it worked before, just plugged that in. Roman Bogorodskiy --RnlQjJ0d97Da+TV1 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJbeXzSAAoJEMltX/4IwiJqH4oH/R7f1oPBDZziqK48s30dQnS7 D+IN0wY5Pe9wnN8y0mFULHamgOnFVsAu9JcU/7jJH0GaonoprznjsFkZmLfH0jWI /4KvAIqwTsWyGqBvC/YVi4TIbrEASczZ83GS64EQlYsYlq+xHyGegmpqzgOsIVDd AZfj857yFUoScBn1d5RiYnUwMRFoV/ijjKg6L6DDJ/r4DL3KgMlKN5ZDRRigUuuC 7EzLMTBIQxrgLSttcM6o8k8gCi+LGc5D0RelPAKCLPsqA+cmlfJbk/jB+b7CtuFa HlhYxmeP3oZ0prZSzoPM+VphYCNlilSDUySSQCHH6s6kqNCXbnGJabH/5bCU9SU= =5y2z -----END PGP SIGNATURE----- --RnlQjJ0d97Da+TV1--