Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Jan 2010 22:07:09 +0200
From:      Alexander Motin <mav@FreeBSD.org>
To:        Juergen Lock <nox@jelal.kn-bremen.de>
Cc:        freebsd-current@FreeBSD.org, Andriy Gapon <avg@icyb.net.ua>, Yamagi Burmeister <lists@yamagi.org>
Subject:   Re: Pack of CAM improvements
Message-ID:  <4B633FED.3030103@FreeBSD.org>
In-Reply-To: <201001291949.o0TJnCAa013981@triton8.kn-bremen.de>
References:  <4B55D9D4.1000008@FreeBSD.org>	<alpine.OSX.2.00.1001232228180.2800@idate.home.yamagi.org>	<alpine.BSF.2.00.1001281701530.29385@screw.home.yamagi.org>	<4B61C688.2050609@FreeBSD.org>	<alpine.BSF.2.00.1001281835110.30867@screw.home.yamagi.org>	<4B61CCB6.4040005@FreeBSD.org>	<alpine.OSX.2.00.1001281922010.4896@idate.home.yamagi.org>	<4B62C97F.7080000@FreeBSD.org> <4B62EDFB.1060103@icyb.net.ua> <201001291949.o0TJnCAa013981@triton8.kn-bremen.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Juergen Lock wrote:
> Ok while we are talking about ahci(4) on IXP700...  Can anyone reproduce
> the `test unit ready' bug on one of those?  Since I saw no reply to
> my post,
> 	http://docs.freebsd.org/cgi/mid.cgi?201001231407.o0NE7l8j002620
> maybe the bug is controller-specific?  How to reproduce:  just try
> 	camcontrol tur adaX
> or
> 	cdrecord -scanbus
> or (at least I think this is the same issue) start xfburn without hal
> running, then watch for the bus to hang at the next disk access.
> (Also leaving the disk led on solid here.)  With the previous patch,
> 	http://people.freebsd.org/~mav/cam-ata.20100119.patch
> (haven't tested the latest one yet) at least it now seems to recover
> after some timeout, leaving this in dmesg:  (sorry I didn't notice
> when I first tried, guess I didn't wait long enough...)

It is controller specific. Intel and NVidia controllers just return
error immediately, as they should, and continue operation. ATI IXP700 -
doesn't:

> ahcich2: Timeout on slot 20
> ahcich2: is 04000000 cs 00100000 ss 00100000 rs 00100000 tfd 451 serr 00400000
> ahcich2: AHCI reset...
> ahcich2: hardware reset ...
> ahcich2: SATA connect time=0ms status=00000123
> ahcich2: ready wait time=11ms
> ahcich2: AHCI reset done: device found
> (ada1:ahcich2:0:0:0): Command timed out
> (ada1:ahcich2:0:0:0): Retrying Command

But after command timeout channel should reset and continue operation.
I've tried to handle this situation, but haven't found a good way.

But it is possible to just avoid this situation. As soon as CAM will any
way need to tell SIM ATAPI CDB length supported by device, it will be
easy for SIM to not send ATAPI commands to ATA devices. I am going to do
it, as soon as more important things will stabilize.

-- 
Alexander Motin



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