From owner-freebsd-scsi@FreeBSD.ORG Sat Feb 11 12:40:54 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 C8DF01065672 for ; Sat, 11 Feb 2012 12:40:54 +0000 (UTC) (envelope-from marius@alchemy.franken.de) Received: from alchemy.franken.de (alchemy.franken.de [194.94.249.214]) by mx1.freebsd.org (Postfix) with ESMTP id 445568FC15 for ; Sat, 11 Feb 2012 12:40:53 +0000 (UTC) Received: from alchemy.franken.de (localhost [127.0.0.1]) by alchemy.franken.de (8.14.4/8.14.4/ALCHEMY.FRANKEN.DE) with ESMTP id q1BCeqQF050808; Sat, 11 Feb 2012 13:40:53 +0100 (CET) (envelope-from marius@alchemy.franken.de) Received: (from marius@localhost) by alchemy.franken.de (8.14.4/8.14.4/Submit) id q1BCeqZv050807; Sat, 11 Feb 2012 13:40:52 +0100 (CET) (envelope-from marius) Date: Sat, 11 Feb 2012 13:40:52 +0100 From: Marius Strobl To: Slawa Olhovchenkov Message-ID: <20120211124052.GF39861@alchemy.franken.de> References: <20120131232938.GM39861@alchemy.franken.de> <20120207092647.GD84338@zxy.spb.ru> <20120207201217.GX39861@alchemy.franken.de> <20120207203121.GF84338@zxy.spb.ru> <20120207204255.GY39861@alchemy.franken.de> <20120207205750.GG84338@zxy.spb.ru> <20120207213253.GZ39861@alchemy.franken.de> <20120207220325.GH84338@zxy.spb.ru> <20120207231818.GA39861@alchemy.franken.de> <20120209094832.GD93570@zxy.spb.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120209094832.GD93570@zxy.spb.ru> User-Agent: Mutt/1.4.2.3i Cc: freebsd-scsi@freebsd.org Subject: Re: Trouble with LSI SAS1078 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: Sat, 11 Feb 2012 12:40:55 -0000 On Thu, Feb 09, 2012 at 01:48:32PM +0400, Slawa Olhovchenkov wrote: > On Wed, Feb 08, 2012 at 12:18:18AM +0100, Marius Strobl wrote: > > > On Wed, Feb 08, 2012 at 02:03:25AM +0400, Slawa Olhovchenkov wrote: > > > On Tue, Feb 07, 2012 at 10:32:53PM +0100, Marius Strobl wrote: > > > > > > > On Wed, Feb 08, 2012 at 12:57:50AM +0400, Slawa Olhovchenkov wrote: > > > > > On Tue, Feb 07, 2012 at 09:42:55PM +0100, Marius Strobl wrote: > > > > > > > > > > > > > > I can test you patch at this machine (currently installed on USB HDD). > > > > > > > > > > > > > > > > Okay, could please give the following patch a try? > > > > > > > > http://people.freebsd.org/~marius/mpt_sas1078.diff > > > > > > > > > > > > > > On first look its working! > > > > > > > Many strange messages in dmesg (Error 6, Unretryable error; Unexpected > > > > > > > Bus Free; etc). Delay on load driver (kern.cam.scsi_delay may be?). > > > > > > > > > > > > > > I can read first 100 secrors from da1 and da2. > > > > > > > > > > > > > > > > > > > Some delay of maybe 2-4 seconds when mpt(4) is attaching is normal. > > > > > > > > > > No, delay is 12.40s. > > > > > > > > Hrm, could you please change the SAS1078 part in mpt_hard_reset() of > > > > mpt.c to look like the following, i.e. add the printf()'s: > > > > if (mpt->is_1078) { > > > > printf("%s: reg before=0x%x\n", __func__, > > > > mpt_read(mpt, MPT_OFFSET_RESET_1078)); > > > > mpt_write(mpt, MPT_OFFSET_RESET_1078, 0x07); > > > > DELAY(1000); > > > > printf("%s: reg after=0x%x\n", __func__, > > > > mpt_read(mpt, MPT_OFFSET_RESET_1078)); > > > > return; > > > > } > > > > > > > > and report the values printed during attach of mpt(4) with the above > > > > compiled in? > > > > > > don't print anything. and i don't see 'hard reset' message in verbose boot. > > > > > > > Okay, so apart from the lengthy delay during attach it looks good so > > > > far. Do you have any problems using the disks? > > > > > > I didn't try realy using. > > > > The clutter in the verbose dmesg might be from an enclosure that > > either only fully comes up when actually booting from a disk > > attached to the SAS1078 or isn't properly supported by ses(4), > > delaying the path inquiry. I'd suggest to try to boot from disk > > and to leave out the ses(4) driver. > > I am try using SAS1078: > > - mptutil working, RAID1 created. > - raid1 rebuild working > - boot from array working > > Now system boot from SAS1078 and working! > Thanks for testing! I've committed the patch. Marius