Date: Thu, 19 Nov 2009 00:11:26 -0600 From: Adam Vande More <amvandemore@gmail.com> To: Jeremy Chadwick <freebsd@jdc.parodius.com> Cc: freebsd-stable@freebsd.org Subject: Re: HEADS UP: major CAM ATA MFC Message-ID: <6201873e0911182211o17368cc4p2b4cfc0d702cb203@mail.gmail.com> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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: <ST31000528AS CC37> 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: <ST3750330AS SD15> 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: <ST3500320AS AD14> 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: <ST3500320AS AD14> 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: <ST3750330AS SD15> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6201873e0911182211o17368cc4p2b4cfc0d702cb203>