From nobody Mon Mar 10 11:04:44 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 4ZBDYs5Wlsz5qjfP for ; Mon, 10 Mar 2025 11:04:49 +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 4ZBDYs4T4jz4Hnb for ; Mon, 10 Mar 2025 11:04:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1741604689; 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=zfQYIQCSIoHmZ7oj5GUd5i3nxjRBnJJTMLKQxGcRTU8=; b=PfO3Fp1Ky5t/WDvE/zXyZcegKF3pYLqUnNrBfnY1t+DGna3Ua4q0UnlJmt0Uj8ckIx/mAS ybsYn20Lv2V0JNKR9FEZJKOsUmqwSeRPai3h5OSUA+a+xsWesbQxhiN6/tkatd8wCN4Hra qtf+/FRGIlkVC8r9KRCfXbhc3sqRbPDF3tMTEOKJUB6Jw0xCsiwut+nFsH2xbnayqZOdta G+TJcolhJSV254ymvCgiG41AdF/yvVQY0uEtProgTWgTDx8eThPeiWSyDVe/cSc257wXNe wl+AkzYFXy8Df5YhuBWj+DZEG1/bKqZLPe8HmkkK8rjFhphkPbUCoDFE8VIXQg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1741604689; a=rsa-sha256; cv=none; b=fQCY7xAY4amODFlhes980XN28GuCPNq95WarlzP9CceTZxb5ueZjGQm3UxxfMN7yiTgqgc WZwhcsgCTXhKp9JV5M4Y2W5jN40WgFdPqyPLopDizwtdeb3U0f9Xf1b1LZbxYwx2MhNuyC gN27sIakxxPRm2QfcBTNpDaVGj36s1O6e3J/H9solJGtL9AhPe3Km8puI1wOu9Z/Qg8UsA aWhGUgqHSexLnDWddcx6ZNVMTZJCD3LwIfg8WgJIc3AntxMXBEWi0OpmW8Vr/J0cEtRfN7 0zIpTGpHeJV2ME1Y3SHJ6ZEBK7Wpy8NYVI94z2hRP7Y6FdlLaQHuChE8qpJa5w== 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=1741604689; 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=zfQYIQCSIoHmZ7oj5GUd5i3nxjRBnJJTMLKQxGcRTU8=; b=hlE/C6CBprzZY03XryPC7s7Kn+WlbIYYsaAZB/h4qNh4G19X9jT6x0wujWnp3Pi2dbzoc7 YEG6JTuot4vmz1aYWDxvlCzmlKvO5ONSpiRgyHARjdZxqTxL1qUSR28BshftUpN0XqcmYs XFI22GaJAUq1IKMPYo4gAl2Lh+lpcOCcJ+qY7NAg5R3igoGQW8t+eQB54dKwVACqS4ynpU yCdKXX4+J4WMDM1uTb49kpL5kWCDhz3Pc/+2/PPLnByOtE+I0d+VUODGFGWnb2sEAb8PAT kzm54txNMgGKR7p5wrozXHIXbobf+nKeHJxFvRwp82qBptyzG1KIXbh0jfuhqg== 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 4ZBDYs3pxKzdMV for ; Mon, 10 Mar 2025 11:04:49 +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 52AB4n1c011572 for ; Mon, 10 Mar 2025 11:04:49 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 52AB4ne5011565 for bugs@FreeBSD.org; Mon, 10 Mar 2025 11:04:49 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 285306] RDMA/libibverbs: active_speed value from ibv_devinfo shows as invalid speed for 400G Date: Mon, 10 Mar 2025 11:04:44 +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=3D285306 Bug ID: 285306 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.=