#
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
|
#
7d154c4d |
|
22-Feb-2023 |
Alan Somers <asomers@FreeBSD.org> |
mprutil: "fix user reply buffer (64)..." warnings Depending on the card's firmware version, it may return different length responses for MPI2_FUNCTION_IOC_FACTS. But the first part of the response contains the length of the rest, so query it first to get the length and then use that to size the buffer for the full response. Also, correctly zero-initialize MPI2_IOC_FACTS_REQUEST. It only worked by luck before. PR: 264848 Reported by: Julien Cigar <julien@perdition.city> MFC after: 1 week Sponsored by: Axcient Reviewed by: scottl, imp Differential Revision: https://reviews.freebsd.org/D38739
|
#
da5432ed |
|
16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: alt two-line .c pattern Remove /^\s*__RCSID\("\$FreeBSD\$"\);\n\n/
|
#
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
|
#
39e2d6bc |
|
15-Apr-2020 |
Scott Long <scottl@FreeBSD.org> |
Don't keep a private copy of mpr_ioctl.h and mps_ioctl.h, since they easily get out of sync with the real files from the driver.
|
#
69e85eb8 |
|
06-Feb-2020 |
Scott Long <scottl@FreeBSD.org> |
Advertise the MPI Message Version that's contained in the IOCFacts message in the sysctl block for the driver. mpsutil/mprutil needs this so it can know how big of a buffer to allocate when requesting the IOCFacts from the controller. This eliminates the kernel console messages about wrong allocation sizes. Reported by: imp
|
#
c2a13d6f |
|
04-Sep-2019 |
Andriy Gapon <avg@FreeBSD.org> |
mpsutil slot set status This code has been written as a proof of concept, but I think that it can be useful in general. It allows to set the status of an enclosure slot. Practically, this means controlling whatever slot status LEDs the enclosure provides. At present, the new command does not have sanity checks or any conveniences. That means that it is possible to issue the command for an invalid slot and an enclosure. But the worst I have seen happening is either the command failing or simply being ignored. Also, at the moment, the status has to be specified as a numeric bit mask. The bit definitions can be found in sys/dev/mps/mpi/mpi2_init.h, they are prefixed with MPI2_SEP_REQ_SLOTSTATUS_. The only way to address a slot is by the enclosure handle and the slot number. Both are readily available from mpsutil show commands. So, future enhancements could include alternative ways to address a slot (e.g., by a disk handle or a disk device name) and human friendly names for slot statuses. The new command is useful alternative to 'sas2ircu locate' command. First, sas2ircu is a proprietary blob. Second, it supports setting only locate / identify status bit. Tested on HP H220 running LSI IT firmware 20.x. Reviewed by: bapt MFC after: 3 weeks Differential Revision: https://reviews.freebsd.org/D20535
|
#
b627cd1c |
|
30-May-2019 |
Alexander Motin <mav@FreeBSD.org> |
Pass data pointers to the driver in way in expects. Probably due to historical reasons the driver uses In/Out arguments in odd way. While this tool still never uses Out arguments to see that, make the code to not trigger EINVAL in possible future uses. MFC after: 2 weeks
|
#
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)
|
#
99cc4d51 |
|
26-Jul-2017 |
Scott Long <scottl@FreeBSD.org> |
Fix some broken logic used in obtaining the certain config pages. I'm surprised that this even pretended to work. PR: 215793 Submitted by: longwitz@incore.de
|
#
4b6fa244 |
|
13-Mar-2017 |
Pedro F. Giffuni <pfg@FreeBSD.org> |
mpsutil(8): let calloc(3) do the multiplying.
|
#
c9e1c304 |
|
29-Dec-2015 |
Ulrich Spörlein <uqs@FreeBSD.org> |
Fix type mismatches for malloc(3) and Co. This is rather pedantic, as for most architectures it holds that sizeof(type *) == sizeof(type **) Found by: clang static analyzer Reviewed by: ed Differential Revision: https://reviews.freebsd.org/D4722
|
#
3e891891 |
|
17-Nov-2015 |
Baptiste Daroussin <bapt@FreeBSD.org> |
mpsutil/mprutil: add flash subcommand the flash subcommand allows to save/update firmware and bios for LSI Fusion-MPT 2/3 controllers (mps(4) and mpr(4)) Tested by: allanjude Reviewed by: wblock (manpage) Relnotes: yes Sponsored by: Gandi.net Differential Revision: https://reviews.freebsd.org/D4026
|
#
5114c60e |
|
28-Oct-2015 |
Baptiste Daroussin <bapt@FreeBSD.org> |
Remove some unused code from the mptutil(8) The code from mptutil living in the same source tree the day those functions will be implemented in the mpsutil(8) it can be copy/paste easily Sponsored by: Gandi.net
|
#
883bb7e9 |
|
27-Oct-2015 |
Scott Long <scottl@FreeBSD.org> |
Add copyright for Netflix for the files that changed from mptutil
|
#
5a92b271 |
|
15-Oct-2015 |
Baptiste Daroussin <bapt@FreeBSD.org> |
Add generic storage structure for both mpr and mps to simplify code Use correct ioctl on mpr Prevent duplication in headers between mps_ioctl.h and mpr_ioctl.h 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
|