From nobody Mon Mar 10 11:03:27 2025 X-Original-To: bugs@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 4ZBDXL6mFpz5qjfF for ; Mon, 10 Mar 2025 11:03:30 +0000 (UTC) (envelope-from bugzilla-noreply@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZBDXL4X29z4HjM for ; Mon, 10 Mar 2025 11:03:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1741604610; 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=UL+VUdCxXcIJ2Fj4GT1uHBUl6NW4/7RSrwuA3lz85YE=; b=r55wRKbH4Ds/Y8YPdMjO0F7XI90yZnRfOJwTp4EnWpzdkWJpthyHk0L0FX7fW1DSPV7GN/ BOJXxiJld70qIy3pOgqkOPu+q5QyektvIKZtRkekZAQwx3JYZPS3LAzmBjqAWT7oKQNJXq og6a4gJq2sq6Oqy2Jy9y7Bo2oOEANASaFvsbrc73kvHsNuD6BHP5T0HS+moJ8Z4S4DXowQ JfoO4Ii6VrLpwdeTGAm0rrNdQJk/9mISnmO3FiOmy8feH4l+4JU5u4p1CmKTpnbTgDaJQm ayDyhHOQ50it96ZWY9ZqpINr/CkWSF3jdcJjvYj+/2g0LkrG+9KCiihmLdjAYg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1741604610; a=rsa-sha256; cv=none; b=HserBmgfT9hSRkx7XdFkGGCJOsoKcWshK4OLTxipUKmOHZ5HsU+A4O4lPqs++ZpOJbYq6Q PIqi++6R7rzncznnqm55frg4tfLY0XHIFCIprGKf4IQ/Yl8rSo1Qjwes+IcaisR1loyeGR jJneUxJP3f0hx1FTZruP7NbhI9xzPwxQDnc2VaBfiZdyoTn9nHji6n2YDrM9RwaJHuRiWP jtZ8YH/mACmsE/gks6MwbKkUN8JfPLzCbU3eGqeWPZOudWaa/TSvrfQAuzVozX2wDRGNlT Rq7vpVLwB+6zD9oGKqOlxNHQHD4TWbum97Ms09P8AFVODjMiCAaKRaLWVsiqCg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1741604610; 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=UL+VUdCxXcIJ2Fj4GT1uHBUl6NW4/7RSrwuA3lz85YE=; b=GupYZbjhsyJQSkUnvSJk30/9duovcvMKc05tKQilv/JURudL18ejwUB5+52dPjKn1UQo0q HlJKfZkvZP+I5VpOIoNTwLevE6Qhs8QGVrmTwji6KInEd/oMos0GG9y6zcq5qxLtYJpMgI b/ZQJGHxJpyU5SOAUhilhst8DmGVBVPPgmlK8uKu+ZXIB3jmrtk3VjYR+bmMm91ygId4tT c6+i4tj+FMbobTYy79pprfWXRiQbSVaGPXPA3zOFtkGEy8yHBYR51rmzRHT/AVW8AQhrsC vAdDjT/Ov43OsUNAoUVlTL+MDptiYcYgCChkXwYiMl0ucIi7+8Wund9VAwepVQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4ZBDXL43QlzdCW for ; Mon, 10 Mar 2025 11:03:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 52AB3UiZ008356 for ; Mon, 10 Mar 2025 11:03:30 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 52AB3Ugr008347 for bugs@FreeBSD.org; Mon, 10 Mar 2025 11:03:30 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: bugs@FreeBSD.org Subject: [Bug 285305] RDMA/libibverbs: active_speed value from ibv_devinfo shows as invalid speed for 400G Date: Mon, 10 Mar 2025 11:03:27 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 15.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: sreekanth.reddy@broadcom.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D285305 Bug ID: 285305 Summary: RDMA/libibverbs: active_speed value from ibv_devinfo shows as invalid speed for 400G Product: Base System Version: 15.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: sreekanth.reddy@broadcom.com Connected the 400G cable to Broadcom's Thor2 controllers and ibv_devinfo sh= ows the active speed as "invalid speed (128)" as shown below, # ibv_devinfo -d bnxt_re2 -vv hca_id: bnxt_re2 transport: InfiniBand (0) fw_ver: 234.0.67.0 ... active_width: 4X (2) active_speed: invalid speed (128) phys_state: LINK_UP (5) in file /usr/src/contrib/ofed/libibverbs/examples/devinfo.c static const char *speed_str(uint8_t speed) { switch (speed) { case 1: return "2.5 Gbps"; case 2: return "5.0 Gbps"; case 4: /* fall through */ case 8: return "10.0 Gbps"; case 16: return "14.0 Gbps"; case 32: return "25.0 Gbps"; case 64: return "50.0 Gbps"; default: return "invalid speed"; } } There is no case statement for speed value 128 ("IB_SPEED_NDR") and hence active _speed shown as "invalid speed". Please update the devinfo.c to sup= port 400G speed modules. Thanks, Sreekanth --=20 You are receiving this mail because: You are the assignee for the bug.=