From owner-freebsd-bugs@freebsd.org Tue Apr 6 23:54:38 2021 Return-Path: Delivered-To: freebsd-bugs@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 40BB55C2843 for ; Tue, 6 Apr 2021 23:54:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4FFPWy19zgz59KB for ; Tue, 6 Apr 2021 23:54:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 26BBC5C2842; Tue, 6 Apr 2021 23:54:38 +0000 (UTC) Delivered-To: bugs@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 267D45C26F4 for ; Tue, 6 Apr 2021 23:54:38 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FFPWy0WxJz59VX for ; Tue, 6 Apr 2021 23:54:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 05107156A0 for ; Tue, 6 Apr 2021 23:54:38 +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 136Nsbd4051862 for ; Tue, 6 Apr 2021 23:54:37 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 136Nsbsh051860 for bugs@FreeBSD.org; Tue, 6 Apr 2021 23:54:37 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 254841] usr.sbin/mpsutil: add functionality (temperature monitoring, PCIe speed etc) Date: Tue, 06 Apr 2021 23:54:38 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: freebsd-ports@dan.me.uk 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 keywords bug_severity priority component assigned_to reporter cc attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Apr 2021 23:54:38 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D254841 Bug ID: 254841 Summary: usr.sbin/mpsutil: add functionality (temperature monitoring, PCIe speed etc) Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Keywords: patch Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: freebsd-ports@dan.me.uk CC: scottl@FreeBSD.org Created attachment 223884 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D223884&action= =3Dedit Add functionality to mpsutil The attached patch adds a little functionality to the 'mpsutil' (and theref= ore probably also mprutil). In the 'show adapter' output, it now shows PCIe width and speed, IOC Speed,= and (the reason I wrote this patch) the temperature of the controller. I run LSI 9206-16e cards which are notoriously hot (literally boil water ho= t!) and I wanted to monitor its temperature but this was awkward before. I added the other features because they seemed useful and were already fetc= hed in the same config page as the temperature. (note: the temperature units c= ome from the card itself, although i've only ever seen Celcius) Here's an example output on a LSI 9207-8i card I used for testing the patch: mps0 Adapter: Board Name: SAS9207-8i Board Assembly: H3-25590-00B Chip Name: LSISAS2308 Chip Revision: ALL BIOS Revision: 7.29.00.00 Firmware Revision: 20.00.07.00 Integrated RAID: no PCIe Width/Speed: x8 (5.0 GB/sec) IOC Speed: Full Temperature: 63 C PhyNum CtlrHandle DevHandle Disabled Speed Min Max Device 0 N 1.5 6.0 SAS Initiator 1 N 1.5 6.0 SAS Initiator 2 N 1.5 6.0 SAS Initiator 3 N 1.5 6.0 SAS Initiator 4 0001 0009 N 6.0 1.5 6.0 SAS Initiator 5 0002 000a N 6.0 1.5 6.0 SAS Initiator 6 0003 000b N 6.0 1.5 6.0 SAS Initiator 7 0004 000c N 6.0 1.5 6.0 SAS Initiator --=20 You are receiving this mail because: You are the assignee for the bug.=