From owner-freebsd-wireless@FreeBSD.ORG Sat Aug 4 12:38:25 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6E81D1065673 for ; Sat, 4 Aug 2012 12:38:25 +0000 (UTC) (envelope-from moonlightakkiy@yahoo.ca) Received: from nm7.bullet.mail.bf1.yahoo.com (nm7.bullet.mail.bf1.yahoo.com [98.139.212.166]) by mx1.freebsd.org (Postfix) with ESMTP id EDA5C8FC15 for ; Sat, 4 Aug 2012 12:38:23 +0000 (UTC) Received: from [98.139.212.151] by nm7.bullet.mail.bf1.yahoo.com with NNFMP; 04 Aug 2012 12:38:16 -0000 Received: from [98.139.213.15] by tm8.bullet.mail.bf1.yahoo.com with NNFMP; 04 Aug 2012 12:38:16 -0000 Received: from [127.0.0.1] by smtp115.mail.bf1.yahoo.com with NNFMP; 04 Aug 2012 12:38:16 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s1024; t=1344083896; bh=0Sr3fCdjonLwrU7+Jfo1fALseoa6/33VskssKxF331M=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Received:MIME-Version:Received:Received:In-Reply-To:References:Date:Message-ID:Subject:From:To:Cc:Content-Type; b=Fbih9MZSkmGil1iM2uHx38MPtIfR94wO80ki9pGu+wUEmfCgXFgiv5CiHe3Tz2Lk3/w+XX+mIZmNZd5qLeHhE+LGfVVKVtD6rNJEd58a+8y7lJ94nt6IAUrKXL4Q/6nW2y/QNGfLoIj78VhftLCPa869eZTwUAKCLxGhtIGnOOI= X-Yahoo-Newman-Id: 874021.98931.bm@smtp115.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: j7i_8p8VM1nvbCmIGPk7jVzMzuJh1eCTP_xtcxFpBlbLG83 mxz96ffRHjFNJWwMXlS_ImasizX7d_4JgY4HryJu5x3nGAZYVSzzgg4YuxME P_lFhEEAEi0_.KFxi4AxenBx78l6vyDLNOydvWZXNjbYedaPeZp32SFU38EW emCIr7DPX7h8opgFHyyUxJWA7TwzZI4X.loZlkKDnJPEWi88RHG5T.JB9D7I YMPk_Gunle5HdroNPB9AqeFGryYmKGt4UcQFWd7C_wyoWE15ENLYOEtgDX4r eYCJPxldWXvvmJOvMIhxbi8MzmCAbymV05M69sCZdBCXtUTySCJ.w82srwAU 3iQn4O1u1m4t3W_xJbEYpY_yqtU.rJlDDuFwvT8L4Ksges_jir7S9HBleDyX mXIyEVlrcPlC3GiqOYxYE2ccrKwRW2xxgzCU8f3EtDJ3EsLTn1gx.uHSfFRJ n7IJaK4ty13aw.3d1o9A3KJDReA8E7u8oPsj1n10Hb.oAb.ihy8go0NBmC66 tfHIQNLNVRT6J.PA1TnHGvy0TDnA5KqVmWfbshAXYu9onSVsgxTEd3NEByI5 unq7VV7j5CU6yfM4d_U5bwHlXYfJYXiqKOYSTGOB6rYeTufkPgXjPwVJ3G20 37V4zYiAmTLEIrucS8B74fZ_yKpu9IX1BSwP4QZzTxBLHHUhVeECEMbOi3Bd 9i2MctVFCbU5y9UCa7GCNviJz11i6DjtKHQdr9X7GYxYJvpRGNWPCBHg4 X-Yahoo-SMTP: Xr6qjFWswBAEmd20sAvB4Q3keqXvXsIH9TjJ Received: from mail-vb0-f54.google.com (moonlightakkiy@209.85.212.54 with plain) by smtp115.mail.bf1.yahoo.com with SMTP; 04 Aug 2012 05:38:16 -0700 PDT Received: by vbmv11 with SMTP id v11so134830vbm.13 for ; Sat, 04 Aug 2012 05:38:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.77.101 with SMTP id r5mr260170vdw.45.1344083896351; Sat, 04 Aug 2012 05:38:16 -0700 (PDT) Received: by 10.59.10.194 with HTTP; Sat, 4 Aug 2012 05:38:16 -0700 (PDT) In-Reply-To: References: Date: Sat, 4 Aug 2012 06:38:16 -0600 Message-ID: From: PseudoCylon To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org, Kim Culhan Subject: Re: ath lor X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Aug 2012 12:38:25 -0000 On Sat, Aug 4, 2012 at 4:03 AM, Adrian Chadd wrote: > On 3 August 2012 22:11, PseudoCylon wrote: > >> I have added if_printf(), so we can track down the driver to blame. >> https://gitorious.org/ieee80211/net80211/commit/4dbc79c5f832b4cdffe9966dbbeba9b1b8fd24da > > Cool. > >> I also added functions to revert changes when overflow (maybe too much). >> https://gitorious.org/ieee80211/net80211/commit/dc1aa81ea1a9eeb7cf1a3a1c2b8a5a8cd85e687d >> >> >>> Does it fix some/all of the LORs for you? >>> >> >> So far, node/driver LOR in iv_key_delete() seems to be gone. > > This is a bit odd. I've not seen that, but you're testing with USB, right? > Yes with run(4). Most likely, it calls ieee80211_free_node() while driver lock is held. http://fxr.watson.org/fxr/source/dev/usb/wlan/if_run.c#L2705 > I just saw a LOR between a node lock and a tcpinp lock. i was doing > some iperf to an AR5416 802.11n AP running iperf locally. I've not > seen this before as I've not run a NIC in AP mode with local traffic > termination; I've only had APs do bridging. > It hasn't caused LOR with run(4), but if_start() is called with tcpinp lock is held when bridging or with multiple vaps in AP mode. That non-sleepable lock causes different problem with USB devices. http://fxr.watson.org/fxr/source/dev/usb/wlan/if_run.c#L3089 > Thanks for chasing this down. Let me know if you see the node/power or > node/scan LORs? Not so far, only scan/com LOR, the same one I mentioned before. AK