From owner-svn-src-user@FreeBSD.ORG Thu Sep 15 06:42:06 2011 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B6B6B1065674; Thu, 15 Sep 2011 06:42:06 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id A69828FC14; Thu, 15 Sep 2011 06:42:06 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8F6g6jI060690; Thu, 15 Sep 2011 06:42:06 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8F6g6OH060688; Thu, 15 Sep 2011 06:42:06 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201109150642.p8F6g6OH060688@svn.freebsd.org> From: Adrian Chadd Date: Thu, 15 Sep 2011 06:42:06 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225569 - user/adrian/if_ath_tx/sys/dev/ath X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Sep 2011 06:42:06 -0000 Author: adrian Date: Thu Sep 15 06:42:06 2011 New Revision: 225569 URL: http://svn.freebsd.org/changeset/base/225569 Log: Check for baseband hangs in the bstuck tasklet Modified: user/adrian/if_ath_tx/sys/dev/ath/if_ath.c Modified: user/adrian/if_ath_tx/sys/dev/ath/if_ath.c ============================================================================== --- user/adrian/if_ath_tx/sys/dev/ath/if_ath.c Thu Sep 15 06:41:43 2011 (r225568) +++ user/adrian/if_ath_tx/sys/dev/ath/if_ath.c Thu Sep 15 06:42:06 2011 (r225569) @@ -2819,9 +2819,14 @@ ath_bstuck_proc(void *arg, int pending) { struct ath_softc *sc = arg; struct ifnet *ifp = sc->sc_ifp; + uint32_t hangs = 0; + + if (ath_hal_gethangstate(sc->sc_ah, 0xff, &hangs) && hangs != 0) + if_printf(ifp, "bb hang detected (0x%x)\n", hangs); if_printf(ifp, "stuck beacon; resetting (bmiss count %u)\n", sc->sc_bmisscount); + sc->sc_stats.ast_bstuck++; ath_reset(ifp); }