Date: Mon, 8 Dec 2014 11:20:28 -0700 From: Alan Somers <asomers@freebsd.org> To: "Justin O'Conor" <oconnor@crystal.harvard.edu> Cc: FreeBSD-scsi <freebsd-scsi@freebsd.org> Subject: Re: LSI SAS 3008 card - 35 out of 36 disks detected Message-ID: <CAOtMX2hmTKjmcUpnO7vzP4VJ_1qY%2BgUb1hvZD%2BgZaBviN1Rs4g@mail.gmail.com> In-Reply-To: <DD7EC4AD-A4B6-46F7-8F1C-9AD111DF20C6@crystal.harvard.edu> References: <54822835.3080800@crystal.harvard.edu> <CAOtMX2j8K3aKST1mZ%2BEMKo4OVKiR6MUy%2B1VBQ1rMams5h7Hy_w@mail.gmail.com> <DD7EC4AD-A4B6-46F7-8F1C-9AD111DF20C6@crystal.harvard.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
--f46d044519992ba4680509b87b14 Content-Type: text/plain; charset=UTF-8 On Mon, Dec 8, 2014 at 8:58 AM, Justin O'Conor <oconnor@crystal.harvard.edu> wrote: > Hi All, > Thanks, this is encouraging. smp_discover ses0|1 see 36 sata disks. This is from the 10.1 install. > There are certainly some inconsistencies in the smp_discover responses. For example, the SEP on ses0 (phy identifier: 36) has "connector type: SAS virtual connector" and "connector element index: 24" But the SEP on ses1 (phy identifier: 28) has "connector type: No information" and "connector element index: 0". Also note that "phy identifier: 12" on ses1 has "connector element index: 0". That would be the first slot on the rear expander, if the slots and phys are numbered the same way. My best guess is that phy 12 and phy 28 mapped to the same map_idx in mpr_mapping.c:1168. So the information for the SEP overwrote the information for the first disk slot. If my guess is true, then recabling your chassis as you suggested wouldn't help. However, you might try the attached but untested patch. It will prevent the SEP from being added to the mapping table while printing a useful error message. If I'm correct, then the patch will let you use all 36 disk slots, but you won't have ses1 anymore. In the meantime, I'll try to reproduce your problem. I have all the required equipment in my lab. -Alan --f46d044519992ba4680509b87b14 Content-Type: text/plain; charset=US-ASCII; name="mpr_mapping.diff" Content-Disposition: attachment; filename="mpr_mapping.diff" Content-Transfer-Encoding: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VuY19fLCBwaHlfY2hhbmdlLT5zbG90LAorCQkJCSAgICBtdF9lbnRyeS0+cGh5c2lj YWxfaWQsCisJCQkJICAgIG10X2VudHJ5LT5kZXZfaGFuZGxlLAorCQkJCSAgICBwaHlfY2hhbmdl LT5waHlzaWNhbF9pZCwKKwkJCQkgICAgcGh5X2NoYW5nZS0+ZGV2X2hhbmRsZSk7CisJCQkJY29u dGludWU7CisJCQl9CiAJCQltdF9lbnRyeS0+cGh5c2ljYWxfaWQgPSBwaHlfY2hhbmdlLT5waHlz aWNhbF9pZDsKIAkJCW10X2VudHJ5LT5jaGFubmVsID0gMDsKIAkJCW10X2VudHJ5LT5pZCA9IG1h cF9pZHg7Cg== --f46d044519992ba4680509b87b14--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOtMX2hmTKjmcUpnO7vzP4VJ_1qY%2BgUb1hvZD%2BgZaBviN1Rs4g>