current.html diff documenting ahci change

[email protected] (Peter N. M. Hansteen)
Newsgroups gmane.os.openbsd.www
Message-ID <[email protected]>
My day started with an upgrade to the 2007-03-27 snapshot on my
laptop, and by this afternoon I finally got around to writing what
might be a usable entry for the web.

Diff inline below (output from diff -u).

Cheers,
Peter

--- current.html.ori	Thu Mar  8 17:58:30 2007
+++ current.html	Wed Mar 28 15:20:15 2007
@@ -41,6 +41,7 @@
 accounting on boot</a>
 <li><a href="#20070226">2007/02/26 - spamd: greylisting on by
 default; config files moved to /etc/mail</a>
+<li><a href="#20070327">2007/03/27 - updated ahci(4) may cause device name change for SATA disks</a>
 <!-- New additions go on the bottom, please -->
 </ul>
     
@@ -212,6 +213,46 @@
 for all the details.
 </p>
 
+<a name="20070327"></a>
+<h3>2007/03/27 - updated ahci(4) may cause device name change for SATA disks</h3>
+<p>
+Recent changes to the <tt>ahci(4)</tt> subsystem can cause SATA disks which were formerly
+recognized as wd* (e.g <tt>wd0</tt>) devices to turn up as sd* (e.g <tt>wd0</tt>) devices instead. 
+<p>
+This is a potential problem if you upgrade from an earlier snapshot.  Watch the <tt>dmesg</tt>
+output at boot.  A drive which turned up earlier as
+<pre>
+pciide1 at pci0 dev 31 function 2 "Intel 82801GBM AHCI SATA" rev 0x02: DMA, channel 0 wired to native-PCI, channel 1 wired to native-PCI
+pciide1: using apic 2 int 11 (irq 11) for native-PCI interrupt
+wd0 at pciide1 channel 0 drive 0: <FUJITSU MHV2080BH>
+wd0: 16-sector PIO, LBA48, 76319MB, 156301488 sectors
+wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
+</pre>
+<p>
+now instead turns up as
+<pre>
+ahci0 at pci0 dev 31 function 2 "Intel 82801GBM AHCI SATA" rev 0x02 GHC 0x0: AHCI 1.1: apic 2 int 16 (irq 11)
+ahci0: capabilities: 0xc710ff03<S64A,NCQ,SALP,SAL,SCLO,PMD,SSC,PSC> ports: 4 ncmds: 32 gen: 1 (1.5Gbps)
+ahci0: ports implemented: 0x00000001
+ahci0.0: port reset
+ahci0: detected device on port 0
+scsibus1 at ahci0: 32 targets
+sd0 at scsibus1 targ 0 lun 0: <ATA, FUJITSU MHV2080B, 0084> SCSI2 0/direct fixed
+sd0: 76319MB, 76319 cyl, 64 head, 32 sec, 512 bytes/sec, 156301488 sec total
+</pre>
+<p>
+The recommended workaround is to edit your <tt>/etc/fstab</tt> file,
+changing the relevant <tt>/dev/wd</tt> entries to refer to
+<tt>/dev/sd</tt> devices and partitions instead.
+<p>
+The other option is to disable <tt>ahci</tt> using <tt>config(8)</tt> or <tt>boot -c</tt>.
+<p>
+Refer to the manpages for
+<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=ahci&amp;sektion=4">achi(4)</a>
+and
+<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=config&amp;sektion=8">config(8)</a>
+for all the details.
+</p>
 
 <font color= "#0000e0">
 <a href= "index.html">[FAQ Index]</a>
-- 
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
http://www.blug.linux.no/rfc1149/ http://www.datadok.no/ http://www.nuug.no/
"First, we kill all the spammers" The Usenet Bard, "Twice-forwarded tales"
delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.