Current-Users archive

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

Re: Panic on a -current from 13/12/2018



Hi.

On 2018/12/16 18:09, Chavdar Ivanov wrote:
> Repeated this morning. Happens when the host hibernates when the
> machine is running. The initial trace is slightly different, but the
> lines with wm_gmii are the same, so for now I will switch to a
> different NIC emulator.
> 

In your .png:
>vpanic()
>lapic_delay()
>wm_gmii_mdic_readreg()
>.
>.
>.

There is no panic message itself, but I suspect it's:
> static void
> lapic_delay(unsigned int usec)
> {
>         int32_t xtick, otick;
>         int64_t deltat;         /* XXX may want to be 64bit */
> 
>         otick = lapic_gettick();
> 
>         if (usec <= 0)
>                 return;
>         if (usec <= 25)
>                 deltat = lapic_delaytab[usec];
>         else
>                 deltat = (lapic_frac_cycle_per_usec * usec) >> 32;
> 
>         while (deltat > 0) {
>                 xtick = lapic_gettick();
>                 if (lapic_broken_periodic && xtick == 0 && otick == 0) {
>                         lapic_initclocks();
>                         xtick = lapic_gettick();
>                         if (xtick == 0)
>                                 panic("lapic timer stopped ticking");   <=========== here!
>                 }
>                 if (xtick > otick)
>                         deltat -= lapic_tval - (xtick - otick);
>                 else
>                         deltat -= otick - xtick;
>                 otick = xtick;
> 
>                 x86_pause();
>         }
> }

Why does it cause?


> And yes, it used to survive many hibernations of the hosts before. I
> only had to adjust the time after waking the host up.
> On Sat, 15 Dec 2018 at 10:59, Chavdar Ivanov <ci4ic4%gmail.com@localhost> wrote:
>>
>> Hi,
>>
>> On 8.99.27 AMD64 running under VirtualBox I got this morning the panic
>> in http://ci4ic4.tx0.org/ci4ic4-panic-01.png
>>
>> I have the  coredump, if it is of interest. I thought it might be
>> useful, as it is apparently in the wm driver.
>>
>> Chavdar
>> --
>> ----
> 
> 
> 


-- 
-----------------------------------------------
                SAITOH Masanobu (msaitoh%execsw.org@localhost
                                 msaitoh%netbsd.org@localhost)


Home | Main Index | Thread Index | Old Index