From owner-freebsd-current@FreeBSD.ORG Sat Dec 26 00:36:37 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C61451065672 for ; Sat, 26 Dec 2009 00:36:37 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f227.google.com (mail-fx0-f227.google.com [209.85.220.227]) by mx1.freebsd.org (Postfix) with ESMTP id 54E0D8FC13 for ; Sat, 26 Dec 2009 00:36:37 +0000 (UTC) Received: by fxm27 with SMTP id 27so9033075fxm.3 for ; Fri, 25 Dec 2009 16:36:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=kXvZgTMV5BZyoA4d7HoJshdK/aNh69kpU4LNfI3LV9U=; b=dgyMWOJfXaijvC6xxAKmdqcp09LQk0i8OHTe5YnrP1rdIXN9hBlxwwpiF4wIBnrj3c qk7OxYiwTq9xoAhwYdk+MktdPz1/ewivwpyFutCysajTcDAKxwTZyltzVZ8BUxIemNFC GkEGfWFpoFCHGezCKvltzbZJ2hfpDPbI4ktnY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=E/AQ6Q4INO0krd7Sp3rHS+77NVx9+VpkfmXleGKyyK8DxZyuwp6mG/CamLi4uwifBP V/OUACUko8M9jxzUX4ffc8DIQsrnzxifGqE1lxuoA1l478aQsIkY5oxDAWsZT/+g7vhi FbYH/ZADvbYP4c5M2MQhK6Q3M7LFpIaNdNABk= Received: by 10.86.22.30 with SMTP id 30mr9104105fgv.43.1261787795999; Fri, 25 Dec 2009 16:36:35 -0800 (PST) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id 14sm3310829fxm.11.2009.12.25.16.36.34 (version=SSLv3 cipher=RC4-MD5); Fri, 25 Dec 2009 16:36:35 -0800 (PST) Sender: Alexander Motin Message-ID: <4B355A92.1010803@FreeBSD.org> Date: Sat, 26 Dec 2009 02:36:34 +0200 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: Diego Depaoli References: <1261624986.00198729.1261614601@10.7.7.3> <4B331C07.1020706@FreeBSD.org> <83e5fb980912251331r50f2de69s3158ab5dbcf7645e@mail.gmail.com> In-Reply-To: <83e5fb980912251331r50f2de69s3158ab5dbcf7645e@mail.gmail.com> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-current Subject: Re: ATA_CAM for extradummies X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Dec 2009 00:36:37 -0000 Diego Depaoli wrote: > On Thu, Dec 24, 2009 at 8:45 AM, Alexander Motin 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: 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