From owner-freebsd-stable@FreeBSD.ORG Thu Nov 19 06:11:27 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 94FA11065670 for ; Thu, 19 Nov 2009 06:11:27 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-pz0-f185.google.com (mail-pz0-f185.google.com [209.85.222.185]) by mx1.freebsd.org (Postfix) with ESMTP id 6900A8FC0C for ; Thu, 19 Nov 2009 06:11:27 +0000 (UTC) Received: by pzk15 with SMTP id 15so1335512pzk.3 for ; Wed, 18 Nov 2009 22:11:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=B0lLpI/BlpvUfhSp5EpwuZYT16xS2kBLcXMtLARrMpM=; b=mhWywBT1jah724W7NQ+7ifxmUZAMNrGwBot69dhkalbQ7SHvcVbSaBFjS6g2b8CftJ sBa5eVzijVFotZG6aMKkWQH38Xoy62UoNMGSmdooGvjZ6GK/Rj1Pt0Ln4xDbkthXTsvH VSTIDK1K9Ig3Q8LTYrNsfb6QTJ9CgKqJKWv9w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=GXO47O1m55Hh9p3jU0baoBQ9ECw8BoZAN/Ovi1fmb9iSJPmLEJbLKQ2LKuZXJQ1m+O Ie4LNE3Huj1sJHAeDe3PazxGbantEG2GaWEnWG9iXNONa7SuF//m5OeOnpz0OBO9XyRg CvKRJNV8IdLrSZWg+k0aMNj+LGP/GQPg8DAT0= MIME-Version: 1.0 Received: by 10.142.196.1 with SMTP id t1mr1356589wff.71.1258611086894; Wed, 18 Nov 2009 22:11:26 -0800 (PST) In-Reply-To: <20091119055025.GA30911@icarus.home.lan> References: <4B03322A.2080608@FreeBSD.org> <4B038E75.1010501@rdtc.ru> <20091118061726.GA1675@icarus.home.lan> <4B04B908.1020505@rdtc.ru> <20091119055025.GA30911@icarus.home.lan> Date: Thu, 19 Nov 2009 00:11:26 -0600 Message-ID: <6201873e0911182211o17368cc4p2b4cfc0d702cb203@mail.gmail.com> From: Adam Vande More To: Jeremy Chadwick Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-stable@freebsd.org Subject: Re: HEADS UP: major CAM ATA MFC X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Nov 2009 06:11:27 -0000 > > I don't know. I'm waiting for someone to actually write documentation > on this. I keep seeing commits talking about ATA disks via CAM (e.g. > SCSI emulation for ATA disks), but the only thing I'm aware of that > exists is SCSI emulation for ATAPI devices. > > > I've just tried "Modular ATA" configuration of Intel ICH7-based system > plus "device ahci" > > minus all traditional ata(4) kernel configuration, the kernel builds fine > > but boot messages do not show any attempt to detect my SATA HDD, > > so root mount just fails (I use GEOM UFS labels in my /etc/fstab). > > Typing ? at "mounroot" prompt I see only daX devices standing for my USB > cardreader > > and no device for HDD. > > This sounds like a different problem. You may want to talk to mav@ > about this. > > > It seems I miss ada(4) device and I cannot find it in 8.0 - not ada.ko > nor "device ada". > > Same. > To enable ahci, put ahci_load="YES" into loader.conf. Upon reboot, drives will be detected as adaX eg galacticdominator% dmesg |grep ada GEOM_STRIPE: Disk ada3 attached to stripe0. GEOM_STRIPE: Disk ada4 attached to stripe0. adam@galacticdominator.com:/usr/obj/usr/src/sys/GENERIC amd64 ada0 at ahcich0 bus 0 target 0 lun 0 ada0: ATA/ATAPI-8 SATA 2.x device ada0: 300.000MB/s transfers ada0: 953869MB (1953525168 512 byte sectors: 16H 63S/T 16383C) ada0: Native Command Queueing enabled ada1 at ahcich1 bus 0 target 0 lun 0 ada1: ATA/ATAPI-8 SATA 2.x device ada1: 300.000MB/s transfers ada1: 715404MB (1465149168 512 byte sectors: 16H 63S/T 16383C) ada1: Native Command Queueing enabled ada2 at ahcich3 bus 0 target 0 lun 0 ada2: ATA/ATAPI-8 SATA 2.x device ada2: 300.000MB/s transfers ada2: 476940MB (976773168 512 byte sectors: 16H 63S/T 16383C) ada2: Native Command Queueing enabled ada3 at ahcich4 bus 0 target 0 lun 0 ada3: ATA/ATAPI-8 SATA 2.x device ada3: 300.000MB/s transfers ada3: 476940MB (976773168 512 byte sectors: 16H 63S/T 16383C) ada3: Native Command Queueing enabled ada4 at ahcich5 bus 0 target 0 lun 0 ada4: ATA/ATAPI-8 SATA 2.x device ada4: 300.000MB/s transfers ada4: 715404MB (1465149168 512 byte sectors: 16H 63S/T 16383C) ada4: Native Command Queueing enabled BIOS must be set to ahci controller mode, and obviously both disk and controller must support it. This works fine off a GENERIC. -- Adam Vande More