Have you tried different disks?  The AHCI driver works really well with "AHCI 
1.1" and "AHCI 1.2" on intel chipsets, at least in my experience.

Mihai Popescu B.S. [mihai...@gmail.com] wrote:
> Hello,
> 
> I have a DELL Precision 370 workstation and BIOS allows me to select
> the SATA behaviour mode: it can be AHCI mode or emulate the good old
> known ATA mode. The hardisk I'm using is a SATA 300 model ( aka SATA
> II ).
> 
> I was using it in ATA mode for some time, but I tried the AHCI at each
> release. Starting with 4.5 the AHCI was setup correctly and I started
> using it as default since then. Thus, from time to time I still have
> some problems. The boot process is ok, the kernel is loaded but the
> hardisk is not detected anymore and the computer freezes at this
> point. The successful line about hardisk detect is replaced with this
> one:
> 
> sd0 at scsibus1 targ 0 lun 0: <ATA,  ,  > SCSI3 0/direct fixed
> sd0: driver offline
> unknown vendor 0x0004 product 0x0000 (class prehistoric, subclass
> miscellaneous, rev 0x04) at pci0 dev31 function 3 not configured.
> 
> Unfortunately the fail dmesg is not recorded in /var/log/messages. The
> only way to reproduce it for sure is on first reboot after fresh
> OpenBSD install. After a few reboots I will get a success.
> 
> My question is this: is it a problem about hardware failure or the
> ahci driver is not mature enough ? I'm worried because this appears
> randomly and I can't relate it to something. The only sure way to
> reproduce it is to install a fresh Openbsd, when I do the first reboot
> after install it will appear for sure.
> 
> ==== success dmesg ===
> OpenBSD 4.5-current (GENERIC) #57: Fri Jun 12 14:46:47 MDT 2009
>     dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
> cpu0: Intel(R) Pentium(R) 4 CPU 3.20GHz ("GenuineIntel" 686-class) 3.20 GHz
> cpu0: 
> FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,CNXT-ID,xTPR
> real mem  = 1071783936 (1022MB)
> avail mem = 1027928064 (980MB)
> mainbus0 at root
> bios0 at mainbus0: AT/286+ BIOS, date 07/07/06, BIOS32 rev. 0 @
> 0xffe90, SMBIOS rev. 2.3 @ 0xf0450 (72 entries)
> bios0: vendor Dell Inc. version "A08" date 07/07/2006
> bios0: Dell Inc. Precision WorkStation 370
> acpi0 at bios0: rev 0
> acpi0: tables DSDT FACP SSDT APIC BOOT ASF! MCFG HPET
> acpi0: wakeup devices VBTN(S4) PCI0(S5) PCI1(S5) PCI2(S5) PCI3(S5)
> PCI4(S5) KBD_(S3) USB0(S3) USB1(S3) USB2(S3) USB3(S3)
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: apic clock running at 199MHz
> ioapic0 at mainbus0: apid 8 pa 0xfec00000, version 20, 24 pins
> ioapic0: misconfigured as apic 0, remapped to apid 8
> acpihpet0 at acpi0: 14318179 Hz
> acpiprt0 at acpi0: bus 4 (PCI1)
> acpiprt1 at acpi0: bus 2 (PCI2)
> acpiprt2 at acpi0: bus 3 (PCI3)
> acpiprt3 at acpi0: bus 1 (PCI4)
> acpiprt4 at acpi0: bus 0 (PCI0)
> acpicpu0 at acpi0
> acpibtn0 at acpi0: VBTN
> bios0: ROM list: 0xc0000/0xf800 0xcf800/0x800
> pci0 at mainbus0 bus 0: configuration mode 1 (bios)
> pchb0 at pci0 dev 0 function 0 "Intel 82925X Host" rev 0x04
> ppb0 at pci0 dev 1 function 0 "Intel 82925X PCIE" rev 0x04: apic 8 int
> 16 (irq 11)
> pci1 at ppb0 bus 1
> vga1 at pci1 dev 0 function 0 "ATI Radeon X1650 Pro" rev 0x9e
> wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> radeondrm0 at vga1: apic 8 int 16 (irq 11)
> drm0 at radeondrm0
> "ATI Radeon X1650 Pro Sec" rev 0x9e at pci1 dev 0 function 1 not configured
> ppb1 at pci0 dev 28 function 0 "Intel 82801FB PCIE" rev 0x03: apic 8
> int 16 (irq 11)
> pci2 at ppb1 bus 2
> bge0 at pci2 dev 0 function 0 "Broadcom BCM5751" rev 0x01, BCM5750 A1
> (0x4001): apic 8 int 16 (irq 11), address 00:13:20:18:a2:cf
> brgphy0 at bge0 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0
> ppb2 at pci0 dev 28 function 1 "Intel 82801FB PCIE" rev 0x03: apic 8
> int 17 (irq 10)
> pci3 at ppb2 bus 3
> uhci0 at pci0 dev 29 function 0 "Intel 82801FB USB" rev 0x03: apic 8
> int 21 (irq 9)
> uhci1 at pci0 dev 29 function 1 "Intel 82801FB USB" rev 0x03: apic 8
> int 22 (irq 5)
> uhci2 at pci0 dev 29 function 2 "Intel 82801FB USB" rev 0x03: apic 8
> int 18 (irq 3)
> uhci3 at pci0 dev 29 function 3 "Intel 82801FB USB" rev 0x03: apic 8
> int 23 (irq 10)
> ehci0 at pci0 dev 29 function 7 "Intel 82801FB USB" rev 0x03: apic 8
> int 21 (irq 9)
> usb0 at ehci0: USB revision 2.0
> uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
> ppb3 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xd3
> pci4 at ppb3 bus 4
> emu0 at pci4 dev 2 function 0 "Creative Labs SoundBlaster Live" rev
> 0x07: apic 8 int 18 (irq 3)
> ac97: codec id 0x83847609 (SigmaTel STAC9721/23)
> ac97: codec features 18 bit DAC, 18 bit ADC, SigmaTel 3D
> audio0 at emu0
> "Creative Labs PCI Gameport Joystick" rev 0x07 at pci4 dev 2 function
> 1 not configured
> ichpcib0 at pci0 dev 31 function 0 "Intel 82801FB LPC" rev 0x03: PM disabled
> pciide0 at pci0 dev 31 function 1 "Intel 82801FB IDE" rev 0x03: DMA,
> channel 0 configured to compatibility, channel 1 configured to
> compatibility
> atapiscsi0 at pciide0 channel 0 drive 0
> scsibus0 at atapiscsi0: 2 targets
> cd0 at scsibus0 targ 0 lun 0: <PIONEER, DVD-RW DVR-116D, 1.06> ATAPI
> 5/cdrom removable
> cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
> pciide0: channel 1 ignored (disabled)
> ahci0 at pci0 dev 31 function 2 "Intel 82801FR SATA" rev 0x03: apic 8
> int 20 (irq 5), AHCI 1.0
> ahci0: PHY offline on port 1
> ahci0: PHY offline on port 2
> ahci0: PHY offline on port 3
> scsibus1 at ahci0: 32 targets
> sd0 at scsibus1 targ 0 lun 0: <ATA, WDC WD3200AAKS-0, 40.0> SCSI3 0/direct 
> fixed
> sd0: 305245MB, 512 bytes/sec, 625142448 sec total
> ichiic0 at pci0 dev 31 function 3 "Intel 82801FB SMBus" rev 0x03: SMI
> iic0 at ichiic0
> spdmem0 at iic0 addr 0x50: 512MB DDR2 SDRAM non-parity PC2-3200CL5
> spdmem1 at iic0 addr 0x52: 512MB DDR2 SDRAM non-parity PC2-3200CL5
> usb1 at uhci0: USB revision 1.0
> uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> usb2 at uhci1: USB revision 1.0
> uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> usb3 at uhci2: USB revision 1.0
> uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> usb4 at uhci3: USB revision 1.0
> uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> isa0 at ichpcib0
> isadma0 at isa0
> com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
> pckbc0 at isa0 port 0x60/5
> pckbd0 at pckbc0 (kbd slot)
> pckbc0: using irq 1 for kbd slot
> wskbd0 at pckbd0: console keyboard, using wsdisplay0
> pmsi0 at pckbc0 (aux slot)
> pckbc0: using irq 12 for aux slot
> wsmouse0 at pmsi0 mux 0
> pcppi0 at isa0 port 0x61
> midi0 at pcppi0: <PC speaker>
> spkr0 at pcppi0
> lpt0 at isa0 port 0x378/4 irq 7
> npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
> mtrr: Pentium Pro MTRR support
> softraid0 at root
> root on sd0a swap on sd0b dump on sd0b

-- 
I'm going to take a 6 month sabbatical to meditate on your words. There's just 
something deeply compelling about what you have to say that fills me with a 
sense of longing for a truer understanding of this wacky universe of ours.

Thank you fellow scholar. You have changed me.

Reply via email to