Return-path: Received: from fopen.at ([151.236.7.194]:58772 "EHLO fopen.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757107AbbDPKfD (ORCPT ); Thu, 16 Apr 2015 06:35:03 -0400 From: Florian Achleitner To: Amitkumar Karwar Cc: "linux-wireless@vger.kernel.org" , Avinash Patil , Maithili Hinge Subject: Re: [RFC/PATCH] mwifiex: Driver - Firmware Glitches Date: Thu, 16 Apr 2015 12:34:59 +0200 Message-ID: <1743827.ElKz8IjFhJ@r90b40zn> (sfid-20150416_123507_558710_50065370) In-Reply-To: <5FF020A1CFFEEC49BD1E09530C4FF5951B16DFC5A9@SC-VEXCH1.marvell.com> References: <3169170.GKjfvNuGRf@r90b40zn> <5FF020A1CFFEEC49BD1E09530C4FF5951B16DFC5A9@SC-VEXCH1.marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: linux-wireless-owner@vger.kernel.org List-ID: On Thursday 16 April 2015 02:30:59 Amitkumar Karwar wrote: >[...] > We haven't seen this behavior yet. Could you please share complete log? Logs follow per scenario. > > (1) mwifiex_cmd_timeout_func: Timeout cmd .. Ok, after reset. [164276.211216] mwifiex_sdio mmc0:0001:1: host_to_card, write iomem (1) failed: -110 [164276.219198] mwifiex_sdio mmc0:0001:1: host_to_card, write iomem (2) failed: -110 [164286.247400] mwifiex_sdio mmc0:0001:1: mwifiex_cmd_timeout_func: Timeout cmd id = 0x107, act = 0x0 [164286.256501] mwifiex_sdio mmc0:0001:1: num_data_h2c_failure = 0 [164286.262593] mwifiex_sdio mmc0:0001:1: num_cmd_h2c_failure = 0 [164286.268537] mwifiex_sdio mmc0:0001:1: is_cmd_timedout = 1 [164286.274088] mwifiex_sdio mmc0:0001:1: num_tx_timeout = 0 [164286.279565] mwifiex_sdio mmc0:0001:1: last_cmd_index = 0 [164286.285025] mwifiex_sdio mmc0:0001:1: last_cmd_id: 07 01 07 01 07 01 07 01 07 01 [164286.292587] mwifiex_sdio mmc0:0001:1: last_cmd_act: 00 00 00 00 00 00 00 00 00 00 [164286.300245] mwifiex_sdio mmc0:0001:1: last_cmd_resp_index = 4 [164286.306101] mwifiex_sdio mmc0:0001:1: last_cmd_resp_id: 07 81 07 81 07 81 07 81 07 81 [164286.314097] mwifiex_sdio mmc0:0001:1: last_event_index = 3 [164286.319757] mwifiex_sdio mmc0:0001:1: last_event: 58 00 58 00 58 00 0b 00 58 00 [164286.327180] mwifiex_sdio mmc0:0001:1: data_sent=0 cmd_sent=1 [164286.333026] mwifiex_sdio mmc0:0001:1: ps_mode=1 ps_state=0 [164286.338698] mwifiex_sdio mmc0:0001:1: cmd timeout [164286.347116] mwifiex_sdio mmc0:0001:1: === DRIVER INFO DUMP START=== [164286.348307] mwifiex_sdio mmc0:0001:1: SDIO register DUMP START [164286.364842] mwifiex_sdio mmc0:0001:1: SDIO Func0 (0x0-0x9): 32 02 02 00 03 02 00 02 03 00 [164286.375346] mwifiex_sdio mmc0:0001:1: SDIO Func1 (0x0-0x9): 00 3f 03 03 01 00 ff ff 0a 00 [164286.375995] mwifiex_sdio mmc0:0001:1: SDIO Func1: (0x28) 00 (0x30) 00 (0x34) 07 (0x38) 00 (0x3c) 00 [164286.376881] mwifiex_sdio mmc0:0001:1: SDIO Func1 (0x60-0x6a): dc fe ed 00 1d 00 00 ec ec 00 20 [164286.671632] mwifiex_sdio mmc0:0001:1: SDIO Func1 (0x60-0x6a): dc fe 0b 00 3b 00 00 ec ec 00 20 [164286.671788] mwifiex_sdio mmc0:0001:1: SDIO register DUMP END [164286.672062] mwifiex_sdio mmc0:0001:1: === DRIVER INFO DUMP END=== [164286.672087] mwifiex_sdio: Resetting card... [164286.755091] mmc0: card 0001 removed [164287.957529] mxs-mmc 80010000.ssp: Device reset triggered! [164288.628044] mmc0: new high speed SDIO card at address 0001 [164289.750729] mwifiex_sdio mmc0:0001:1: info: FW download over, size 447384 bytes [164289.977539] mwifiex_sdio mmc0:0001:1: WLAN FW is active [164290.445054] ieee80211 phy9: ignoring F/W country code US [164290.483702] mwifiex_sdio mmc0:0001:1: driver_version = mwifiex 1.0 (14.66.9.p96) [165634.314756] cfg80211: Calling CRDA to update world regulatory domain > > (2) Firmware wakeup failed.. Ok, after reset. [230837.497001] mxs-mmc 80010000.ssp: Device reset triggered! [230838.189850] mmc0: new high speed SDIO card at address 0001 [230840.415197] mwifiex_sdio mmc0:0001:1: info: FW download over, size 447384 bytes [230840.656847] mwifiex_sdio mmc0:0001:1: WLAN FW is active [230841.111489] ieee80211 phy21: ignoring F/W country code US [230841.169867] mwifiex_sdio mmc0:0001:1: driver_version = mwifiex 1.0 (14.66.9.p96) [231000.116588] mwifiex_sdio mmc0:0001:1: Firmware wakeup failed [231000.122550] mwifiex_sdio mmc0:0001:1: failed to get signal information [231000.129544] mwifiex_sdio: Resetting card... > > (3) DNLD_CMD: host to card failed. No reset triggered. See patch. Without patch: 134669.799365] cfg80211: Calling CRDA to update world regulatory domain [141183.720924] mwifiex_sdio mmc0:0001:1: host_to_card, write iomem (1) failed: -110 [141183.721405] mwifiex_sdio mmc0:0001:1: host_to_card, write iomem (2) failed: -110 [141183.721893] mwifiex_sdio mmc0:0001:1: host_to_card, write iomem (3) failed: -110 [141183.722188] mwifiex_sdio mmc0:0001:1: DNLD_CMD: host to card failed [178868.935885] mwifiex_sdio mmc0:0001:1: host_to_card, write iomem (1) failed: -84 [178868.936295] mwifiex_sdio mmc0:0001:1: host_to_card, write iomem (2) failed: -84 [178868.936644] mwifiex_sdio mmc0:0001:1: host_to_card, write iomem (3) failed: -84 [178868.936874] mwifiex_sdio mmc0:0001:1: DNLD_CMD: host to card failed [178868.947200] mwifiex_sdio mmc0:0001:1: host_to_card, write iomem (1) failed: -110 [178868.947739] mwifiex_sdio mmc0:0001:1: host_to_card, write iomem (2) failed: -110 [178868.948153] mwifiex_sdio mmc0:0001:1: host_to_card, write iomem (3) failed: -110 [178868.948451] mwifiex_sdio mmc0:0001:1: DNLD_CMD: host to card failed [178906.974145] mwifiex_sdio mmc0:0001:1: host_to_card, write iomem (1) failed: -84 [178906.974544] mwifiex_sdio mmc0:0001:1: host_to_card, write iomem (2) failed: -84 [178906.974890] mwifiex_sdio mmc0:0001:1: host_to_card, write iomem (3) failed: -84 [178906.975122] mwifiex_sdio mmc0:0001:1: DNLD_CMD: host to card failed [178906.985090] mwifiex_sdio mmc0:0001:1: host_to_card, write iomem (1) failed: -110 [178906.985565] mwifiex_sdio mmc0:0001:1: host_to_card, write iomem (2) failed: -110 [178906.986036] mwifiex_sdio mmc0:0001:1: host_to_card, write iomem (3) failed: -110 [178906.986332] mwifiex_sdio mmc0:0001:1: DNLD_CMD: host to card failed [178930.845685] mwifiex_sdio mmc0:0001:1: host_to_card, write iomem (1) failed: -84 [178930.846069] mwifiex_sdio mmc0:0001:1: host_to_card, write iomem (2) failed: -84 [178930.846408] mwifiex_sdio mmc0:0001:1: host_to_card, write iomem (3) failed: -84 [178930.846638] mwifiex_sdio mmc0:0001:1: DNLD_CMD: host to card failed The interface does not work in this state. Note the long times between some messages. With patch: [50410.924229] cfg80211: Calling CRDA to update world regulatory domain [69944.419055] mwifiex_sdio mmc0:0001:1: host_to_card, write iomem (1) failed: -110 [69944.419443] mwifiex_sdio mmc0:0001:1: host_to_card, write iomem (2) failed: -110 [69944.419787] mwifiex_sdio mmc0:0001:1: host_to_card, write iomem (3) failed: -110 [69944.420017] mwifiex_sdio mmc0:0001:1: DNLD_CMD: host to card failed [69944.420199] mwifiex_sdio mmc0:0001:1: === DRIVER INFO DUMP START=== [69944.421173] mwifiex_sdio mmc0:0001:1: SDIO register DUMP START [69944.423444] mwifiex_sdio mmc0:0001:1: SDIO Func0 (0x0-0x9): 32 02 00 02 03 00 00 02 03 00 [69944.425194] mwifiex_sdio mmc0:0001:1: SDIO Func1 (0x0-0x9): 00 3f 03 00 00 00 03 fc 0a 00 [69944.425571] mwifiex_sdio mmc0:0001:1: SDIO Func1: (0x28) 00 (0x30) 08 (0x34) 07 (0x38) 00 (0x3c) 00 [69944.426270] mwifiex_sdio mmc0:0001:1: SDIO Func1 (0x60-0x6a): dc fe 08 00 d8 00 00 80 80 00 20 [69944.646744] mwifiex_sdio mmc0:0001:1: SDIO Func1 (0x60-0x6a): dc fe 24 00 ef 00 00 80 80 00 20 [69944.646823] mwifiex_sdio mmc0:0001:1: SDIO register DUMP END [69944.649330] mwifiex_sdio mmc0:0001:1: === DRIVER INFO DUMP END=== [69944.649372] mwifiex_sdio: Resetting card... [69944.719068] mmc0: card 0001 removed [69946.177879] mxs-mmc 80010000.ssp: Device reset triggered! [69946.854642] mmc0: new high speed SDIO card at address 0001 [69948.300017] mwifiex_sdio mmc0:0001:1: info: FW download over, size 463240 bytes > "DNLD_CMD: host to card failed" error is expected during heavy Tx traffic if > data write port is not available. Traffic will be resumed once the port is > available. Please share detailed logs. It would help us find root cause for > the problem. In our case it seems to fail to resume somehow. > > Regards, > Amitkumar Regards, Florian