From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 15 14:28:03 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8BC041065676 for ; Mon, 15 Mar 2010 14:28:03 +0000 (UTC) (envelope-from scdbackup@gmx.net) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id EDC528FC22 for ; Mon, 15 Mar 2010 14:28:02 +0000 (UTC) Received: (qmail invoked by alias); 15 Mar 2010 14:28:00 -0000 Received: from 165.126.46.212.adsl.ncore.de (HELO 192.168.2.69) [212.46.126.165] by mail.gmx.net (mp042) with SMTP; 15 Mar 2010 15:28:00 +0100 X-Authenticated: #2145628 X-Provags-ID: V01U2FsdGVkX1/+E2prj3D+gzQY2aph/sS/NdsnNkIKZq0hL2SG7J KOjU9DC+zcBhYR Date: Mon, 15 Mar 2010 15:27:09 +0100 From: "Thomas Schmitt" To: freebsd-hackers@freebsd.org References: <201003141600.o2EG0F2M005027@triton8.kn-bremen.de> In-Reply-To: <201003141600.o2EG0F2M005027@triton8.kn-bremen.de> Message-Id: <106085798526913@192.168.2.69> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.56999999999999995 Subject: Re: How to slow down SATA to 1.5 GBit/s ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Mar 2010 14:28:03 -0000 Hi, the switch to ahci was successful and it looks quite good, overall. But probably i found a bug. I could need advise where and how to submit it. A particular sequence of SCSI commands leads to an elsewise harmless stall of the dialog between libburn and drive. To close and re-open the libcam connection before this sequence is enough to circumvent the problem. But this remedy is not desirable. Long story: ------------------------------------------------ I did the switch to ahci. Now my disk is ada and my eSATA attached burner is not acd1|cd1 but only cd0. The IDE ROM works fine with the vanilla configuration. It obviously staid under ata control as acd0|cd1. With the poor eSATA connection at 3000 GBit/s i still get the stalls. But after killing the writing process and about 4 minutes of waiting i get my drive back in most cases. Sometimes i have to do a power cycle on the drive to get it back as /dev/cd0. Still no reboot or panic. I begin to like ahci. (I find no trace of power cycle or re-plugging in dmesg.) The speed setter in camcontrol seems not to work. Writing still gets stuck after a few MB. So i used the boot time option. dmesg tells: cd0 at ahcich4 bus 0 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 300.000MB/s transfers I added to /boot/device.hints : hint.ahcich.4.sata_rev="1" After reboot, i see in dmesg: cd0 at ahcich4 bus 0 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 150.000MB/s transfers Now everything seems to work - except libburn. Grrr. Writing looks good. But it does not end. It is stuck in READ DISC INFORMATION 51 00 00 00 00 00 00 00 22 00 and waits for the reply of the drive. This happens when the new media state shall be inquired after burning was completed. If i do cam_close_device() and re-open the drive, then the same command sequence succeeds. (But this is a very undesirable gesture at that point of processing.) The problem does not appear with USB (and did not while the drive was built-in at SATA). The drive is surely not to blame. So now i could need advise about filing a bug report. ------------------------------------------------ Have a nice day :) Thomas