NetBSD-Bugs archive

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

Re: port-macppc/54331: macppc MP kernels fail to boot successfully in -current



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

From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: port-macppc/54331: macppc MP kernels fail to boot successfully
 in -current
Date: Fri, 16 Aug 2019 11:09:29 +0200

 I seem to have the same problem (with 9.99.9 on a silver tower dual G4 mac).
 
 I have serial console though and can get into ddb.
 
 Your suggested patch shows:
 
 [   1.0000227] cpu1 started
 [   1.0599986] uhub0 at usb1: NetBSD (0000) OHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1
 [   1.0799956] uhub1 at usb0: NetBSD (0000) OHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1
 [   2.1799924] config_finalize: config_pending still 3
 [   3.1799924] config_finalize: config_pending still 3
 [   4.1699925] wd0 at atabus0 drive 0
 [   4.1828592] config_finalize: config_pending still 3
 [   4.1828592] wd0: <WDC WD2000JB-00FUA0>
 [   4.1828592] wd0: 186 GB, 387621 cyl, 16 head, 63 sec, 512 bytes/sect x 390721968 sectors
 [   4.2499928] atapibus0 at atabus1: 2 targets
 [   4.2799925] cd0 at atapibus0 drive 0: <HL-DT-STDVD-ROM GDR8161B, , 0100> cdrom removable
 [   4.2999962] config_finalize: config_pending still 0
 
 and then everything seems idle but cpu1 stuck in softclk:
 
 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             b85b80            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
 
 Martin
 


Home | Main Index | Thread Index | Old Index