From owner-freebsd-net@freebsd.org Fri Feb 7 19:16:07 2020 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4BB9722B370 for ; Fri, 7 Feb 2020 19:16:07 +0000 (UTC) (envelope-from adam.e.peace@gmail.com) Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48DlQG4Hhfz3PK6 for ; Fri, 7 Feb 2020 19:16:06 +0000 (UTC) (envelope-from adam.e.peace@gmail.com) Received: by mail-wm1-x336.google.com with SMTP id a9so4003156wmj.3 for ; Fri, 07 Feb 2020 11:16:06 -0800 (PST) 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=VmdjD0pcPgJBbx10kdwSfxbLkNIlsOJsi4LibrOTLgk=; b=X2zWVimsi4/gZAbUEl29dwF/nfzGIl9Dkhx5Vd1qcSJhLvtyI2ixJXlHbIGDzSVfEI EZqq+h/DPTVM39Ktz+mC3+t3qbe0CspzkkSDgYMJF2Fio5x5zql4mTlSQzcsYu+8PjRx /V4AS3hVKUbTaApMAXKFMf2N03xz9iLoADiPK3LlgGCy0JF6BkGip7U0FtcLAqGkadCx DQN3a7VmZJ1OQx/fcO0e2Bh/s3diTjG7KnEO3SOBt0zis9U83PljmFaU8I43QdPzUSw2 Mf+j3sp6Q2iv5QiKJJZv90U47v5js2mAlmWLOqulGWJsnQw+5buQYBDRY4vsqBN93G5d WZ7A== 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=VmdjD0pcPgJBbx10kdwSfxbLkNIlsOJsi4LibrOTLgk=; b=EV3cE02LLtVpKhRMR9I30eq9bxp7ANTxPmZmDYZQUPQdCwp+RjXeNd1Yg9Ql4jayQL 7oZKg9p1ZL4DHTcNbdlemZlpMFPz1I8PTo6jOkssSlzMfDhzypCMdvi5PlNDyPSksMgj NKTTUyqLbh6iiQHUReCqVBn1br0f0TlkZzLuR85gDT8ezScvEfgU+1zCowrsFDJuSPrW 2nVCGyhdFdLA6vTh57VuGHwnSfmgMeXXd8TBY6447TE2YuLN29T3KlTrUIq/WVk4AA53 zUg285nMtVeXXuJhOGJYSB1ezq4Kv1wg6R/u/RIHbLc4aiVip9aHRp8hxf8rSSv+JRuq CSYw== X-Gm-Message-State: APjAAAX/cnq9udRgv/NeVnF8lAXOCtueWEZ0B7wtfCkv7iIQ3xGxHElX xy7OwVdA6WY8g62q+KPH/vnSVQNwI5v8nylqfhAPMBvB X-Google-Smtp-Source: APXvYqwxVK7AjWs5r1EF35qcekWgMhekt5eIywE87K8Nvvs620q1AJ8XbPsZncAXYFBKNj7X9WZdbmSGDKXaFcXFnIk= X-Received: by 2002:a1c:6a15:: with SMTP id f21mr5621140wmc.126.1581102964652; Fri, 07 Feb 2020 11:16:04 -0800 (PST) MIME-Version: 1.0 From: Adam Peace Date: Fri, 7 Feb 2020 14:15:53 -0500 Message-ID: Subject: mlx5en - PTYS reg - eth_proto_oper bit 19 not defined To: freebsd-net@freebsd.org X-Rspamd-Queue-Id: 48DlQG4Hhfz3PK6 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=X2zWVims; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of adamepeace@gmail.com designates 2a00:1450:4864:20::336 as permitted sender) smtp.mailfrom=adamepeace@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; TO_DN_NONE(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE_FREEMAIL(0.00)[]; IP_SCORE(0.00)[ip: (-9.45), ipnet: 2a00:1450::/32(-2.49), asn: 15169(-1.74), country: US(-0.05)]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[6.3.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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, 07 Feb 2020 19:16:07 -0000 Hello, I'm using the mlx5en driver that's in the FreeBSD 11.3 tree for a Mellanox ConnectX-4 ethernet card on an Azure VM. The problem that I'm seeing is that the value being retrieved from the PTYS register for eth_proto_oper is 0x80000, which is bit 19 of the field, but a value for bit 19 is not defined in the mlx5e_link_speed enum. This causes the driver to not find an entry in the mlx5e_mode_table and the media.subtype and media.baudrate are not set. This does not stop the mlx5en.ko module from loading, but network connectivity is affected. It seems that this enum is phased out in the upstream Linux driver, but it's not clear to me how the replacement method works. Is this a known issue? It seems that FreeBSD 12.1 and master still use the method that's used in 11.3. Does anyone have any insight on this? Thanks for your help, Adam Peace