ATA_CAM for extradummies

Alexander Motin mav at
Sat Dec 26 00:36:37 UTC 2009

Diego Depaoli wrote:
> On Thu, Dec 24, 2009 at 8:45 AM, Alexander Motin <mav at> 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

> - 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

More information about the freebsd-current mailing list