From owner-freebsd-scsi@FreeBSD.ORG Fri Feb 17 08:25:01 2012 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E4016106566C for ; Fri, 17 Feb 2012 08:25:01 +0000 (UTC) (envelope-from Kashyap.Desai@lsi.com) Received: from na3sys009aog106.obsmtp.com (na3sys009aob106.obsmtp.com [74.125.149.76]) by mx1.freebsd.org (Postfix) with ESMTP id 568F38FC12 for ; Fri, 17 Feb 2012 08:25:01 +0000 (UTC) Received: from paledge01.lsi.com ([192.19.193.42]) (using TLSv1) by na3sys009aob106.postini.com ([74.125.148.12]) with SMTP ID DSNKTz4O3FguajGKUQrdrE5UY9zo3ueOLmtN@postini.com; Fri, 17 Feb 2012 00:25:01 PST Received: from PALHUB01.lsi.com (128.94.213.114) by PALEDGE01.lsi.com (192.19.193.42) with Microsoft SMTP Server (TLS) id 8.3.213.0; Fri, 17 Feb 2012 03:29:59 -0500 Received: from inbexch01.lsi.com (135.36.98.37) by PALHUB01.lsi.com (128.94.213.114) with Microsoft SMTP Server (TLS) id 8.3.213.0; Fri, 17 Feb 2012 03:24:59 -0500 Received: from inbmail01.lsi.com ([135.36.98.64]) by inbexch01.lsi.com ([135.36.98.37]) with mapi; Fri, 17 Feb 2012 13:54:56 +0530 From: "Desai, Kashyap" To: Jason Wolfe Date: Fri, 17 Feb 2012 13:54:53 +0530 Thread-Topic: LSI2008 controller clobbers first disk with new LSI mps driver Thread-Index: AcztSlgxLoSOxRO+TgCibJp87hVKOAAAhutA Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "freebsd-scsi@freebsd.org" Subject: RE: LSI2008 controller clobbers first disk with new LSI mps driver X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Feb 2012 08:25:02 -0000 Jason, Me also surprised when I see so many queries on . Really wonderful to know that there are good amount of driver use = as well. I was under impression that if you keep same FW and just change Driver, the= re should not be any difference in Target IDs assigned to Device connected = behind that HBA. Is this possible for you to keep everything unchanged and just change Drive= r version and see how things behaves. Please share "dmesg" logs of your bot= h drivers. BTW, did you tested "13.00.00.00-fbsd" and "11.00.00.00" on sa= me machine ?=20 FYI: We never observe this kind of issue in our lab. ` Kashyap From: Jason Wolfe [mailto:nitroboost@gmail.com]=20 Sent: Friday, February 17, 2012 1:31 PM To: Desai, Kashyap Cc: freebsd-scsi@freebsd.org Subject: Re: LSI2008 controller clobbers first disk with new LSI mps driver Kashyap, Ah a response from LSI, that's a pleasant surprise :) =A0Everything you've = stated looks correct to me, the FreeBSD developed driver that has been repl= aced by the LSI driver has no issues with either firmware. =A0Your likely a= ware, but just to confirm, here is the history of the 3 various LSI drivers= that have the issue on the 10.00.02.00 FW: 11.00.00.00 - binary driver I had received from you guys in mid =A02011, mp= slsi.ko, one for each 7.2-RELEASE and 8.2-RELEASE 11.255.03.00-fbsd - initial LSI driver committed to 8-STABLE on 2/2, r23092= 2 13.00.00.00-fbsd - commited to 8-STABLE on 2/14, r231680 I have about 40 boxes with the 10.00.02.00 FW I've tested, so I'm fairly ce= rtain it's not bad hardware or a fluke. =A0You guys haven't seen anything l= ike this in house? =A0I'd hate to hear I have to update the FW on these box= es as they are all quite a ways from me, though it seems there is some way = to work around the behavior in the driver as the FreeBSD one does? =A0I hav= e a few of these boxes out of service so I'm game to try some things out sh= ould that help. Thank for the response, Jason=A0 On Thu, Feb 16, 2012 at 11:29 PM, Desai, Kashyap wr= ote: Jason, I have gone through your data provided in this thread. It is well understoo= d because of your descriptive data. So What I understood here is: 1. You tested with HBA Fw "07.00.00.00" and "10.00.02.00" 2. you have run your test on two different LSI BIOS versions. Grabbed from below line. MPT2BIOS-7.11.00.00 (2010.07.29) / PRODUCT REVISION 7.00.00.00 MPT2BIOS-7.19.00.00 (2011.05.16) / PRODUCT REVISION 10.00.02.00 Now I am able to see below three difference in your setup. See FW version and check starting target id, all three has different way of= assigning TargetIDs. For first two case target id start with "8" but SES device assignment is di= fferent. Last case target id start with "1" mps0: Firmware: 07.00.00.00, Driver: 11.255.03.00-fbsd (OR) 13.00.00.00-fbs= d > > at scbus0 target 8 lun 0 (pass0,da0) > > at scbus0 target 9 lun 0 (pass1,da1) > > at scbus0 target 10 lun 0 (pass2,da2) > > at scbus0 target 11 lun 0 (pass3,da3) > > at scbus0 target 12 lun 0 (pass4,da4) > > at scbus0 target 13 lun 0 (pass5,da5) > > at scbus0 target 14 lun 0 (pass6,da6) > > at scbus0 target 15 lun 0 (pass7,da7) > > at scbus0 target 16 lun 0 (pass8,da8) > > at scbus0 target 17 lun 0 (pass9,da9) > > at scbus0 target 18 lun 0 (pass10,da10) > > at scbus0 target 19 lun 0 (pass11,da11) > > at scbus0 target 20 lun 0 (ses0,pass12) mps0: Firmware: 10.00.02.00, Driver: 13.00.00.00-fbsd mps0: Firmware: 10.00.02.00, Driver: 11.00.00.00 (OR) 8.2-STABLE Inbox > > at scbus0 target 8 lun 0 (ses0,pass0) > > at scbus0 target 9 lun 0 (da0,pass1) > > at scbus0 target 10 lun 0 (da1,pass2) > > at scbus0 target 11 lun 0 (da2,pass3) > > at scbus0 target 12 lun 0 (da3,pass4) > > at scbus0 target 13 lun 0 (da4,pass5) > > at scbus0 target 14 lun 0 (da5,pass6) > > at scbus0 target 15 lun 0 (da6,pass7) > > at scbus0 target 16 lun 0 (da7,pass8) > > at scbus0 target 17 lun 0 (da8,pass9) > > at scbus0 target 18 lun 0 (da9,pass10) > > at scbus0 target 19 lun 0 (da10,pass11) On the FBSD developed driver active in 8-STABLE prior to the LSI Release (Firmware: 10.00.02.00) > > at scbus0 target 1 lun 0 (pass0,da0) > > at scbus0 target 2 lun 0 (pass1,da1) > > at scbus0 target 3 lun 0 (pass2,da2) > > at scbus0 target 4 lun 0 (pass3,da3) > > at scbus0 target 5 lun 0 (pass4,da4) > > at scbus0 target 6 lun 0 (pass5,da5) > > at scbus0 target 7 lun 0 (pass6,da6) > > at scbus0 target 8 lun 0 (pass7,da7) > > at scbus0 target 9 lun 0 (pass8,da8) > > at scbus0 target 10 lun 0 (pass9,da9) > > at scbus0 target 11 lun 0 (pass10,da10) > > at scbus0 target 12 lun 0 (pass11,da11) > > at scbus0 target 13 lun 0 (ses0,pass12) In summary, =A0(please confirm) 1. you have not seen any issue if you use "07.00.00.00" FW version. 2. _but_ when you use "10.00.02.00" FW, with "13.00.00.00-fbsd" driver vers= ion you are seeing SES is detected before Drives as pass0. 3. When you use "10.00.02.00" FW with 8-STABLE inbox FBSD driver, you are f= inding SES device detected after Drives. All driver is doing here is asking CAM layer to scan Bus when there is any = device added on that bus. So depending upon actual target Id =A0assigned by FW, it will be detected t= o camcontrol. So bottom line is FW plays major role in sequencing Drives behind LSI contr= oller. =A0~ Kashyap