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