Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Sep 2011 20:00:22 GMT
From:      Mark <markjdb@gmail.com>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/160581: mfiutil(8) doesn&#39; t properly detect dead battery with mfiutil show battery
Message-ID:  <201109102000.p8AK0MER061581@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/160581; it has been noted by GNATS.

From: Mark <markjdb@gmail.com>
To: bug-followup@FreeBSD.org, gcooper@ixsystems.com
Cc:  
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

 --20cf307c9f1ca842bb04ac9bb7de
 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
 MegaCLI.
 
 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. =(
 
 Thanks,
 -Mark
 
 --20cf307c9f1ca842bb04ac9bb7de
 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
 
 ZGlmZiAtLWdpdCBhL3Vzci5zYmluL21maXV0aWwvbWZpX3Nob3cuYyBiL3Vzci5zYmluL21maXV0
 aWwvbWZpX3Nob3cuYwppbmRleCA5ZDlmN2ExLi4wOWUxNGFhIDEwMDY0NAotLS0gYS91c3Iuc2Jp
 bi9tZml1dGlsL21maV9zaG93LmMKKysrIGIvdXNyLnNiaW4vbWZpdXRpbC9tZmlfc2hvdy5jCkBA
 IC0yMjAsNiArMjIwLDcgQEAgc2hvd19iYXR0ZXJ5KGludCBhYywgY2hhciAqKmF2KQogCWlmIChz
 dGF0LmZ3X3N0YXR1cyAmIE1GSV9CQlVfU1RBVEVfRElTQ0hBUkdFX0FDVElWRSkgewogCQlwcmlu
 dGYoIiVzIERJU0NIQVJHSU5HIiwgY29tbWEgPyAiLCIgOiAiIik7CiAJfQorCXByaW50ZigiZncg
 c3RhdHVzOiAleFxuIiwgc3RhdC5md19zdGF0dXMpOwogCWlmICghY29tbWEpCiAJCXByaW50Zigi
 IG5vcm1hbCIpOwogCXByaW50ZigiXG4iKTsK
 --20cf307c9f1ca842bb04ac9bb7de--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201109102000.p8AK0MER061581>