From nobody Thu Mar 03 14:30:10 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id E63D219E9B81; Thu, 3 Mar 2022 14:30:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4K8YKt4KgMz3PlP; Thu, 3 Mar 2022 14:30:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646317810; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=w6SBKMVGsgxE/E2X1U7SP67zR18yD+GpcJeHKipWFh8=; b=LZwlyywFmuXKee8LjSEu/ZAYP5J3dnjUHyolPAQBVYfDslg6NRH6FCGUfdB+jo8Y/0KY7O eeJAiUG+qH7Qbiz3JMiOG7hQsOP8KhKGZQjXdbDGA05T0fRIJtBiM0D1An0jNH2oG7NDxK 5kp//AL+ckqDkuV6tpRN5yQnQWf8edgHLQl92w354DmeJEY2Q944lVkfriUL8ihwLqi7ZM sJX1hl9eJNsGSXFc5cdQs6U8RtfZZPtjCW38L2Azf8YqncUkhBjFifUW5k/oJJu/e3ALzU ZT8fzLBmLLlA9cAgxsm9EoFMCG2gkfRu0aJsoClckkB5lu4NsQ3S97cDE/QcIA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4260B19155; Thu, 3 Mar 2022 14:30:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 223EUAha099017; Thu, 3 Mar 2022 14:30:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 223EUAAH099015; Thu, 3 Mar 2022 14:30:10 GMT (envelope-from git) Date: Thu, 3 Mar 2022 14:30:10 GMT Message-Id: <202203031430.223EUAAH099015@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Hans Petter Selasky Subject: git: 304a69596b36 - stable/13 - mlx5ib: Add support for NDR link speed. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: hselasky X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 304a69596b3619ed5ad28e1ddb0c232953fb6141 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646317810; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=w6SBKMVGsgxE/E2X1U7SP67zR18yD+GpcJeHKipWFh8=; b=YgKnI3a0hcpchwMuDgUWpscBikHBfaaiMvntZCCoSbr8AVtldZu/t9lXHZVmj/aHaQhuxT ynk4VuYNl26aohqCT4T24uAXZUqEK5BBE++q2GcTUxRwWafwYllja2VijHyL6R/F5fQ+Z9 oY9Q/KDDRTEryfyxlQHM7XVRBgeE+LqoOWHDKTTA4tCREdrtM/3o4rHH0jQYwoJnPplxVr 57h38exw+XspmytTekpk7eRgoG86GdZpmDXPZgaTgJViAdYVVjN6aEaUa60AbTiN7INfz8 6+D9TxqUchTiQxT9a4MuEQhi+tfRwXNDQU5yaFP+tWeO80ApiBJT6zxVsAU/eA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646317810; a=rsa-sha256; cv=none; b=AUQpRVWT5Y+fh7ziAFeR82XD5+jU+Fiv6ZtqCWexz7xsEfekIcgWKsBepqJ+Pf28QKhMRC Vl3c6ZpYdbsqFD5EwFDHsZkYAvRXDMRhp08DfGOUce3VeJ5Nc61T4z99VwYg7yQpHFyMgB lW9BJS9umwG6XyA2c6AcVOAKlWlQyhSI8xlkMbYIyC89uIIAKkEsxzbzp7ubBz+kB0mRHN yKSgLK0acMP2i7GS0CSYlY91TyHzxd9aGtiXHFmv79oc0GD9j2S7T0qOIR/rqsa4Koc5yf IrOIcKBrEB/NGf7WrLZ+M8pyndFAydvyUeC16Atyg15bcVdhJdfN/6NO/JSmGA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by hselasky: URL: https://cgit.FreeBSD.org/src/commit/?id=304a69596b3619ed5ad28e1ddb0c232953fb6141 commit 304a69596b3619ed5ad28e1ddb0c232953fb6141 Author: Hans Petter Selasky AuthorDate: 2022-02-21 08:25:29 +0000 Commit: Hans Petter Selasky CommitDate: 2022-03-03 14:28:53 +0000 mlx5ib: Add support for NDR link speed. The IBTA specification has new speed - NDR. That speed supports signaling rate of 100Gb. mlx5 IB driver translates link modes reported by ConnectX device to IB speed and width. Added translation of new 100Gb, 200Gb and 400Gb link modes to NDR IB type and width of x1, x2 or x4 respectively. Linux commits: f946e45f59ef01ff54ffb3b1eba3a8e7915e7326 Sponsored by: NVIDIA Networking (cherry picked from commit 91c8ffd7e60fa7f017731cd234c01b7cddc05272) --- sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c b/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c index 95214f6003ce..1d4842160d4a 100644 --- a/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c +++ b/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c @@ -258,10 +258,22 @@ static int translate_eth_ext_proto_oper(u32 eth_proto_oper, u8 *active_speed, *active_width = IB_WIDTH_2X; *active_speed = IB_SPEED_HDR; break; + case MLX5E_PROT_MASK(MLX5E_100GAUI_1_100GBASE_CR_KR): + *active_width = IB_WIDTH_1X; + *active_speed = IB_SPEED_NDR; + break; case MLX5E_PROT_MASK(MLX5E_200GAUI_4_200GBASE_CR4_KR4): *active_width = IB_WIDTH_4X; *active_speed = IB_SPEED_HDR; break; + case MLX5E_PROT_MASK(MLX5E_200GAUI_2_200GBASE_CR2_KR2): + *active_width = IB_WIDTH_2X; + *active_speed = IB_SPEED_NDR; + break; + case MLX5E_PROT_MASK(MLX5E_400GAUI_4_400GBASE_CR4_KR4): + *active_width = IB_WIDTH_4X; + *active_speed = IB_SPEED_NDR; + break; default: *active_width = IB_WIDTH_4X; *active_speed = IB_SPEED_QDR;