From owner-freebsd-drivers@freebsd.org Thu May 4 15:27:22 2017 Return-Path: Delivered-To: freebsd-drivers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3DBBDD5E9F0 for ; Thu, 4 May 2017 15:27:22 +0000 (UTC) (envelope-from dmalmas@gmail.com) Received: from mail-wm0-x233.google.com (mail-wm0-x233.google.com [IPv6:2a00:1450:400c:c09::233]) (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 BCCC711FB for ; Thu, 4 May 2017 15:27:21 +0000 (UTC) (envelope-from dmalmas@gmail.com) Received: by mail-wm0-x233.google.com with SMTP id w64so22340012wma.0 for ; Thu, 04 May 2017 08:27:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=B9F12gGHvc7F7DqBuD4jqh7dKeaURuOK5C0x6jjORfE=; b=GayedtiLw4T3pu55nkXsv0xFTtL8Ti9GIJbjhjvbjzWCcDAN2JGXcCxK0Rv+7QfLer 1kPgoXic8+HpJFwrL6vXBfNvg7cGc3ZXfGS8QewcE/s9F+6o97AzekbhPjwskmY5azfI 3cmBnFr7LT6S03UTxrDgBKFIB3cuZPDOdUnzqRLeJ/3SO6FpDDoS0Yy4achzom3rAxf2 KkDUBbROPCKhtfo6oymxc1Q6ad2xeFag3prb5SW8x0Y7ua7lCK0EIcHF0765TguoL3mw KmB0F8qBqWz7KTnedEx7fValC7Zy1i48i7paKzimHj6r6cbtBn5nWiNDctV3ZHaTEQKE MS/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=B9F12gGHvc7F7DqBuD4jqh7dKeaURuOK5C0x6jjORfE=; b=HN/OYKdaJ8Skwvpdbrf3FcEl8O2oLpE0ezu7GAwdzEDgiPz/dP4VSUK+0t0ytQK7lw aMrPFViGDhYzwsJDPkuUWC19qJlw66VYNLI87XR7Xahc+/W6LzNBfZOK02PFJQyrbVUt koplnAQBzRn/wARioukOUWlNSICtaLA4zhfGr/kyvQ+sMUKkk3VuHBrCH2O3JANa4Gb2 vchpl+0m1ikS6ugcc9vzpv8VI5d9MeCdrFIUNlATm2xPs6n+wErxliMCLigbligw4JSG I7n4ANiKG1sEXq0PvTwNXO5t+2w14JMsv2TYRqwXgtMOcrKq7DhgjiYQ02F5A5n+B7oR Ibcg== X-Gm-Message-State: AN3rC/6VsRNGHUQa4hQenerJ//XdxuC4JmriSti0ukGZiOBhzmf++CDH fO0YlrfbxonhPzoorQFRNm0I7lsZcmjo X-Received: by 10.28.185.211 with SMTP id j202mr2176643wmf.65.1493911639667; Thu, 04 May 2017 08:27:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.113.134 with HTTP; Thu, 4 May 2017 08:27:19 -0700 (PDT) From: David Miguel Almas Date: Thu, 4 May 2017 16:27:19 +0100 Message-ID: Subject: drivers for HPE FlexFabric 10Gb 4-port 536FLR-T ? To: freebsd-drivers@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 May 2017 15:27:22 -0000 Hi all, we're using FreeBSD 11.0-RELEASE-p8 (OPNsense 17.1.4-amd64) on a HP DL360 Gen9 server. We've just received a new NIC, a HPE FlexFabric 10Gb 4-port 536FLR-T. The NIC isn't recognized leaving this information in 'pciconf -lv': *none145@pci0:4:0:0: class=3D0x020000 card=3D0x00ec1590 chip=3D0x16a110= 77 rev=3D0x11 hdr=3D0x00 vendor =3D 'QLogic Corp.' class =3D ne= twork subclass =3D ethernetnone146@pci0:4:0:1: class=3D0x020000 card=3D0x00= ec1590 chip=3D0x16a11077 rev=3D0x11 hdr=3D0x00 vendor =3D 'QLogic Corp.' class =3D network subclass =3D ethernetnone147@pci0:4:0:2: class=3D0x020000 card=3D0x00ec1590 chip=3D0x16a11077 rev=3D0x11 hdr=3D0x00 vendor =3D 'QLogic Corp.' class =3D network subclass =3D ethernetnone148@pci0:4:0:3: class=3D0x020000 card=3D0x00ec1590 chip=3D0x16a11077 rev=3D0x11 hdr=3D0x00 vendor =3D 'QLogic Corp.' class =3D network subclass =3D ethernet* The following information's in *dmesg*: *pci7: at device 0.0 (no driver attached)pci7: at device 0.1 (no driver attached)pci7: at device 0.2 (no driver attached)pci7: at device 0.3 (no driver attached)* According to '*https://www.freebsd.org/cgi/man.cgi?query=3Dbxe&sektion=3D4&= manpath=3Dfreebsd-release-ports *' and the information below from HPE's site, we're trying to use the if_bxe driver but with no results... *=C2=AB=C2=AB=C2=ABThe HPE FlexFabric 10Gb 4-port 536FLR-T Adapter is a 4-p= ort 10GBASE-T adapter, featuring the 57840S 10 Gb Ethernet controller from Qlogic in a PCIe 3.0 compliant form factor designed for HPE ProLiant Gen9 rack servers.=C2=BB=C2=BB=C2=BB * Any ideas / suggestions? Thanks in advance, --=20 David Almas --------------------------- =E2=80=9CFear is not real. The only place that fear can exist is in our tho= ughts of the future. It is a product of our imagination, causing us to fear things that do not at present and may not ever exist. That is near insanity. Do not misunderstand me: danger is very real but fear is a choice.=E2=80=9D =E2=80=95 Will Smith, After Earth From owner-freebsd-drivers@freebsd.org Fri May 5 08:22:08 2017 Return-Path: Delivered-To: freebsd-drivers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6ABE0D5E80B for ; Fri, 5 May 2017 08:22:08 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward1h.cmail.yandex.net (forward1h.cmail.yandex.net [IPv6:2a02:6b8:0:f35::11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Yandex CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E10E9995 for ; Fri, 5 May 2017 08:22:07 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [77.88.29.84]) by forward1h.cmail.yandex.net (Yandex) with ESMTP id 7D1C32125C; Fri, 5 May 2017 11:21:56 +0300 (MSK) Received: from smtp1p.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp1p.mail.yandex.net (Yandex) with ESMTP id 6D7F91780B7F; Fri, 5 May 2017 11:21:54 +0300 (MSK) Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id GbTh3GcMwt-Ls3OS16e; Fri, 05 May 2017 11:21:54 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1493972514; bh=oC2jJz+x67FtKVpyzB03oNCdolBWRuL5NTQbj0nvVyk=; h=Subject:To:References:From:Message-ID:Date:In-Reply-To; b=DKdXkWXnGpCQi5Wmag4+7XcQuMLHLTEqY/VC1Gm1nc15yr8lKTV50jaz+quz3syYC 3B2s1gj36zwng97uWUksS0wmP/hEzz2ZzCh4H3KhWnqTdJfW5+ZmW5yLMlt5QoCLr5 178gRfjYbL1f2yIoyHxcJ8KvCjoHf9vjahdwRXyU= Authentication-Results: smtp1p.mail.yandex.net; dkim=pass header.i=@yandex.ru X-Yandex-Suid-Status: 1 0,1 0 Subject: Re: drivers for HPE FlexFabric 10Gb 4-port 536FLR-T ? To: David Miguel Almas , freebsd-drivers@freebsd.org References: From: "Andrey V. Elsukov" Openpgp: id=E6591E1B41DA1516F0C9BC0001C5EA0410C8A17A Message-ID: <2f4f44c7-b4fe-312f-3e23-5322ec350502@yandex.ru> Date: Fri, 5 May 2017 11:20:46 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.0.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ksfBtJANtWK9XWQ0PQEmattmFl9GiW6DK" X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 May 2017 08:22:08 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --ksfBtJANtWK9XWQ0PQEmattmFl9GiW6DK Content-Type: multipart/mixed; boundary="XmrjRkgng3dnqpMaMk19so18ioH9fgb9B"; protected-headers="v1" From: "Andrey V. Elsukov" To: David Miguel Almas , freebsd-drivers@freebsd.org Message-ID: <2f4f44c7-b4fe-312f-3e23-5322ec350502@yandex.ru> Subject: Re: drivers for HPE FlexFabric 10Gb 4-port 536FLR-T ? References: In-Reply-To: --XmrjRkgng3dnqpMaMk19so18ioH9fgb9B Content-Type: multipart/mixed; boundary="------------740B254162948AA97412597E" Content-Language: en-US This is a multi-part message in MIME format. --------------740B254162948AA97412597E Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 04.05.2017 18:27, David Miguel Almas wrote: > Hi all, >=20 > we're using FreeBSD 11.0-RELEASE-p8 (OPNsense 17.1.4-amd64) on a HP DL3= 60 > Gen9 server. >=20 > We've just received a new NIC, a HPE FlexFabric 10Gb 4-port 536FLR-T. >=20 > The NIC isn't recognized leaving this information in 'pciconf -lv': > *none145@pci0:4:0:0: class=3D0x020000 card=3D0x00ec1590 chip=3D0x16= a11077 >=20 > Any ideas / suggestions? According to the linux code, it should work with bxe(4) driver, but you need to patch the driver's device table to be able recognize the card. You can try attached patch and recompile the kernel. --=20 WBR, Andrey V. Elsukov --------------740B254162948AA97412597E Content-Type: text/x-patch; name="bxe.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="bxe.diff" Index: sys/dev/bxe/bxe.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/dev/bxe/bxe.c (revision 317823) +++ sys/dev/bxe/bxe.c (working copy) @@ -167,6 +167,12 @@ static struct bxe_device_type bxe_devs[] =3D { "QLogic NetXtreme II BCM57840 4x10GbE" }, { + 0x1077, + CHIP_NUM_57840_4_10, + PCI_ANY_ID, PCI_ANY_ID, + "QLogic NetXtreme II BCM57840 4x10GbE" + }, + { BRCM_VENDORID, CHIP_NUM_57840_2_20, PCI_ANY_ID, PCI_ANY_ID, --------------740B254162948AA97412597E-- --XmrjRkgng3dnqpMaMk19so18ioH9fgb9B-- --ksfBtJANtWK9XWQ0PQEmattmFl9GiW6DK Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEzBAEBCAAdFiEE5lkeG0HaFRbwybwAAcXqBBDIoXoFAlkMNd4ACgkQAcXqBBDI oXqikggAuPm6cj/tdXwLwPowsaXKnTosAcxCmgrSFMLOuv1+ntR8Mw0pdJyqlqUy nf5eWCwFBjxwuHOE1VeoJEOEHF5aTMM/wl1ASffmTzAjxr5ppIfe3kwGlqdH2NP1 e9vvTP6FQ1DaV2VSWu8eiUp51pLgr+5WnEKZQC1VxJcd3VNXrGNu96bgQiBp4pBF 8XNZFvcCgJyHTwXAt7UxReNHCtou2wOFzz9zdAJzHjXRcXkNSQvtFw9SNKL7OsHs k7Rfr0zWSc5qrnJXspUTJtjIWEh96xs8kzG6DbSlQ07R9Ml235JHZpzECcSy8o5t 5JmR+3xALLeScY947sYkxQ20h2XFbw== =0xEB -----END PGP SIGNATURE----- --ksfBtJANtWK9XWQ0PQEmattmFl9GiW6DK-- From owner-freebsd-drivers@freebsd.org Fri May 5 10:26:38 2017 Return-Path: Delivered-To: freebsd-drivers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D68E3D5E117 for ; Fri, 5 May 2017 10:26:38 +0000 (UTC) (envelope-from dmalmas@gmail.com) Received: from mail-wm0-x231.google.com (mail-wm0-x231.google.com [IPv6:2a00:1450:400c:c09::231]) (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 6C6DE10FA for ; Fri, 5 May 2017 10:26:38 +0000 (UTC) (envelope-from dmalmas@gmail.com) Received: by mail-wm0-x231.google.com with SMTP id w64so19855765wma.0 for ; Fri, 05 May 2017 03:26:38 -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; bh=i6Nh6WZAEzKJFbr2SJQn28akTkbM7Xgvr9tl+qMKqBY=; b=GvJKjdR0dIIZO+0MRx3l9IPBf2CA/Op9cZyX6kkYBtcH3Nj1kzV59xtQVrzitbnHSV c/+VNZz9pCgM+HDDJqukexamWGFqRjndSoSBqqd4rVXvVIRJp4aji6dFbSvF5TGdmzC6 GAPxOb1rTadSLAPoeGm/fCa+QzQKRF+YaoRHCiiJ4gz4D/y+6JfJkq7rmnWUPW2DgGCS rtrn7sQr4JBlIX0AvM+o6D0Zfzyg7jzkMJ5MqzA6t1P1MxJlNmELcyCkKLdZ4DQjW5ch wJC9JiBcRD+OHukBsbqG0xr3zYn3TGyQIyAgSNLrlk7tJhr4EuX8bkjtw96DDxKFliPt ReIg== 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; bh=i6Nh6WZAEzKJFbr2SJQn28akTkbM7Xgvr9tl+qMKqBY=; b=LduzaayftI1HNh3Ow4KAKFPreWEWUZH/a+ZkyJLYS2MM01ylTzXhcxkCh+U+gdrkhq EkctM+Q6xqiy5PYqZS5zZMVlchdNTfLNTKmaG3/D2oxHROjsMKmRy7iX595L4jT+xFjJ 2HR5r8xSMEp3LPs+1O0r6AWnq8W4XPFdfI4kf5HLVRyuga48u8EM4Li1PZc9UJdtiQm7 fIQnXcHp9XdpFigsF9oAK7ANv2KNbwCTe1Yt+SU6AEg9RmaKoJrUnfSEI/LJsYYJbT9C 5kEDE5G9Etanv9op5aL40vCmHzvzdU/dYx0SPvz8d6vteRPsQyBHLdjdwmHpMbvhcRcH 2hng== X-Gm-Message-State: AODbwcDz1OD2CjoZOyuTEUDiQlk3L24As5CfIb2gZTa9rjSoVwoeoxCw yUHMzfhTWk1HoW/rQZUJUIwb8zcBKC+N X-Received: by 10.28.107.143 with SMTP id a15mr1246206wmi.81.1493979996130; Fri, 05 May 2017 03:26:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.113.134 with HTTP; Fri, 5 May 2017 03:26:35 -0700 (PDT) In-Reply-To: <2f4f44c7-b4fe-312f-3e23-5322ec350502@yandex.ru> References: <2f4f44c7-b4fe-312f-3e23-5322ec350502@yandex.ru> From: David Miguel Almas Date: Fri, 5 May 2017 11:26:35 +0100 Message-ID: Subject: Re: drivers for HPE FlexFabric 10Gb 4-port 536FLR-T ? To: freebsd-drivers@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 May 2017 10:26:38 -0000 I'll try that, thanks! Apparently OPNsense/pfSense doesn't ship with the source code to recompile/patch ( https://doc.pfsense.org/index.php/Can_I_compile_software_on_pfSense). I'm thinking in installing a VM with plain FreeBSD, patch the driver and use it in OPNsense. Hope it works! Thanks for your suggestion! On Fri, May 5, 2017 at 9:20 AM, Andrey V. Elsukov wrote= : > On 04.05.2017 18:27, David Miguel Almas wrote: > > Hi all, > > > > we're using FreeBSD 11.0-RELEASE-p8 (OPNsense 17.1.4-amd64) on a HP DL3= 60 > > Gen9 server. > > > > We've just received a new NIC, a HPE FlexFabric 10Gb 4-port 536FLR-T. > > > > The NIC isn't recognized leaving this information in 'pciconf -lv': > > *none145@pci0:4:0:0: class=3D0x020000 card=3D0x00ec1590 chip=3D0x16= a11077 > > > > Any ideas / suggestions? > > According to the linux code, it should work with bxe(4) driver, but you > need to patch the driver's device table to be able recognize the card. > You can try attached patch and recompile the kernel. > > -- > WBR, Andrey V. Elsukov > --=20 David Almas --------------------------- =E2=80=9CFear is not real. The only place that fear can exist is in our tho= ughts of the future. It is a product of our imagination, causing us to fear things that do not at present and may not ever exist. That is near insanity. Do not misunderstand me: danger is very real but fear is a choice.=E2=80=9D =E2=80=95 Will Smith, After Earth