I write this partly as a reply to my message from May 18, 2008:
> 4.3, snapshot panic while booting after ahci when no cd in drive (amd64)

To cut it short:
The kernel panics on boot if the drive is empty or open.
I can boot if there is a blank cd or dvd in the drive.
Some nonempty discs also cause a panic.

It also panics if I try to mount a cd / dvd.

I can boot from cd.

*ddb output:*
ahci0 at pci0 dev 18 function 0 "ATI SB600 SATA" rev 0x00: apic 1 int 22 (irq 11), AHCI 1.1
scsibus0 at ahci0: 32 targets, initiator 32
sd0 at scsibus0 targ 0 lun 0: <ATA, SAMSUNG HD082GJ, JE10> SCSI3 0/direct fixed
sd0: 76319MB, 512 bytes/sec, 156301488 sec total
panic: kernel diagnostic assertion "ccb->ccb_xa.state == ATA_S_ONCHIP"
failed: file "../../../../dev/pci/ahci.c", line 1810
Stopped at      Debugger+0x5:    leave
Debugger() at Debugger+0x5
panic() at panic+0x122
__assert() at __assert+0x21
ahci_port_intr() at ahci_port_intr+0x218
ahci_poll() at ahci_poll+0x4d
ahci_ata_cmd() at ahci_ata_cmd+0x9b
ata_exec() at ata_exec+0x19
scsi_execute_xs() at scsi_execute_xs+0x6d
scsi_scsi_cmd() at scsi_scsi_cmd+0xcb
scsi_test_unit_ready() at ascsi_test_unit_ready+0x43
end trace frame: 0xffffffff80c25a70, count: 0

*ddb{0}> trace*
Debugger() at Debugger+0x5
panic() at panic+0x122
__assert() at __assert+0x21
ahci_port_intr() at ahci_port_intr+0x218
ahci_poll() at ahci_poll+0x4d
ahci_ata_cmd() at ahci_ata_cmd+0x9b
ata_exec() at ata_exec+0x19
scsi_execute_xs() at scsi_execute_xs+0x6d
scsi_scsi_cmd() ata scsi_scsi_cmd+0xcb
scsi_test_unit_ready() ata scsi_test_unit_ready+0x43
scsi_probedev() at scsi_pobedev+0x3c2
scsi_probe_target() at scsi_probe_target+0x26
scsi_probe_bus() at scsi_probe_bus+0x38
config_attach() at config_attach+0x11b
atascsi_attach() at atascsi_attach+0xf8
ahci_pci_attach() ata ahci_pci_attach+0x18a
config_attach() at config_attach+0x11b
pci_probe_device() at pci_probe_device+0x218
pci_enumerate_bus() at pci_enumerate_bus+0x104
config_attach() at config_attach+0x11b
mainbus_attach() at mainbus_attach+0x14f
config_attach() at config_attach+0x11b
cpu_configure() at cpu_configure+0x1c
main() at main+0x3d0
end trace frame: 0x0, count: -24

*ddb{0}> ps*
 PID   PPID   PGRP   UID  S   FLAGS  WAIT   COMMAND
*    0     -1      0     0  7 0x80200         swapper

*dmesg:*
OpenBSD 4.4-current (GENERIC.MP) #2086: Fri Feb  6 14:24:23 MST 2009
   t...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2012020736 (1918MB)
avail mem = 1941286912 (1851MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xfb990 (48 entries)
bios0: vendor American Megatrends Inc. version "V1.5" date 10/15/2007
bios0: MICRO-STAR INTERANTIONAL CO.,LTD MS-7368
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP APIC MCFG OEMB HPET SSDT
acpi0: wakeup devices PCE2(S4) PCE3(S4) PCE4(S4) PCE5(S4) PCE6(S4) PCE7(S4) SBAZ(S4) PS2K(S1) PS2M(S1) P0PC(S4) AC97(S4) MC97(S4) USB1(S4) USB2(S4) USB3(S4) USB4(S4) USB5(S4) EUSB(S4) PWRB(S1)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Athlon(tm) Processor LE-1600, 2200.25 MHz
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB 64b/line 16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: apic clock running at 199MHz
ioapic0 at mainbus0 apid 1 pa 0xfec00000, version 21, 24 pins
acpihpet0 at acpi0: 14318180 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (P0P1)
acpiprt2 at acpi0: bus -1 (PCE2)
acpiprt3 at acpi0: bus -1 (PCE3)
acpiprt4 at acpi0: bus -1 (PCE4)
acpiprt5 at acpi0: bus -1 (PCE5)
acpiprt6 at acpi0: bus -1 (PCE6)
acpiprt7 at acpi0: bus 2 (PCE7)
acpiprt8 at acpi0: bus 3 (P0PC)
acpicpu0 at acpi0: PSS
acpibtn0 at acpi0: PWRB
cpu0: PowerNow! K8 2200 MHz: speeds: 2200 2000 1800 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 "ATI RS690 Host" rev 0x00
ppb0 at pci0 dev 1 function 0 "ATI RS690 PCIE" rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 5 function 0 "ATI Radeon X1250" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
radeondrm0 at vga1: apic 1 int 18 (irq 10)
drm0 at radeondrm0
azalia0 at pci1 dev 5 function 2 "ATI RS690 HD Audio" rev 0x00: apic 1 int 19 (irq 10)
azalia0: codecs: ATI/0x791a
audio0 at azalia0
ppb1 at pci0 dev 7 function 0 "ATI RS690 PCIE" rev 0x00
pci2 at ppb1 bus 2
re0 at pci2 dev 0 function 0 "Realtek 8168" rev 0x01: RTL8168 2 (0x3800), apic 1 int 19 (irq 10), address 00:1d:92:34:4f:37
rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 2
ahci0 at pci0 dev 18 function 0 "ATI SB600 SATA" rev 0x00: apic 1 int 22 (irq 11), AHCI 1.1
scsibus0 at ahci0: 32 targets, initiator 32
sd0 at scsibus0 targ 0 lun 0: <ATA, SAMSUNG HD082GJ, JE10> SCSI3 0/direct fixed
sd0: 76319MB, 512 bytes/sec, 156301488 sec total
cd0 at scsibus0 targ 1 lun 0: <TSSTcorp, CDDVDW SH-S203N, SB01> ATAPI 5/cdrom removable sd1 at scsibus0 targ 2 lun 0: <ATA, SAMSUNG HD502IJ, 1AA0> SCSI3 0/direct fixed
sd1: 476940MB, 512 bytes/sec, 976773168 sec total
sd2 at scsibus0 targ 3 lun 0: <ATA, SAMSUNG HD502IJ, 1AA0> SCSI3 0/direct fixed
sd2: 476940MB, 512 bytes/sec, 976773168 sec total
ohci0 at pci0 dev 19 function 0 "ATI SB600 USB" rev 0x00: apic 1 int 16 (irq 5), version 1.0, legacy support ohci1 at pci0 dev 19 function 1 "ATI SB600 USB" rev 0x00: apic 1 int 17 (irq 7), version 1.0, legacy support ohci2 at pci0 dev 19 function 2 "ATI SB600 USB" rev 0x00: apic 1 int 18 (irq 10), version 1.0, legacy support ohci3 at pci0 dev 19 function 3 "ATI SB600 USB" rev 0x00: apic 1 int 17 (irq 7), version 1.0, legacy support ohci4 at pci0 dev 19 function 4 "ATI SB600 USB" rev 0x00: apic 1 int 18 (irq 10), version 1.0, legacy support ehci0 at pci0 dev 19 function 5 "ATI SB600 USB2" rev 0x00: apic 1 int 19 (irq 10)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "ATI EHCI root hub" rev 2.00/1.00 addr 1
piixpm0 at pci0 dev 20 function 0 "ATI SBx00 SMBus" rev 0x14: SMI
iic0 at piixpm0
iic0: addr 0x2f 00=c2 01=00 02=00 03=00 04=07 05=20 06=18 07=00 08=00 14=14 15=62 16=02 17=05 words 00=c2ff 01=00ff 02=00ff 03=00ff 04=07ff 05=20ff 06=18ff 07=00ff
spdmem0 at iic0 addr 0x52: 1GB DDR2 SDRAM non-parity PC2-6400CL5
spdmem1 at iic0 addr 0x53: 1GB DDR2 SDRAM non-parity PC2-6400CL5
pciide0 at pci0 dev 20 function 1 "ATI SB600 IDE" rev 0x00: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: <SAMSUNG SP1654N>
wd0: 16-sector PIO, LBA48, 152627MB, 312581808 sectors
wd1 at pciide0 channel 0 drive 1: <SAMSUNG SP1613N>
wd1: 16-sector PIO, LBA48, 152627MB, 312581808 sectors
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 5
wd1(pciide0:0:1): using PIO mode 4, DMA mode 2, Ultra-DMA mode 5
azalia1 at pci0 dev 20 function 2 "ATI SBx00 HD Audio" rev 0x00: apic 1 int 16 (irq 5)
azalia1: codecs: Realtek ALC888
audio1 at azalia1
pcib0 at pci0 dev 20 function 3 "ATI SB600 ISA" rev 0x00
ppb2 at pci0 dev 20 function 4 "ATI SB600 PCI" rev 0x00
pci3 at ppb2 bus 3
rl0 at pci3 dev 2 function 0 "Realtek 8139" rev 0x10: apic 1 int 20 (irq 4), address 00:c0:df:07:72:dd
rlphy0 at rl0 phy 0: RTL internal PHY
"VIA VT6306 FireWire" rev 0xc0 at pci3 dev 6 function 0 not configured
pchb1 at pci0 dev 24 function 0 "AMD AMD64 0Fh HyperTransport" rev 0x00
pchb2 at pci0 dev 24 function 1 "AMD AMD64 0Fh Address Map" rev 0x00
pchb3 at pci0 dev 24 function 2 "AMD AMD64 0Fh DRAM Cfg" rev 0x00
kate0 at pci0 dev 24 function 3 "AMD AMD64 0Fh Misc Cfg" rev 0x00: core rev DH-F3
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb2 at ohci1: USB revision 1.0
uhub2 at usb2 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb3 at ohci2: USB revision 1.0
uhub3 at usb3 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb4 at ohci3: USB revision 1.0
uhub4 at usb4 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb5 at ohci4: USB revision 1.0
uhub5 at usb5 "ATI OHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
com1: probed fifo depth: 15 bytes
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
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
mtrr: Pentium Pro MTRR support
softraid0 at root
root on sd0a swap on sd0b dump on sd0b

Reply via email to