NetBSD-Bugs archive

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

port-hpcmips/43472: Missing callout_init in .../hpcmips/tx/txcom.c - kernel hangs up when booting



>Number:         43472
>Category:       port-hpcmips
>Synopsis:       Missing callout_init in .../hpcmips/tx/txcom.c - kernel hangs 
>up when booting
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    port-hpcmips-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 14 21:00:00 +0000 2010
>Originator:     Risto Sainio
>Release:        NetBSD 5.0.2_PATCH
>Organization:
>Environment:
NetBSD rsa02.rsa.org 5.0.2_PATCH NetBSD 5.0.2_PATCH (TX3922_rsa) #22: Sat Jun 
12 01:50:35 CEST 2010  
root@vrsa89:/usr/objdir_current/sys/arch/hpcmips/compile/TX3922_rsa hpcmips
>Description:
While booting on TX3922 based system kernel hangs up. Switching on DIAGNOSTIC 
showed following:

panic: kernel diagnostic assertion "c->c_magic == CALLOUT_MAGIC" failed: file 
"/usr/src/sys/kern/kern_timeout.c", line 382
Stopped in pid 0.1 (system) at  netbsd:cpu_Debugger+0x4:        jr      ra
                bdslot: nop
db> bt
cpu_Debugger+4 (83fef000,1,5,0) ra 801713bc sz 0
panic+1fc (83fef000,8022db74,80243c08,80243be4) ra 8021df4c sz 48
__kernassert+3c (83fef000,8022db74,80243c08,80243be4) ra 8015d5f8 sz 32
callout_reset+5c (83fef000,8022db74,80243c08,80243be4) ra 80200f14 sz 40
txcom_txintr+74 (83fef000,8022db74,80243c08,80243be4) ra 801fd180 sz 24
cpu_intr+164 (83fef000,8022db74,80243c08,80243be4) ra 801e021c sz 40
mips1_KernIntr+84 (7f01,0,8032b928,80242f88) ra 801501d8 sz 128
sleepq_abort+3c (7f01,0,8032b928,80242f88) ra 80155308 sz 32
ltsleep+8c (7f01,0,8032b928,80242f88) ra 8020ade8 sz 56
wdc_pcmcia_attach+328 (7f01,0,8032b928,80242f88) ra 80162ffc sz 64
config_attach_loc+1ac (7f01,0,8032b928,80242f88) ra 80207c0c sz 48
pcmcia_rescan+c0 (7f01,0,8032b928,80242f88) ra 80207d4c sz 72
pcmcia_card_attach+114 (7f01,0,8032b928,80242f88) ra 80204488 sz 32
plumpcmcia_attach_socket+8c (7f01,0,8032b928,80242f88) ra 80204610 sz 48
plumpcmcia_attach+178 (7f01,0,8032b928,80242f88) ra 80162ffc sz 56
config_attach_loc+1ac (7f01,0,8032b928,80242f88) ra 8016306c sz 48
config_attach+18 (7f01,0,8032b928,80201ed0) ra 80201fc4 sz 32
plum_search+74 (7f01,0,8032b928,8029d978) ra 801619b0 sz 56
mapply+38 (7f01,0,8032b928,8029d978) ra 80161bc4 sz 32
config_search_loc+13c (7f01,0,8032b928,8029d978) ra 80161c14 sz 64
config_search_ia+14 (7f01,0,8032b928,80201ed0) ra 80162ffc sz 32
config_attach_loc+1ac (7f01,0,8032b928,80201ed0) ra 8016306c sz 48

>How-To-Repeat:
booting the system
>Fix:
added following in hpcmips/tx/txcom.c
function txcom_attach:

        printf("\n");

        /* initialize callouts */
        callout_init(&sc->sc_rxsoft_ch, 0);
        callout_init(&sc->sc_txsoft_ch, 0);


        /*
         * Enable interrupt
         */
#define TXCOMINTR(i, s) MAKEINTR(2, TX39_INTRSTATUS2_UART##i##INT(s))



Home | Main Index | Thread Index | Old Index