NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-amd64/40159: can't boot with multiple cpus anymore



The following reply was made to PR port-amd64/40159; it has been noted by GNATS.

From: Martin Husemann <martin%duskware.de@localhost>
To: Andrew Doran <ad%netbsd.org@localhost>
Cc: gnats-bugs%NetBSD.org@localhost
Subject: Re: port-amd64/40159: can't boot with multiple cpus anymore
Date: Sun, 14 Dec 2008 11:04:08 +0100

 --TB36FDmn/VVEgNH/
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 On Sat, Dec 13, 2008 at 02:17:48PM +0000, Andrew Doran wrote:
 > Hang where?
 
 Sorry, I couldn't get any meaningfull output from ddb back then, but updated
 again in the meantime, added DEBUG, LOCKDEBUG and VMEM_DEBUG and now get
 the output below.
 
 Deadlock on kernel lock?
 
 Martin
 
 --TB36FDmn/VVEgNH/
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="amd64.debug.log"
 
 kernel text is mapped with 2 large pages and 301 normal pages
 Loaded initial symtab at 0xffffffff805e9e00, strtab at 0xffffffff80634848, # 
entries 12666
 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
     2006, 2007, 2008
     The NetBSD Foundation, Inc.  All rights reserved.
 Copyright (c) 1982, 1986, 1989, 1991, 1993
     The Regents of the University of California.  All rights reserved.
 
 NetBSD 5.99.5 (MARTINS) #28: Sun Dec 14 10:51:06 CET 2008
        
martin%martins.aprisoft.de@localhost:/usr/src/sys/arch/amd64/compile/MARTINS
 total memory = 4094 MB
 avail memory = 3961 MB
 SMBIOS rev. 2.33 @ 0x7ffef000 (34 entries)
 TYAN Computer Corp. S2895 (TYAN Thunder K8WE S2895)
 mainbus0 (root)
 cpu0 at mainbus0 apid 0: AMD 686-class, 2210MHz, id 0xf5a
 cpu0: WARNING: errata present, BIOS upgrade may be
 cpu0: WARNING: necessary to ensure reliable operation
 cpu1 at mainbus0 apid 1: AMD 686-class, 2210MHz, id 0xf5a
 ioapic0 at mainbus0 apid 2
 ioapic1 at mainbus0 apid 3
 ioapic2 at mainbus0 apid 4
 ioapic3 at mainbus0 apid 5
 acpi0 at mainbus0: Intel ACPICA 20080321
 acpibut0 at acpi0 (PWRB, PNP0C0C): ACPI Power Button
 attimer0 at acpi0 (PIT0, PNP0100): AT Timer
 attimer0: io 0x40-0x43 irq 0
 pcppi0 at acpi0 (SPK0, PNP0800)
 pcppi0: io 0x61
 sysbeep0 at pcppi0
 com0 at acpi0 (COM1, PNP0501-1)
 com0: io 0x3f8-0x3ff irq 4
 com: ns16550a, working fifo
 com0: console
 FDC (PNP0700) at acpi0 not configured
 pckbc0 at acpi0 (PS2K, PNP0303): kbd port
 pckbc0: io 0x60,0x64 irq 1
 pckbc1 at acpi0 (PS2M, PNP0F13): aux port
 pckbc1: irq 12
 NVRB (_NVRAIDBU) at acpi0 not configured
 attimer0: attached to pcppi0
 pckbd0 at pckbc0 (kbd slot)
 pckbc0: using irq 1 for kbd slot
 wskbd0 at pckbd0 mux 1
 pmsprobe: reset error 5
 pci0 at mainbus0 bus 0: configuration mode 1
 vendor 0x10de product 0x005e (miscellaneous memory, revision 0xa3) at pci0 dev 
0 function 0 not configured
 pcib0 at pci0 dev 1 function 0
 pcib0: vendor 0x10de product 0x0051 (rev. 0xa3)
 vendor 0x10de product 0x0052 (SMBus serial bus, revision 0xa2) at pci0 dev 1 
function 1 not configured
 ohci0 at pci0 dev 2 function 0: vendor 0x10de product 0x005a (rev. 0xa2)
 ohci0: interrupting at ioapic0 pin 20
 ohci0: OHCI version 1.0, legacy support
 usb0 at ohci0: USB revision 1.0
 ehci0 at pci0 dev 2 function 1: vendor 0x10de product 0x005b (rev. 0xa3)
 ehci0: interrupting at ioapic0 pin 21
 ehci0: BIOS refuses to give up ownership, using force
 ehci0: companion controller, 4 ports each: ohci0
 usb1 at ehci0: USB revision 2.0
 auich0 at pci0 dev 4 function 0: nForce4 AC-97 Audio
 auich0: interrupting at ioapic0 pin 22
 auich0: ac97: Analog Devices AD1981B codec; headphone, 20 bit DAC, no 3D stereo
 auich0: ac97: ext id 605<AC97_22,AMAP,SPDIF,VRA>
 viaide0 at pci0 dev 6 function 0
 viaide0: NVIDIA nForce4 IDE Controller (rev. 0xf2)
 viaide0: primary channel interrupting at ioapic0 pin 14
 atabus0 at viaide0 channel 0
 viaide0: secondary channel interrupting at ioapic0 pin 15
 atabus1 at viaide0 channel 1
 viaide1 at pci0 dev 7 function 0
 viaide1: NVIDIA nForce4 Serial ATA Controller (rev. 0xf3)
 viaide1: using ioapic0 pin 23 for native-PCI interrupt
 atabus2 at viaide1 channel 0
 atabus3 at viaide1 channel 1
 viaide2 at pci0 dev 8 function 0
 viaide2: NVIDIA nForce4 Serial ATA Controller (rev. 0xf3)
 viaide2: using ioapic0 pin 20 for native-PCI interrupt
 atabus4 at viaide2 channel 0
 atabus5 at viaide2 channel 1
 ppb0 at pci0 dev 9 function 0: vendor 0x10de product 0x005c (rev. 0xa2)
 pci1 at ppb0 bus 1
 nfe0 at pci0 dev 10 function 0: vendor 0x10de product 0x0057 (rev. 0xa3)
 nfe0: interrupting at ioapic0 pin 21
 nfe0: Ethernet address 00:e0:81:54:9d:e8
 makphy0 at nfe0 phy 1: Marvell 88E1111 Gigabit PHY, rev. 1
 makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 
1000baseT-FDX, auto
 ppb1 at pci0 dev 14 function 0: vendor 0x10de product 0x005d (rev. 0xa3)
 pci2 at ppb1 bus 2
 vga0 at pci2 dev 0 function 0: vendor 0x1002 product 0x5e4b (rev. 0x00)
 wsdisplay0 at vga0 kbdmux 1
 drm at vga0 not configured
 vendor 0x1002 product 0x5e6b (miscellaneous display) at pci2 dev 0 function 1 
not configured
 pchb0 at pci0 dev 24 function 0
 pchb0: vendor 0x1022 product 0x1100 (rev. 0x00)
 pchb1 at pci0 dev 24 function 1
 pchb1: vendor 0x1022 product 0x1101 (rev. 0x00)
 pchb2 at pci0 dev 24 function 2
 pchb2: vendor 0x1022 product 0x1102 (rev. 0x00)
 pchb3 at pci0 dev 24 function 3
 pchb3: vendor 0x1022 product 0x1103 (rev. 0x00)
 pchb4 at pci0 dev 25 function 0
 pchb4: vendor 0x1022 product 0x1100 (rev. 0x00)
 pchb5 at pci0 dev 25 function 1
 pchb5: vendor 0x1022 product 0x1101 (rev. 0x00)
 pchb6 at pci0 dev 25 function 2
 pchb6: vendor 0x1022 product 0x1102 (rev. 0x00)
 pchb7 at pci0 dev 25 function 3
 pchb7: vendor 0x1022 product 0x1103 (rev. 0x00)
 isa0 at pcib0
 smsc0 at isa0 port 0x2e-0x2f: SMSC LPC47B397 Super I/O (rev 1)
 smsc0: Hardware Monitor registers at 0x0480
 pci3 at mainbus0 bus 17
 pci4 at mainbus0 bus 18
 gem0 at pci4 dev 4 function 0: vendor 0x108e product 0x2bad (rev. 0x01)
 gem0: interrupting at ioapic2 pin 0
 gem0: using external PCS SERDES: 1000baseSX-FDX, 1000baseSX-HDX, auto
 gem0: Ethernet address 00:03:ba:1c:af:40, 20KB RX fifo, 9KB TX fifo
 pci5 at mainbus0 bus 128
 vendor 0x10de product 0x005e (miscellaneous memory, revision 0xa3) at pci5 dev 
0 function 0 not configured
 vendor 0x10de product 0x00d3 (miscellaneous memory, revision 0xa3) at pci5 dev 
1 function 0 not configured
 nfe1 at pci5 dev 10 function 0: vendor 0x10de product 0x0057 (rev. 0xa3)
 nfe1: interrupting at ioapic3 pin 20
 nfe1: Ethernet address 00:e0:81:54:9d:e9
 makphy1 at nfe1 phy 1: Marvell 88E1111 Gigabit PHY, rev. 1
 makphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 
1000baseT-FDX, auto
 ppb2 at pci5 dev 14 function 0: vendor 0x10de product 0x005d (rev. 0xa3)
 pci6 at ppb2 bus 129
 auich0: measured ac97 link rate at 48000 Hz
 audio0 at auich0: full duplex, mmap, independent
 uhub0 at usb0: vendor 0x10de OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub1 at usb1: vendor 0x10de EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
 atapibus0 at atabus0: 2 targets
 cd0 at atapibus0 drive 0: <HL-DT-STDVD-ROM GDR8164B, , 0L06> cdrom removable
 viaide2 port 1: device present, speed: 1.5Gb/s
 viaide2 port 0: device present, speed: 1.5Gb/s
 viaide1 port 1: device present, speed: 1.5Gb/s
 sysctl_createv: sysctl_create(kern) returned 1
 sysctl_createv: sysctl_locate(boottime) returned 2
 sysctl_createv: sysctl_create(vm) returned 1
 sysctl_createv: sysctl_locate(loadavg) returned 2
 sysctl_createv: sysctl_create(hw) returned 1
 sysctl_createv: sysctl_locate(machine) returned 2
 sysctl_createv: sysctl_locate(machine_arch) returned 2
 ehci0: handing over full speed device on port 1 to ohci0
 wd0 at atabus3 drive 0: <WDC WD1600JD-00HBB0>
 wd0: 149 GB, 310101 cyl, 16 head, 63 sec, 512 bytes/sect x 312581808 sectors
 wd1 at atabus4 drive 0ehci0: handing over low speed device on port 3 to ohci0
 : <WDC WD740GD-00FLA2>
 wd1: 70911 MB, 144073 cyl, 16 head, 63 sec, 512 bytes/sect x 145226112 sectors
 wd2 at atabus5 drive 0: <WDC WD740GD-00FLA2>
 wd2: 70911 MB, 144073 cyl, 16 head, 63 sec, 512 bytes/sect x 145226112 sectors
 ugen0 at uhub0 port 1
 ugen0: Syncrosoft ProtectExecuter, rev 1.10/1.01, addr 2
 boot device: wd0
 root on wd0a dumps on wd0b
 mountroot: trying ntfs...
 mountroot: trying nfs...
 mountroot: trying msdos...
 mountroot: trying ffs...
 root file system type: ffs
 init: copying out path `/sbin/init' 11
 Sun Dec 14 11:55:56 CET 2008
 ~fatal breakpoint trap in supervisor mode
 trap type 1 code 0 rip ffffffff801529f5 cs 8 rflags 202 cr2  ffff80004dab4000 
cpl 8 rsp ffff80004bac3a48
 Stopped in pid 0.6 (system) at  netbsd:breakpoint+0x5:  leave
 db{0}> bt
 breakpoint() at netbsd:breakpoint+0x5
 comintr() at netbsd:comintr+0x53a
 Xintr_ioapic_edge1() at netbsd:Xintr_ioapic_edge1+0xef
 --- interrupt ---
 bus_space_read_1() at netbsd:bus_space_read_1+0xe
 intr_biglock_wrapper() at netbsd:intr_biglock_wrapper+0x1d
 Xintr_ioapic_edge7() at netbsd:Xintr_ioapic_edge7+0xef
 --- interrupt ---
 ttstart() at netbsd:ttstart+0x7
 DDB lost frame for netbsd:Xsoftintr+0x50, trying 0xffff80004bac3d70
 Xsoftintr() at netbsd:Xsoftintr+0x50
 --- interrupt ---
 0:
 db{0}> mach cpu 1
 using CPU 1
 db{0}> bt
 _kernel_lock() at netbsd:_kernel_lock+0x11e
 sleepq_block() at netbsd:sleepq_block+0x1b3
 usb_delay_ms() at netbsd:usb_delay_ms+0x75
 ohci_root_ctrl_start() at netbsd:ohci_root_ctrl_start+0xb23
 usbd_transfer() at netbsd:usbd_transfer+0xaf
 usbd_do_request_flags_pipe() at netbsd:usbd_do_request_flags_pipe+0xce
 usbd_do_request_flags() at netbsd:usbd_do_request_flags+0x25
 usbd_reset_port() at netbsd:usbd_reset_port+0x54
 uhub_explore() at netbsd:uhub_explore+0x2b8
 usb_discover() at netbsd:usb_discover+0x42
 usb_event_thread() at netbsd:usb_event_thread+0xcf
 db{0}> ps /l
  PID         LID S     FLAGS       STRUCT LWP *               NAME WAIT
  5             1 3         4   ffff80004b2bf040                 sh biowait
  2             1 3        84   ffff80004b2bf420                 sh piperd
  1             1 3        84   ffff80004b2be7e0               init wait
 >0            45 3       204   ffff80004b2bd3e0        vmem_rehash vmem_rehash
               44 3       204   ffff80004b2bd000           aiodoned aiodoned
               43 3       204   ffff80004b2bebc0            ioflush syncer
               42 3       204   ffff80004b2be020           pgdaemon pgdaemon
               38 7       204   ffff80004b2bdba0               usb0
               37 3       204   ffff80004b2bf800         usbtask-dr usbtsk
               36 3       204   ffff80004b2bfbe0         usbtask-hc usbtsk
               35 3       204   ffff80004b2bd7c0               usb1 usbevt
               34 3       204   ffff80004b2be400          atapibus0 sccomp
               24 3       204   ffff80004b2bb420            atabus5 atath
               23 3       204   ffff80004b2bb800            atabus4 atath
               22 3       204   ffff80004b2bbbe0            atabus3 atath
               21 3       204   ffff80004b2b9020            atabus2 atath
               20 3       204   ffff80004b2b9400            atabus1 atath
               19 3       204   ffff80004b2b97e0            atabus0 atath
               18 3       204   ffff80004b2b9bc0            xcall/1 xcall
               17 1       204   ffff80004b2b8000          softser/1
               16 1       204   ffff80004b2b83e0          softclk/1
               15 1       204   ffff80004b2b87c0          softbio/1
               14 1       204   ffff80004b2b8ba0          softnet/1
               13 1       205   ffff80004b2af040             idle/1
               12 3       204   ffff80004b2af420             sysmon smtaskq
               11 3       204   ffff80004b2af800           pmfevent pmfevent
               10 3       204   ffff80004b2afbe0            cachegc cachegc
                9 3       204   ffff80004b2ac020              vrele vrele
                8 3       204   ffff80004b2ac400          modunload modunload
                7 3       204   ffff80004b2ac7e0            xcall/0 xcall
            >   6 7       204   ffff80004b2acbc0          softser/0
                5 7       204   ffff80004b2aa000          softclk/0
                4 7       204   ffff80004b2aa3e0          softbio/0
                3 1       204   ffff80004b2aa7c0          softnet/0
                2 7       205   ffff80004b2aaba0             idle/0
                1 3       204   ffffffff80536f00            swapper schedule
 db{0}>
 
 --TB36FDmn/VVEgNH/--
 


Home | Main Index | Thread Index | Old Index