From owner-freebsd-current@FreeBSD.ORG Mon Dec 14 02:27:16 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 ADE731065679 for ; Mon, 14 Dec 2009 02:27:16 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with ESMTP id 594238FC0A for ; Mon, 14 Dec 2009 02:27:16 +0000 (UTC) Received: (qmail 30132 invoked by uid 399); 14 Dec 2009 02:27:15 -0000 Received: from localhost (HELO foreign.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 14 Dec 2009 02:27:15 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4B25A28A.1040305@FreeBSD.org> Date: Sun, 13 Dec 2009 18:27:22 -0800 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Thunderbird 2.0.0.23 (X11/20091206) MIME-Version: 1.0 To: Ivan Voras References: <4B241509.8060906@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 0.96.0 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: AHCI/ATA_CAM for dummies? 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: Mon, 14 Dec 2009 02:27:16 -0000 Ivan Voras wrote: > Doug Barton wrote: >> I'd like to test the new stuff, but my main concern at this point is >> that I am not 100% sure how to change my fstab, what will happen if I >> need to revert, etc. I'm sure I probably _could_ figure it out, but it >> would save me a lot of time if someone could write down really >> explicit step-by-step instructions ... put this in your kernel config, >> do this to fstab, do this if it blows up, etc. >> >> Any takers? :) > > Maybe > > http://ivoras.sharanet.org/blog/tree/2009-11-17.trying-ahci-in-8.0.html That has a lot of good information, but most of it is irrelevant to me (you seriously missed the "for dummies" issue). :) Also, thanks to everyone who gave suggestions related to glabel, but I don't want to use it. What I've done that's worked is: 1. Add "options ATA_CAM" to my kernel config. AFAICS it's not necessary to do anything special with ahci, that's included in ata_cam. 2. I already had atapicam in my kernel (which I commented out since it's included in ata_cam as well), but I'm assuming that at least the following are needed: device scbus # SCSI bus (required for SCSI) device da # Direct Access (disks) device cd # CD device pass # Passthrough device (direct SCSI access) 3. Comment out everything ata-related EXCEPT "device ata". Without that one the kernel boots but stops cold when it tries to mount the root file system. 4. Edit fstab. I actually copied all the ad0 entries, commented out the old ones, and in the new ones I changed "ad0" to "ada0". 5. Update dumpdev in /etc/rc.conf So far so good. :) I am actually kind of curious as to why "device ata" is needed, but it doesn't seem to be hurting anything. Regarding what's on your web page Ivan, I'm confused about NCQ. I did what you suggested: camcontrol tags ada0 (pass0:ata0:0:0:0): device openings: 1 Which is different from what you got. The relevant lines from 'camcontrol identify' are: pass0: ATA-7 SATA 1.x device pass0: 100.000MB/s transfers (UDMA5, PIO size 8192bytes) protocol ATA/ATAPI-7 SATA 1.x Native Command Queuing (NCQ) yes 31/0x1F Is there something I need to change to make this work, or is NCQ not available for SATA 1.x devices? Are there any other parameters worth tweaking? Thanks, Doug -- Improve the effectiveness of your Internet presence with a domain name makeover! http://SupersetSolutions.com/