Hiya!

Stefan, initially patch worked, after the timeout, the system kept running,
but at moment I have had put the interface urtwn0 down ( ifconfig urtwn0
down ) the system hangs.

Another thing I have noticed not sure at this point if related. but when my
date/time was updated ( used the date command to correct it ) I have the
timeout message on interface

That's it.

Thank you so much for everything.

Regards,



2017-08-26 7:40 GMT-03:00 Stefan Sperling <[email protected]>:

> On Fri, Aug 25, 2017 at 05:35:10PM -0300, R0me0 *** wrote:
> > Hello all,
> > Stefan thanks for heads up! :)
> >
> > following dmesg:
>
> Thanks.
>
> Could you try the diff below? Does it help?
>
> With this diff, if a device timeout happens, the interface may either
> continue working or it could stall and not recover automatically.
> However, you should be able to keep using the system and if necessary
> run ifconfig to reset urtwn0 into a working state.
>
> Index: rtwn.c
> ===================================================================
> RCS file: /cvs/src/sys/dev/ic/rtwn.c,v
> retrieving revision 1.33
> diff -u -p -r1.33 rtwn.c
> --- rtwn.c      23 Aug 2017 09:25:17 -0000      1.33
> +++ rtwn.c      26 Aug 2017 10:33:43 -0000
> @@ -1375,7 +1375,8 @@ rtwn_watchdog(struct ifnet *ifp)
>         if (sc->sc_tx_timer > 0) {
>                 if (--sc->sc_tx_timer == 0) {
>                         printf("%s: device timeout\n",
> sc->sc_pdev->dv_xname);
> -                       task_add(systq, &sc->init_task);
> +                       if (sc->chip & RTWN_CHIP_PCI)
> +                               task_add(systq, &sc->init_task);
>                         ifp->if_oerrors++;
>                         return;
>                 }
>
>

Reply via email to