Port-vax archive

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

Re: 5.0_BETA panics on 4000/500A



On Sun, 11 Jan 2009 02:06:49 +0100 (CET)
Havard Eidnes <he%NetBSD.org@localhost> wrote:

> ...
> > qt0 at uba0 csr 174440 vec 764 ipl 17panic: Segv in kernel mode: pc
> > 801fc895 addr 1c Stopped in pid 0.1 (system) at  netbsd:trap+0x697: 
> >    
>
> This seems to happen here, in qtattach():
> 
>         evcnt_attach_dynamic(&sc->sc_intrcnt, EVCNT_TYPE_INTR,
>         ua->ua_evcnt,
>             device_xname(sc->sc_dev), "intr");

> You could try this one, sc->sc_dev isn't initialized before the
> next active line...

That worked, the DESQA is now reported as:

qt0 at uba0 csr 174440 vec 764 ipl 17
qt0: delqa-plus in Turbo mode, hardware address 08:00:2b:18:a9:9a

and the kernel now boots and works normally. Next step is to try a
native kernel build to give it some work to do :)

Thanks,
George

> Index: if_qt.c
> ===================================================================
> RCS file: /u/nb/src/sys/dev/qbus/if_qt.c,v
> retrieving revision 1.15
> diff -u -p -r1.15 if_qt.c
> --- if_qt.c     16 Dec 2008 22:35:34 -0000      1.15
> +++ if_qt.c     11 Jan 2009 01:05:43 -0000
> @@ -261,7 +261,7 @@ qtattach(device_t parent, device_t self,
>         uba_intr_establish(ua->ua_icookie, ua->ua_cvec, qtintr, sc,
>             &sc->sc_intrcnt);
>         evcnt_attach_dynamic(&sc->sc_intrcnt, EVCNT_TYPE_INTR,
>         ua->ua_evcnt,
> -           device_xname(sc->sc_dev), "intr");
> +           device_xname(self), "intr");
>  
>         sc->sc_dev = self;
>         sc->sc_uh = device_private(parent);
> 
> Regards,
> 
> - Havard
> 


Home | Main Index | Thread Index | Old Index