On 04/21/11 03:10, David Gwynne wrote:
hey,

could you try booting a GENERIC kernel instead of a ramdisk kernel and get me a 
backtrace from ddb?

cheers,
dlg

I noticed your patch and successfully booted the associated GENERIC.MP kernel. I've appended the information you requested in case you need/want more confirmation. I also appended the serial console from the -current GENERIC.MP kernel.

Thanks for the quick response.


>> OpenBSD/amd64 BOOT 3.16
boot> set
set
>> OpenBSD/amd64 BOOT 3.16
addr     0x0
howto    -s
device   hd0a
tty      com0
image    bsd.sp.bad
timeout  0
db_console       unset
boot> machine diskinfo
machine diskinfo
Disk    BIOS#   Type    Cyls    Heads   Secs    Flags   Checksum
hd0     0x80    label   1024    255     63      0x2     0xdcbf9775
boot> machine memory
machine memory
Region 0: type 1 at 0x0 for 639KB
Region 1: type 2 at 0x9fc00 for 1KB
Region 2: type 2 at 0xf0000 for 64KB
Region 3: type 1 at 0x100000 for 1047488KB
Region 4: type 3 at 0x3fff0000 for 64KB
Region 5: type 2 at 0xfffc0000 for 256KB
Low ram: 639KB  High ram: 1047488KB
Total free memory: 1048127KB
boot>

booting hd0a:bsd.sp.bad: 5589032+1593900+942424+0+629216 
[89+494616+318740]=0xd216b0
entry point at 0x1001e0 [7205c766, 34000004, 24448b12, 1e18a304]
[ using 814288 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2011 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 4.9-current (GENERIC) #40: Mon Apr 18 20:57:08 MDT 2011
    [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 1072627712 (1022MB)
avail mem = 1030045696 (982MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xe1000 (5 entries)
bios0: vendor innotek GmbH version "VirtualBox" date 12/01/2006
bios0: innotek GmbH VirtualBox
acpi0 at bios0: rev 2
acpi0: sleep states S0 S5
acpi0: tables DSDT FACP APIC SSDT
acpi0: wakeup devices
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Phenom(tm) 9550 Quad-Core Processor, 2186.73 MHz
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,NXE,FFXSR,LONG,3DNOW2,3DNOW cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 16 4MB entries fully associative
cpu0: DTLB 48 4KB entries fully associative, 48 4MB entries fully associative
cpu0: apic clock running at 999MHz
cpu at mainbus0: not configured
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 11, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
acpiprt0 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0
acpibat0 at acpi0: BAT0 not present
acpiac0 at acpi0: AC unit online
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel 82441FX" rev 0x02
pcib0 at pci0 dev 1 function 0 "Intel 82371SB ISA" rev 0x00
pciide0 at pci0 dev 1 function 1 "Intel 82371AB IDE" rev 0x01: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility
pciide0: channel 0 disabled (no drives)
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <VBOX, CD-ROM, 1.0> ATAPI 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
vga1 at pci0 dev 2 function 0 "InnoTek VirtualBox Graphics Adapter" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
em0 at pci0 dev 3 function 0 "Intel PRO/1000MT (82540EM)" rev 0x02: apic 2 int 19 (irq 10), address 08:00:27:14:ce:ca
"InnoTek VirtualBox Guest Service" rev 0x00 at pci0 dev 4 function 0 not 
configured
auich0 at pci0 dev 5 function 0 "Intel 82801AA AC97" rev 0x01: apic 2 int 21 (irq 5), ICH AC97
ac97: codec id 0x83847600 (SigmaTel STAC9700)
audio0 at auich0
ohci0 at pci0 dev 6 function 0 "Apple Intrepid USB" rev 0x00: apic 2 int 22 (irq 11), version 1.0
piixpm0 at pci0 dev 7 function 0 "Intel 82371AB Power" rev 0x08: SMBus disabled
ehci0 at pci0 dev 11 function 0 "Intel 82801FB USB" rev 0x00: apic 2 int 19 
(irq 10)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ahci0 at pci0 dev 13 function 0 "Intel 82801HBM AHCI" rev 0x02: apic 2 int 21 (irq 5), AHCI 1.1
ahci0: device on port 0 didn't come ready, TFD: 0x171<ERR>
uvm_fault(0xffffffff80d220e0, 0x0, 0, 2) -> e
kernel: page fault trap, code=0
Stopped at      ahci_get_err_ccb+0x95:  movl    $0,0x7c(%rax)
ahci_get_err_ccb() at ahci_get_err_ccb+0x95
ahci_port_softreset() at ahci_port_softreset+0x12a
ahci_port_alloc() at ahci_port_alloc+0x610
ahci_pci_attach() at ahci_pci_attach+0x147
config_attach() at config_attach+0x150
pci_probe_device() at pci_probe_device+0x3bb
pci_enumerate_bus() at pci_enumerate_bus+0xe9
config_attach() at config_attach+0x150
mainbus_attach() at mainbus_attach+0x14e
config_attach() at config_attach+0x150
end trace frame: 0xffffffff80e27e90, count: 0
ddb> trace
trace
ahci_get_err_ccb() at ahci_get_err_ccb+0x95
ahci_port_softreset() at ahci_port_softreset+0x12a
ahci_port_alloc() at ahci_port_alloc+0x610
ahci_pci_attach() at ahci_pci_attach+0x147
config_attach() at config_attach+0x150
pci_probe_device() at pci_probe_device+0x3bb
pci_enumerate_bus() at pci_enumerate_bus+0xe9
config_attach() at config_attach+0x150
mainbus_attach() at mainbus_attach+0x14e
config_attach() at config_attach+0x150
cpu_configure() at cpu_configure+0x17
main() at main+0x3de
end trace frame: 0x0, count: -12
ddb> ps
ps
   PID   PPID   PGRP    UID  S       FLAGS  WAIT          COMMAND
*    0     -1      0      0  7     0x80200                swapper
ddb> boot reboot
boot reboot
rebooting...
>> OpenBSD/amd64 BOOT 3.16
boot> boot bsd.mp
boot bsd.mp
booting hd0a:bsd.mp: 5610056+1595948+945008+0+628256 [89+496488+320004]=0xd27f30
entry point at 0x1001e0 [7205c766, 34000004, 24448b12, 7c58a304]
[ using 817424 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2011 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 4.9-current (GENERIC.MP) #6: Thu Apr 21 05:41:28 EDT 2011
    [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 1072627712 (1022MB)
avail mem = 1030021120 (982MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xe1000 (5 entries)
bios0: vendor innotek GmbH version "VirtualBox" date 12/01/2006
bios0: innotek GmbH VirtualBox
acpi0 at bios0: rev 2
acpi0: sleep states S0 S5
acpi0: tables DSDT FACP APIC SSDT
acpi0: wakeup devices
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Phenom(tm) 9550 Quad-Core Processor, 2186.90 MHz
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,NXE,FFXSR,LONG,3DNOW2,3DNOW cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 16 4MB entries fully associative
cpu0: DTLB 48 4KB entries fully associative, 48 4MB entries fully associative
cpu0: apic clock running at 1000MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD Phenom(tm) 9550 Quad-Core Processor, 2186.54 MHz
cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,NXE,FFXSR,LONG,3DNOW2,3DNOW cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 16-way L2 cache
cpu1: ITLB 32 4KB entries fully associative, 16 4MB entries fully associative
cpu1: DTLB 48 4KB entries fully associative, 48 4MB entries fully associative
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 11, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
acpiprt0 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0
acpicpu1 at acpi0
acpibat0 at acpi0: BAT0 not present
acpiac0 at acpi0: AC unit online
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel 82441FX" rev 0x02
pcib0 at pci0 dev 1 function 0 "Intel 82371SB ISA" rev 0x00
pciide0 at pci0 dev 1 function 1 "Intel 82371AB IDE" rev 0x01: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility
pciide0: channel 0 disabled (no drives)
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <VBOX, CD-ROM, 1.0> ATAPI 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
vga1 at pci0 dev 2 function 0 "InnoTek VirtualBox Graphics Adapter" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
em0 at pci0 dev 3 function 0 "Intel PRO/1000MT (82540EM)" rev 0x02: apic 2 int 19 (irq 10), address 08:00:27:14:ce:ca
"InnoTek VirtualBox Guest Service" rev 0x00 at pci0 dev 4 function 0 not 
configured
auich0 at pci0 dev 5 function 0 "Intel 82801AA AC97" rev 0x01: apic 2 int 21 (irq 5), ICH AC97
ac97: codec id 0x83847600 (SigmaTel STAC9700)
audio0 at auich0
ohci0 at pci0 dev 6 function 0 "Apple Intrepid USB" rev 0x00: apic 2 int 22 (irq 11), version 1.0
piixpm0 at pci0 dev 7 function 0 "Intel 82371AB Power" rev 0x08: SMBus disabled
ehci0 at pci0 dev 11 function 0 "Intel 82801FB USB" rev 0x00: apic 2 int 19 
(irq 10)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ahci0 at pci0 dev 13 function 0 "Intel 82801HBM AHCI" rev 0x02: apic 2 int 21 (irq 5), AHCI 1.1
ahci0: device on port 0 didn't come ready, TFD: 0x171<ERR>
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, VBOX HARDDISK, 1.0> SCSI3 0/direct fixed t10.ATA_____VBOX_HARDDISK___________________________VB7c6c1ac7-21c49bfd_
sd0: 30720MB, 512 bytes/sec, 62914560 sec total
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
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
spkr0 at pcppi0
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 "Apple OHCI root hub" rev 1.00/1.00 addr 1
mtrr: CPU supports MTRRs but not enabled
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
root on sd0a swap on sd0b dump on sd0b
Enter pathname of shell or RETURN for sh:

# time fsck -yp
time fsck -yp
/dev/rsd0a: file system is clean; not checking
/dev/rsd0d: file system is clean; not checking
/dev/rsd0f: file system is clean; not checking
/dev/rsd0g: file system is clean; not checking
/dev/rsd0h: file system is clean; not checking
/dev/rsd0o: file system is clean; not checking
/dev/rsd0e: file system is clean; not checking
    0m0.09s real     0m0.00s user     0m0.04s system
# exit
exit
Fast boot: skipping disk checks.
setting tty flags
pf enabled
ddb.console: 0 -> 1
ddb.max_line: 24 -> 0
machdep.allowaperture: 0 -> 2
machdep.kbdreset: 0 -> 1
kern.bufcachepercent: 10 -> 90
starting network
DHCPREQUEST on em0 to 255.255.255.255 port 67
DHCPACK from 10.1.2.18 (00:e0:4c:77:6d:ab)
unknown dhcp option value 0xe1
bound to 10.1.2.100 -- renewal in 302400 seconds.
starting system logger
starting initial daemons: portmap ntpd.
savecore: no core dump
checking quotas: done.
building ps databases: kvm dev.
clearing /tmp
starting pre-securelevel daemons:.
setting kernel security level: kern.securelevel: 0 -> 1
creating runtime link editor directory cache.
preserving editor files.
starting network daemons: sshd sendmail inetd.
starting standard daemons: apmd cron.
Thu Apr 21 06:04:00 EDT 2011

Reply via email to