Return-path: Received: from na3sys009aog137.obsmtp.com ([74.125.149.18]:46810 "EHLO na3sys009aog137.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753353Ab3C1C0h (ORCPT ); Wed, 27 Mar 2013 22:26:37 -0400 From: Bing Zhao To: Daniel Drake CC: "linux-wireless@vger.kernel.org" , John Rhodes , Amitkumar Karwar Date: Wed, 27 Mar 2013 19:24:31 -0700 Subject: RE: mwifiex crash when removing interface while scanning Message-ID: <477F20668A386D41ADCC57781B1F70430D9DCBEBB7@SC-VEXCH1.marvell.com> (sfid-20130328_032641_913488_819FA806) 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> In-Reply-To: Content-Type: multipart/mixed; boundary="_003_477F20668A386D41ADCC57781B1F70430D9DCBEBB7SCVEXCH1marve_" MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: --_003_477F20668A386D41ADCC57781B1F70430D9DCBEBB7SCVEXCH1marve_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Daniel, > > Please try attached patch on top of the 3 patches I sent last Friday. >=20 > Thanks for continuing to look at this. >=20 > 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=3D0, tx_pending=3D0, > cmd_pending=3D-5 This is caused by decreasing cmd_pending while cleanup scan commands in sca= n_pending_q. cmd_pending only counts the commands queued in cmd_pending_q. Attached v2 patch should fix it. Please try it out. Thanks, Bing >=20 > 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. >=20 > Thanks > Daniel --_003_477F20668A386D41ADCC57781B1F70430D9DCBEBB7SCVEXCH1marve_ Content-Type: application/octet-stream; name="0001-v2-mwifiex-fix-negative-cmd_pending-count.patch" Content-Description: 0001-v2-mwifiex-fix-negative-cmd_pending-count.patch Content-Disposition: attachment; filename="0001-v2-mwifiex-fix-negative-cmd_pending-count.patch"; size=8797; creation-date="Thu, 28 Mar 2013 02:14:21 GMT"; modification-date="Thu, 28 Mar 2013 02:14:21 GMT" Content-Transfer-Encoding: base64 RnJvbSBjYzdiNTE4NzFlZTY2ZjIxMWQzYWRjYWRlMTZkODExOTAzMjM1OTU3IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBCaW5nIFpoYW8gPGJ6aGFvQG1hcnZlbGwuY29tPgpEYXRlOiBX ZWQsIDI3IE1hciAyMDEzIDE4OjM2OjQ3IC0wNzAwClN1YmplY3Q6IFtQQVRDSCB2MiAxLzJdIG13 aWZpZXg6IGZpeCBuZWdhdGl2ZSBjbWRfcGVuZGluZyBjb3VudAoKY21kX3BlbmRpbmcgaXMgaW5j cmVhc2VkIGluIG13aWZpZXhfd2FpdF9xdWV1ZV9jb21wbGV0ZSgpIGFuZApkZWNyZWFzZWQgaW4g bXdpZmlleF9jb21wbGV0ZV9jbWQoKSBjdXJyZW50bHkuCklmIHRoZXJlIGFyZSB0d28gb3IgbW9y ZSBjb21tYW5kcyBpbiB0aGUgY21kX3BlbmRpbmdfcSB0aGUgbWFpbgp3b3JrZXIgdGhyZWFkIHdp bGwgcGljayB1cCBuZXh0IGNvbW1hbmQgZnJvbSBjbWRfcGVuZGluZ19xCmF1dG9tYXRpY2FsbHkg YWZ0ZXIg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cy9td2lmaWV4L3V0aWwuYwpAQCAtMjM5LDcgKzIzOSw2IEBAIGludCBtd2lm aWV4X3JlY3ZfcGFja2V0KHN0cnVjdCBtd2lmaWV4X3ByaXZhdGUgKnByaXYsIHN0cnVjdCBza19i dWZmICpza2IpCiBpbnQgbXdpZmlleF9jb21wbGV0ZV9jbWQoc3RydWN0IG13aWZpZXhfYWRhcHRl ciAqYWRhcHRlciwKIAkJCSBzdHJ1Y3QgY21kX2N0cmxfbm9kZSAqY21kX25vZGUpCiB7Ci0JYXRv bWljX2RlYygmYWRhcHRlci0+Y21kX3BlbmRpbmcpOwogCWRldl9kYmcoYWRhcHRlci0+ZGV2LCAi Y21kIGNvbXBsZXRlZDogc3RhdHVzPSVkXG4iLAogCQlhZGFwdGVyLT5jbWRfd2FpdF9xLnN0YXR1 cyk7CiAKLS0gCjEuNy4wLjIKCg== --_003_477F20668A386D41ADCC57781B1F70430D9DCBEBB7SCVEXCH1marve_ Content-Type: application/octet-stream; name="0002-v2-mwifiex-complete-last-internal-scan.patch" Content-Description: 0002-v2-mwifiex-complete-last-internal-scan.patch Content-Disposition: attachment; filename="0002-v2-mwifiex-complete-last-internal-scan.patch"; size=1714; creation-date="Thu, 28 Mar 2013 02:14:34 GMT"; modification-date="Thu, 28 Mar 2013 02:14:34 GMT" Content-Transfer-Encoding: base64 RnJvbSA0NzE5ZjZjYTgwYWJiODdhMDE3MTRmZDQxZjM3MDYxMzc5NWQ5YjA0IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBCaW5nIFpoYW8gPGJ6aGFvQG1hcnZlbGwuY29tPgpEYXRlOiBU dWUsIDE5IE1hciAyMDEzIDEyOjEwOjExIC0wNzAwClN1YmplY3Q6IFtQQVRDSCB2MiAyLzJdIG13 aWZpZXg6IGNvbXBsZXRlIGxhc3QgaW50ZXJuYWwgc2NhbgoKV2UgYXJlIHdhaXRpbmcgb24gZmly c3Qgc2NhbiBjb21tYW5kIG9mIGludGVybmFsIH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