Port-macppc archive

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

Current hangs on G4 tower



I am trying to boot -current on a dual G4 mac. All seems fine, but after
detecting disks one cpu seems to "hang" in sofclock and the boot never
continues:

[   1.0000000] gem0: Ethernet address 00:03:93:71:ff:cc, 10KB RX fifo, 4KB TX fifo
[   1.0000000] vmmask 33de0000 schedmask 3ffe0000 highmask 7ffe0000
[   1.0000228] fwohci0: BUS reset
[   1.0000228] fwohci0: node_id=0xc800ffc0, gen=2, CYCLEMASTER mode
[   1.0000228] ieee1394if0: 1 nodes, maxhop <= 0 cable IRM irm(0) (me)
[   1.0000228] ieee1394if0: bus manager 0
[   1.0000228] cpu1 started
[   1.0599916] uhub0 at usb1: NetBSD (0000) OHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1
[   1.0799955] uhub1 at usb0: NetBSD (0000) OHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1
[   4.1599924] wd0 at atabus0 drive 0
[   4.1599924] wd0: <WDC WD2000JB-00FUA0>
[   4.1699930] wd0: 186 GB, 387621 cyl, 16 head, 63 sec, 512 bytes/sect x 390721968 sectors
[   4.2299927] atapibus0 at atabus1: 2 targets
[   4.2599924] cd0 at atapibus0 drive 0: <HL-DT-STDVD-ROM GDR8161B, , 0100> cdrom removable
~Stopped in pid 0.2 (system) at  netbsd:zstty_stint+0x1d8:       b       netbsd:z
stty_stint+0x144
db{0}> ps
PID    LID S CPU     FLAGS       STRUCT LWP *               NAME WAIT
1        1 3   1         0           3f88f9e0               init lbolt
0       58 3   1       200           3f86b160          atapibus0 sccomp
0       57 5   0       200           3f945c40           (zombie)
0       55 3   1       200           3f8e40e0               usb0 usbevt
0       54 3   1       200           3f8e3100               usb1 usbevt
0       53 3   1       200           3f88fcc0            npfgc-0 xchicv
0       52 3   0       200           3f88f700            rt_free rt_free
0       51 3   0       200           3f88f420              unpgc unpgc
0       50 3   0       200           3f88f140    key_timehandler key_timehandler

0       49 3   1       200           3f89eca0    icmp6_wqinput/1 icmp6_wqinput
0       48 3   0       200           3f89e9c0    icmp6_wqinput/0 icmp6_wqinput
0       47 3   1       200           3f89e6e0          nd6_timer nd6_timer
0       46 3   1       200           3f89e400    carp6_wqinput/1 carp6_wqinput
0       45 3   0       200           3f89e120    carp6_wqinput/0 carp6_wqinput
0       44 3   1       200           3f8e3c80     carp_wqinput/1 carp_wqinput
0       43 3   0       200           3f8e39a0     carp_wqinput/0 carp_wqinput
0       42 3   1       200           3f8e36c0     icmp_wqinput/1 icmp_wqinput
0       41 3   0       200           3f8e46a0     icmp_wqinput/0 icmp_wqinput
0       40 3   1       200           3f8e4c60           rt_timer rt_timer
0       39 3   0       200           3f8e33e0        vmem_rehash vmem_rehash
0       30 3   0       280           3f945960           fw0probe ieee1394
0       29 3   1       200           3f945680         usbtask-dr usbtsk
0       28 3   0       200           3f9453a0         usbtask-hc usbtsk
0       27 3   1       200           3f9450c0            atabus2 atath
0       26 3   0       200           3f976c20            atabus1 atath
0       25 3   0       200           3f976940            atabus0 atath
0       24 3   0       200           3f976660               iic1 iicintr
0       23 3   0       200           3f976380                pmu wait
0       22 3   0       200           3f9760a0               iic0 iicintr
0       21 3   1       200           3f980c00            xcall/1 xcall
0       20 1   1       200           3f980920          softser/1
0    >  19 7   1       200           3f980640          softclk/1
0       18 1   1       200           3f980360          softbio/1
0       17 1   1       200           3f980080          softnet/1
0    >  16 7   1       201           3f994be0             idle/1
0       15 3   0       200           3f994900             sysmon smtaskq
0       14 3   1       200           3f994620         pmfsuspend pmfsuspend
0       13 3   0       200           3f994340           pmfevent pmfevent
0       12 3   0       200           3f994060         sopendfree sopendfr
0       11 3   1       200           3fb27bc0           nfssilly nfssilly
0       10 3   0       200           3fb278e0            cachegc cachegc
0        9 3   0       200           3fb27600             vdrain vdrain
0        8 3   0       200           3fb27320          modunload mod_unld
0        7 3   0       200           3fb27040            xcall/0 xcall
0        6 1   0       200           3fb31ba0          softser/0
0        5 1   0       200           3fb318c0          softclk/0
0        4 1   0       200           3fb315e0          softbio/0
0        3 1   0       200           3fb31300          softnet/0
0    >   2 7   0       201           3fb31020             idle/0
0        1 3   1       200             b89700            swapper tstile

db{0}> bt/a 3f980640
trace: pid 0 lid 19 at 0x10047eb0
0x10047ee0: at softint_dispatch+0xa8
0x10047f20: at softint_fast_dispatch+0xdc
saved LR(0xff3ffb79) is invalid.
db{0}> x/i softint_dispatch+0xa0
netbsd:softint_dispatch+0xa0:   lwz     r3, 0x8(r31)
db{0}> 
netbsd:softint_dispatch+0xa4:   mtspr   ctr, r9,
db{0}> 
netbsd:softint_dispatch+0xa8:   bctrl


and looking at netbsd.gdb:

(gdb) list *(softint_dispatch+0xa8)
0x68f388 is in softint_dispatch (../../../../kern/kern_softint.c:592).
587                             }
588                     } else if (!havelock) {
589                             KERNEL_LOCK(1, l);
590                             havelock = true;
591                     }
592                     (*sh->sh_func)(sh->sh_arg);
593     
594                     /* Diagnostic: check that spin-locks have not leaked. */
595                     KASSERTMSG(curcpu()->ci_mtx_count == 0,
596                         "%s: ci_mtx_count (%d) != 0, sh_func %p\n",
(gdb) x/16i  *(softint_dispatch+0xa0)
   0x68f380 <softint_dispatch+160>:     lwz     r3,8(r31)
   0x68f384 <softint_dispatch+164>:     mtctr   r9
   0x68f388 <softint_dispatch+168>:     bctrl
   0x68f38c <softint_dispatch+172>:     li      r3,7
   0x68f390 <softint_dispatch+176>:     bl      0x1350d8 <splraise>
...


Any ideas?

Martin


Home | Main Index | Thread Index | Old Index