Date: Wed, 22 Feb 2012 16:05:02 +0530 From: "Desai, Kashyap" <Kashyap.Desai@lsi.com> To: Jason Wolfe <nitroboost@gmail.com> Cc: "freebsd-scsi@freebsd.org" <freebsd-scsi@freebsd.org>, "McConnell, Stephen" <Stephen.McConnell@lsi.com> Subject: RE: LSI2008 controller clobbers first disk with new LSI mps driver Message-ID: <B2FD678A64EAAD45B089B123FDFC3ED72B96D347ED@inbmail01.lsi.com> In-Reply-To: <B2FD678A64EAAD45B089B123FDFC3ED72B96D347BB@inbmail01.lsi.com> References: <CAAAm0r2NFhF=eh2bOPMnVN8E6e2o0KfaST0N-M_gWoJHpFOLmQ@mail.gmail.com> <CAAAm0r37H0Pf_HvFTqo%2B1RSCV%2BBkzD5EcXj5M40H9xGREr%2Bfow@mail.gmail.com> <B2FD678A64EAAD45B089B123FDFC3ED72B96D344CA@inbmail01.lsi.com> <CAAAm0r3MVHZixAKDF=ChD977PbNUC8dyiBFB=NzC30S8FeZ3Nw@mail.gmail.com> <B2FD678A64EAAD45B089B123FDFC3ED72B96D344F2@inbmail01.lsi.com> <CAAAm0r02bXNve6Do5C1m1RyzLhWA9xx97KKMeLhcHC66U2SF4g@mail.gmail.com> <B2FD678A64EAAD45B089B123FDFC3ED72B96D34500@inbmail01.lsi.com> <CAFPOs6pwb44oNabH5vabDPJyFutMKa5mhgvHY=HkQVpV20YiYw@mail.gmail.com> <CAAAm0r1pWN-F=madGdk7N%2BoRuZmSD5_MAYwLh6By126L0CTGuw@mail.gmail.com> <B2FD678A64EAAD45B089B123FDFC3ED72B96D34558@inbmail01.lsi.com> <CAAAm0r1x15_ho2MD0tX7Y7A6mnU2N6zihNOz_Qz=jpsyBkDCWQ@mail.gmail.com> <B2FD678A64EAAD45B089B123FDFC3ED72B96D3455B@inbmail01.lsi.com> <B2FD678A64EAAD45B089B123FDFC3ED72B96D34626@inbmail01.lsi.com> <CAAAm0r3_S2jTG=Te4UhLqHPqiXq7_aAOHNp=W3jb4KLJx9PTRg@mail.gmail.com> <B2FD678A64EAAD45B089B123FDFC3ED72B96D34748@inbmail01.lsi.com> <CAAAm0r3oRTcfipyVcp9nE1CL3dcK7cft8AUSf%2BfGYVK90b2A0w@mail.gmail.com> <B2FD678A64EAAD45B089B123FDFC3ED72B96D347BB@inbmail01.lsi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--_002_B2FD678A64EAAD45B089B123FDFC3ED72B96D347EDinbmail01lsic_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Ignore " dump_mapping_svn_2.patch" (it is wrong patch file) Attached " dump_mapping_svn_3.patch". ` Kashyap > -----Original Message----- > From: owner-freebsd-scsi@freebsd.org [mailto:owner-freebsd- > scsi@freebsd.org] On Behalf Of Desai, Kashyap > Sent: Wednesday, February 22, 2012 2:09 PM > To: Jason Wolfe > Cc: freebsd-scsi@freebsd.org; McConnell, Stephen > Subject: RE: LSI2008 controller clobbers first disk with new LSI mps > driver >=20 > Here is a possible root cause of this issue. >=20 > Enclosure which you are using in your setup (might be) not configured > properly. >=20 > You have Enclosure with 12 Slots + 1 SES Device. > See below detail from the log. >=20 > EventDataLength: 5 > AckRequired: 0 > Event: SasEnclDeviceStatusChange (0x1d) > EventContext: 0x0 > EnclosureHandle: 0x2 > ReasonCode: Added > PhysicalPort: 0 > NumSlots: 13 > StartSlot: 0 > PhyBits: 0xff >=20 > StartSlot is 0 in this case. > Correct behavior should be each device on your enclosure must have > different slot number starting from 0 till 12. > I have doubt that SES device has not configured well and it is using > slot-0 as default. This can create issue for actual device which is > connected to slot-0. > So In your setup you will have slot-0 till slot-11 assigned for actual > Phys of your enclosures and again slot-0 is assigned for SES device > instead of Slot-12. >=20 > To confirm my doubt: please provide me debug dmesg log using attached > patch. >=20 > ~ Kashyap >=20 > > -----Original Message----- > > From: Jason Wolfe [mailto:nitroboost@gmail.com] > > Sent: Wednesday, February 22, 2012 2:06 AM > > To: Desai, Kashyap > > Cc: freebsd-scsi@freebsd.org; McConnell, Stephen > > Subject: Re: LSI2008 controller clobbers first disk with new LSI mps > > driver > > > > On Tue, Feb 21, 2012 at 10:51 AM, Desai, Kashyap > > <Kashyap.Desai@lsi.com> > > wrote: > > > Jason, > > > > > > I am looking at your logs and trying to correlate with code. > > > > > > Meanwhile can you try to reduce 4 Drives from you setup and repeat > > > the > > same test ? > > > BTW, Do you have access to "lsiutil" ? > > > > > > ~ Kashyap > > > > Kashyap, > > > > I don't have physical access to the server, it's in one of our remote > > locations. If it comes down to it, I could have drives removed, but > > it's $$. Let me know if you think it will require that. I've not > > seen lsiutil for FreeBSD and I was under the impression it was closed > > source. Maybe you can point me in the direction if there is a way I > > can grab it? > > > > Jason --_002_B2FD678A64EAAD45B089B123FDFC3ED72B96D347EDinbmail01lsic_ Content-Type: application/octet-stream; name="dump_mapping_svn_3.patch" Content-Description: dump_mapping_svn_3.patch Content-Disposition: attachment; filename="dump_mapping_svn_3.patch"; size=5810; creation-date="Wed, 22 Feb 2012 10:34:45 GMT"; modification-date="Wed, 22 Feb 2012 15:28:09 GMT" Content-Transfer-Encoding: base64 SW5kZXg6IG1wc19tYXBwaW5nLmMKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gbXBzX21hcHBpbmcuYwkocmV2aXNp b24gMjMxOTM2KQorKysgbXBzX21hcHBpbmcuYwkod29ya2luZyBjb3B5KQpAQCAtOTQzLDYgKzk0 Myw5IEBACiAJCXBoeV9jaGFuZ2UtPmRldmljZV9pbmZvID0KIAkJICAgIGxlMzJ0b2goc2FzX2Rl dmljZV9wZzAuRGV2aWNlSW5mbyk7CiAKKwkJcHJpbnRmKCJMU0kgRGVidWcgJXMgJWQgc2FzIGFk ZHIgJWp4IHNsb3QgJWQgXG4iLCBfX2Z1bmNfXywgX19MSU5FX18sCisJCQkJCXNhc19hZGRyZXNz LCBwaHlfY2hhbmdlLT5zbG90KTsKKwogCQlpZiAoKGlvY19wZzhfZmxhZ3M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ewpJbmRleDogbXBzdmFyLmgKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gbXBzdmFyLmgJKHJldmlzaW9uIDIzMTkz NikKKysrIG1wc3Zhci5oCSh3b3JraW5nIGNvcHkpCkBAIC03NDIsNiArNzQyLDcgQEAKIHZvaWQg bXBzX21hcHBpbmdfY2hlY2tfZGV2aWNlcyhzdHJ1Y3QgbXBzX3NvZnRjICosIGludCk7CiBpbnQg bXBzX21hcHBpbmdfYWxsb2NhdGVfbWVtb3J5KHN0cnVjdCBtcHNfc29mdGMgKnNjKTsKIHVuc2ln bmVkIGludCBtcHNfbWFwcGluZ19nZXRfc2FzX2lkKHN0cnVjdCBtcHNfc29mdGMgKiwgdWludDY0 X3QgLCB1MTYpOwordm9pZCBtcHNfZHVtcF9kZXZfbWFwcGluZ190YWJsZShzdHJ1Y3QgbXBzX3Nv ZnRjICopOwogdW5zaWduZWQgaW50IG1wc19tYXBwaW5nX2dldF9zYXNfaWRfZnJvbV9oYW5kbGUo c3RydWN0IG1wc19zb2Z0YyAqc2MsCiAgICAgdTE2IGhhbmRsZSk7CiB1bnNpZ25lZCBpbnQgbXBz X21hcHBpbmdfZ2V0X3JhaWRfaWQoc3RydWN0IG1wc19zb2Z0YyAqc2MsIHU2NCB3d2lkLAo= --_002_B2FD678A64EAAD45B089B123FDFC3ED72B96D347EDinbmail01lsic_--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B2FD678A64EAAD45B089B123FDFC3ED72B96D347ED>