Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Feb 2012 22:32:53 +0100
From:      Marius Strobl <marius@alchemy.franken.de>
To:        Slawa Olhovchenkov <slw@zxy.spb.ru>
Cc:        freebsd-scsi@freebsd.org
Subject:   Re: Trouble with LSI SAS1078
Message-ID:  <20120207213253.GZ39861@alchemy.franken.de>
In-Reply-To: <20120207205750.GG84338@zxy.spb.ru>
References:  <20120130152555.GL1684@zxy.spb.ru> <20120130174903.GI39861@alchemy.franken.de> <20120130215227.GR1684@zxy.spb.ru> <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>

next in thread | previous in thread | raw e-mail | index | archive | help
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?

> 
> > Which of the mpt(4) clutter remains if you don't boot verbose?
> 
> I can't kldunload module (kldunload wait on 'simfree').
> Reboot allowed.

Unloading of HBA drivers unfortunately still isn't really supported in
FreeBSD. The closest thing to working is isp(4), but even that one
doesn't successfully unload 100% of the time.

> 
> mpt show only next:
> 
> mpt0: <LSILogic SAS/SATA Adapter> port 0x1000-0x10ff mem 0xb1a40000-0xb1a43fff,0xb1a00000-0xb1a3ffff irq 16 at device 0.0 on pci15
> mpt0: MPI Version=1.5.20.0
> mpt0: Capabilities: ( RAID-0 RAID-1E RAID-1 )
> mpt0: 0 Active Volumes (2 Max)
> mpt0: 0 Hidden Drive Members (14 Max)
> ses0 at mpt0 bus 0 scbus7 target 8 lun 0
> ses0: <ESG-SHV. SCA HSBP M11.... 2.11> Fixed Enclosure Services SCSI-3 device 
> ses0: 300.000MB/s transfers
> ses0: SCSI-3 SES Device
> da1 at mpt0 bus 0 scbus7 target 3 lun 0
> da1: <ATA ST500NM0011 SN02> Fixed Direct Access SCSI-5 device 
> da1: 300.000MB/s transfers
> da1: Command Queueing enabled
> da1: 476940MB (976773168 512 byte sectors: 255H 63S/T 60801C)
> da2 at mpt0 bus 0 scbus7 target 2 lun 0
> da2: <ATA ST500NM0011 SN02> Fixed Direct Access SCSI-5 device 
> da2: 300.000MB/s transfers
> da2: Command Queueing enabled
> da2: 476940MB (976773168 512 byte sectors: 255H 63S/T 60801C)

Okay, so apart from the lengthy delay during attach it looks good so
far. Do you have any problems using the disks?

Marius




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