bin/160581: mfiutil(8) doesn' t properly detect dead battery with mfiutil show battery

Mark markjdb at
Sat Sep 10 20:00:22 UTC 2011

The following reply was made to PR bin/160581; it has been noted by GNATS.

From: Mark <markjdb at>
To: bug-followup at, gcooper at
Subject: Re: bin/160581: mfiutil(8) doesn&#39;t properly detect dead battery
 with mfiutil show battery
Date: Sat, 10 Sep 2011 15:58:27 -0400

 Content-Type: text/plain; charset=ISO-8859-1
 Hi Garrett,
 It looks like mfi(4) is missing a mask or several for the fw_status
 field when it tries to grab info about the battery backup. Maybe the
 attached patch can help a bit in figuring out what mfiutil is
 ignoring. I don't know if there's a publicly available datasheet for
 the firmware; I couldn't find it last time I tried. Maybe jhb@ has
 access to one. There's nothing useful in LSI's FreeBSD or Linux
 drivers - probably the opcodes and masks are just hardcoded into
 If there's no way to figure out the masks from a datasheet, it'll
 probably be necessary to disassemble MegaCLI or something. I can try
 and figure it out, but I don't have access to a machine with an LSI
 controller right now, so it'd be tricky. =(
 Content-Type: text/plain; charset=US-ASCII; name="mfiutil_debug.patch.txt"
 Content-Disposition: attachment; filename="mfiutil_debug.patch.txt"
 Content-Transfer-Encoding: base64
 X-Attachment-Id: f_gsf0odhw0

More information about the freebsd-bugs mailing list