From owner-freebsd-mips@FreeBSD.ORG Tue Jul 22 19:17:06 2014 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EF95525D for ; Tue, 22 Jul 2014 19:17:06 +0000 (UTC) Received: from server1.weites.net (mail.weites.com [89.188.29.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B31242A3C for ; Tue, 22 Jul 2014 19:17:05 +0000 (UTC) Received: from [10.14.92.96] (5248604F.cm-4-1b.dynamic.ziggo.nl [82.72.96.79]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: harm@weites.com) by server1.weites.net (Postfix) with ESMTPSA id C69DAC99B1 for ; Tue, 22 Jul 2014 21:08:33 +0200 (CEST) Message-ID: <53CEB6B1.9050301@weites.com> Date: Tue, 22 Jul 2014 21:08:33 +0200 From: Harm Weites User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: freebsd-mips@freebsd.org Subject: interrupt storm arge0, tplink 1043nd Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jul 2014 19:17:07 -0000 Hi, My 1043nd is complaining about interrupt storms, presumably only when wifi is beeing used. When this occurs, networking is gone. The exact message thats flooding me: interrupt storm detected on "int2"; throttling interrupt source The device associated with int2 is arge0. Some possibly related logs, though these messages start at boot: # /sbin/dmesg | tail ath0: stuck beacon; resetting (bmiss count 4) ar5416StopDmaReceive: dma failed to stop in 10ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020 MBSSID Set bit 22 of AR_STA_ID 0xb8c16866 ath0: stuck beacon; resetting (bmiss count 4) ar5416StopDmaReceive: dma failed to stop in 10ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020 MBSSID Set bit 22 of AR_STA_ID 0xb8c16866 This unit is configured with (arge0) port0 bound to device vlan1, port4 to vlan2 and ports 1,2,3 make up vlan3. There is wlan0, bound to ath0 and a bridge device that connects wlan0 to vlan3. There is a dhcp server running in vlan3 to answer to wifi clients, internet is routed through vlan1. This initially works but after a little while the storm begins and the wifi client is left to die. Adrian@ suggested to start with reading which interrupt(s) occur(s), but that is perhaps a little to hard for me to code :) Looking at if_arge.c, it seems there is some debug code already in place (ARGEDEBUG()) though I'm not sure on how to use that. Reading from the AR71XX_DMA_INTR register and mapping its content to AR71XX_DMA_INTR_STATUS would be something I'd like to do with a separate program (instead of boldly taking a deepdive in to if_arge.c and recompiling/flashing untill something works). One of my other units is configured with just a vlan device per switch port, no wifi and no bridge. A third unit is configured with a wlan0, vlan1 (port0) and vlan2 (ports 1,2,3,4). Both not showing any issues in the past months. The only difference would be this problem-unit has a bridge. Any thoughts on how to approach or 'just' fix this? Regards, Harm