Return-path: Received: from mail-qa0-f48.google.com ([209.85.216.48]:38035 "EHLO mail-qa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758486Ab3CYQi4 (ORCPT ); Mon, 25 Mar 2013 12:38:56 -0400 Received: by mail-qa0-f48.google.com with SMTP id hu16so2365715qab.0 for ; Mon, 25 Mar 2013 09:38:55 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <477F20668A386D41ADCC57781B1F70430D9DAD430D@SC-VEXCH1.marvell.com> References: <477F20668A386D41ADCC57781B1F70430D9D6CE59E@SC-VEXCH1.marvell.com> <477F20668A386D41ADCC57781B1F70430D9D6CE6CD@SC-VEXCH1.marvell.com> <477F20668A386D41ADCC57781B1F70430D9D6CE95B@SC-VEXCH1.marvell.com> <477F20668A386D41ADCC57781B1F70430D9D6CEC9D@SC-VEXCH1.marvell.com> <477F20668A386D41ADCC57781B1F70430D9D9C1608@SC-VEXCH1.marvell.com> <477F20668A386D41ADCC57781B1F70430D9D9C2199@SC-VEXCH1.marvell.com> <477F20668A386D41ADCC57781B1F70430D9DAD3AE4@SC-VEXCH1.marvell.com> <477F20668A386D41ADCC57781B1F70430D9DAD430D@SC-VEXCH1.marvell.com> Date: Mon, 25 Mar 2013 10:38:55 -0600 Message-ID: (sfid-20130325_173900_382441_A1DFE48B) Subject: Re: mwifiex crash when removing interface while scanning From: Daniel Drake To: Bing Zhao Cc: "linux-wireless@vger.kernel.org" , John Rhodes , Amitkumar Karwar Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-wireless-owner@vger.kernel.org List-ID: Hi, On Tue, Mar 19, 2013 at 12:19 AM, Bing Zhao wrote: > Hi Daniel, > >> > That seems to avoid the issue. I'm worried that it suggests some more >> > significant lower-level bug, but I guess for now it would make sense >> > to finish off those 2 patches you already posted, and investigate the >> > possible cmd_pending leak, before revisiting this. >> >> Thanks for testing. I will fine tune the 2 patches and resend the updated version to the list. >> The cmd_pending leak will be investigated too. > > Please try attached patch on top of the 3 patches I sent last Friday. Thanks for continuing to look at this. Unfortuntaely the cmd_pending warning is still there and the numbers are now -4 and -5 e.g. [ 128.269912] mwifiex_sdio mmc0:0001:1: rx_pending=0, tx_pending=0, cmd_pending=-5 This is using the same test script used in the opening message on this thread, with uap0 and p2p0 auto-creation disabled, with or without NetworkManager running at the same time. Thanks Daniel