Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Dec 2009 02:36:34 +0200
From:      Alexander Motin <mav@FreeBSD.org>
To:        Diego Depaoli <trebestie@gmail.com>
Cc:        freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: ATA_CAM for extradummies
Message-ID:  <4B355A92.1010803@FreeBSD.org>
In-Reply-To: <83e5fb980912251331r50f2de69s3158ab5dbcf7645e@mail.gmail.com>
References:  <1261624986.00198729.1261614601@10.7.7.3>	 <4B331C07.1020706@FreeBSD.org> <83e5fb980912251331r50f2de69s3158ab5dbcf7645e@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Diego Depaoli wrote:
> On Thu, Dec 24, 2009 at 8:45 AM, Alexander Motin <mav@freebsd.org> wrote:
>> Diego Depaoli wrote:
>>> Trying to rip a DVD with ogmrip which uses libdvd[read | nav | css] my
>>> system becomes unusable.
>>> Syslog repeats many and many times:
>>> ahcich0: port is not ready (timeout 10000ms) tfd = 00000480
>>> ahcich0: device ready timeout
>>>
>>> ahci0: <ATI IXP700 AHCI SATA controller> port
>>>
>>> I can only poweroff the machine since reboot hangs syncing the buffers.
>>> After restart, verbose dmesg causes kernel panic.
>> As soon as your DVD drive is on PATA channel, errors are not directly
>> related to ripping. I think it is related to device scanning before it.
>> I think libdvd tries to send SCSI commands to SATA disks, which is not
>> handled properly by IXP700 AHCI controller.
> 
> After adding
> device sg
> as suggested by @bf1783 to my kernel now I can see pass devices.

I don't see relations between sg and pass drivers,

> Unfortunately that doesn't solve the other issues:
> - without ataati my DVD drive isn't detected

Man, excuse me, but if you are "extradummy" - don't touch kernel
options. Especially experimental, especially without understanding.

Sure, without ataati your DVD won't be detected, as it is PATA drive,
and you have ATI PATA controller, supported by this driver. ATA_CAM
option was especially made to allow this driver to be used with CAM
subsystem.

> - ripping DVD the system becomes unusable
> ahcich0: hardware reset ...
> ahcich0: SATA connect time=0ms status=00000123
> ahcich0: port is not ready (timeout 10000ms) tfd = 00000480

As I have said, it is a combination of ATI hardware bug and the fact
that DVD ripper has no idea about CAM ATA devices, trying to work with
them with SCSI commands. I will make workaround for this.

-- 
Alexander Motin



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