History log of /freebsd-current/usr.sbin/mpsutil/mps_show.c
Revision Date Author Comments
# d56ce591 24-Jan-2024 Mark Johnston <markj@FreeBSD.org>

mpsutil: Clean up libutil deps

mpsutil doesn't use libutil, so doesn't need to include libutil.h. See
commit 76103694a051335bec1da318f9c6e3a676dc0145.

No functional change intended.

MFC after: 1 week


# 4d65a7c6 24-Nov-2023 Warner Losh <imp@FreeBSD.org>

usr.sbin: Automated cleanup of cdefs and other formatting

Apply the following automated changes to try to eliminate
no-longer-needed sys/cdefs.h includes as well as now-empty
blank lines in a row.

Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/
Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/
Remove /\n+#if.*\n#endif.*\n+/
Remove /^#if.*\n#endif.*\n/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/

Sponsored by: Netflix


# 7bca09e2 03-Nov-2023 Alexander Motin <mav@FreeBSD.org>

mpsutil: Add higher PCIe speeds.

There are already PCIe Gen4 HBAs, reported improperly.

MFC after: 1 week


# da5432ed 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: alt two-line .c pattern

Remove /^\s*__RCSID\("\$FreeBSD\$"\);\n\n/


# bce02a0e 09-May-2022 Alexander Motin <mav@FreeBSD.org>

mpsutil: Fix device speed reporting.

Report controller SAS phy speed only for directly attached devices.
For others try to read and report parent expander phy speed.

MFC after: 1 week


# f5b00833 29-Nov-2021 Alexander Motin <mav@FreeBSD.org>

mpsutil: Fix data truncation by too short buffers.

Length of some string buffers was insufficient for cases of more that
99 targets per HBA or slots per enclosure. Some others are tuned just
for better alignment. While there also fix output formatting issues.

MFC after: 1 week
Sponsored by: iXsystems, Inc.


# e2ea6942 07-May-2021 Daniel Austin <freebsd-ports@dan.me.uk>

mpsutil: extend show adapter information, add NCQ control

'show adapter' now shows PCIe width and speed, IOC Speed, and the
temperature of the controller.

A new command, 'set ncq', is added.
It enables or disables SATA NCQ in the NVRAM of the card.
Its current setting is added to 'show adapter' as well.

PR: 254841
MFC after: 2 weeks
Relnotes: perhaps


# fc9780fd 16-Apr-2021 Alfredo Dal'Ava Junior <alfredo@FreeBSD.org>

mprutil: add big endian support

This fix mprutil on big endian platforms, as follow up of D25785.

Flash operations are still not working, such as MPI2_FUNCTION_FW_UPLOAD
failing due to timeout.

Firmware version used during tests: 16.00.01.00

Submitted by: Andre Fernando da Silva <andre.silva@eldorado.org.br>
Reviewed by: luporl, Sreekanth Reddy <sreekanth.reddy@broadcom.com> (by e-mail)
Sponsored by: Eldorado Research Institute (eldorado.org.br)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D26040


# 3859e5c3 15-Apr-2020 Scott Long <scottl@FreeBSD.org>

Add support for some IOCFacts fields that are available with mpr (12Gb)
controllers. It's ugly due to the single codebase for mpr and mps and
not being able to share their respective headers.


# b041593a 07-Feb-2020 Scott Long <scottl@FreeBSD.org>

Touch up some of the iocfacts fields


# 52467047 04-Feb-2019 Warner Losh <imp@FreeBSD.org>

Regularize the Netflix copyright

Use recent best practices for Copyright form at the top of
the license:
1. Remove all the All Rights Reserved clauses on our stuff. Where we
piggybacked others, use a separate line to make things clear.
2. Use "Netflix, Inc." everywhere.
3. Use a single line for the copyright for grep friendliness.
4. Use date ranges in all places for our stuff.

Approved by: Netflix Legal (who gave me the form), adrian@ (pmc files)


# b3995bb8 11-Mar-2018 Scott Long <scottl@FreeBSD.org>

Add a new 'debug' command tree and 'dump_reqs' command to grab and parse
command and chain frames of in-flight I/O from the driver.

Sponsored by: Netflix


# e8262ee8 05-May-2017 Scott Long <scottl@FreeBSD.org>

Show more fields in the IOCFact message


# 0ce8c4a3 20-Apr-2016 Baptiste Daroussin <bapt@FreeBSD.org>

Plug various resources leak
While here fix a test logic

Reported by: coverity
CID: 1332096, 1332097, 1332098, 1332099, 1332100, 1332101, 1332102
MFC after: 1 week


# 883bb7e9 27-Oct-2015 Scott Long <scottl@FreeBSD.org>

Add copyright for Netflix for the files that changed from mptutil


# 9b51f857 15-Oct-2015 Baptiste Daroussin <bapt@FreeBSD.org>

Fix some alignement in the output

Sponsored by: Gandi.net


# 3f4fe35d 15-Oct-2015 Baptiste Daroussin <bapt@FreeBSD.org>

Correctly print the device name of the adapter

Sponsored by: Gandi.net


# 48f31f4f 15-Oct-2015 Baptiste Daroussin <bapt@FreeBSD.org>

Make mpsutil open the mpr devices when named mprutil
Make mprutil a hardlink to mpsutil

Sponsored by: Gandi.net


# 29b76e53 01-Aug-2015 Scott Long <scottl@FreeBSD.org>

Iniital hack of mpsutil