Return-path: Received: from mail-pd0-f170.google.com ([209.85.192.170]:50382 "EHLO mail-pd0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758209AbaDIJOa (ORCPT ); Wed, 9 Apr 2014 05:14:30 -0400 Received: by mail-pd0-f170.google.com with SMTP id v10so2215963pde.29 for ; Wed, 09 Apr 2014 02:14:30 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1396988949.4418.46.camel@dubbel> References: <1396988949.4418.46.camel@dubbel> From: Yegor Yefremov Date: Wed, 9 Apr 2014 11:14:08 +0200 Message-ID: (sfid-20140409_111434_552309_BBC2A838) Subject: Re: wl1271: tx stuck in firmware To: Luca Coelho Cc: linux-wireless@vger.kernel.org, kaloz@openwrt.org Content-Type: text/plain; charset=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Tue, Apr 8, 2014 at 10:29 PM, Luca Coelho wrote: > On Tue, 2014-04-08 at 17:28 +0200, Yegor Yefremov wrote: >> I'm using kernel 3.14.0-rc4-12738-g674748b-dirty on a am335x-evmsk as >> also on a custom board. I get following issue on both systems, when >> working with various calibrator functions: > > That's not a very nice kernel, right? How am I supposed to know what the > 12738 patches you have on top of 3.14.0-rc4 are? Even worse because your > tree is dirty. :( > > >> # calibrator wlan0 plt power_mode on >> [ 252.935208] wlcore: power up >> [ 253.502531] wlcore: firmware booted in PLT mode PLT_ON (PLT 6.3.10.0.133) >> # [ 399.656192] wlcore: ERROR Tx stuck (in FW) for 5000 ms. Starting recovery > > This sounds really strange. The TX watchdog should not be armed in PLT > mode. > >> or following error, when I start NetworkManager and wait for 5 minutes or so: >> >> [ 717.608550] wlcore: Scan completed due to error. >> [ 717.613422] ------------[ cut here ]------------ >> [ 717.618405] WARNING: CPU: 0 PID: 940 at >> drivers/net/wireless/ti/wlcore/main.c:789 >> wl12xx_queue_recovery_work+0x60/0x6c() >> [ 717.629832] Modules linked in: >> [ 717.633055] CPU: 0 PID: 940 Comm: kworker/u2:2 Tainted: G W >> 3.14.0-rc4-12737-gefb78a0-dirty #214 >> [ 717.643264] Workqueue: phy0 wl1271_scan_complete_work >> [ 717.648649] [] (unwind_backtrace) from [] >> (show_stack+0x10/0x14) >> [ 717.656762] [] (show_stack) from [] >> (dump_stack+0x7c/0x94) >> [ 717.664372] [] (dump_stack) from [] >> (warn_slowpath_common+0x6c/0x90) >> [ 717.672876] [] (warn_slowpath_common) from [] >> (warn_slowpath_null+0x1c/0x24) >> [ 717.682110] [] (warn_slowpath_null) from [] >> (wl12xx_queue_recovery_work+0x60/0x6c) >> [ 717.691889] [] (wl12xx_queue_recovery_work) from >> [] (wl1271_scan_complete_work+0xf8/0x108) >> [ 717.702391] [] (wl1271_scan_complete_work) from >> [] (process_one_work+0x1ac/0x4c4) >> [ 717.712110] [] (process_one_work) from [] >> (worker_thread+0x114/0x3b4) >> [ 717.720707] [] (worker_thread) from [] >> (kthread+0xcc/0xe8) >> [ 717.728306] [] (kthread) from [] >> (ret_from_fork+0x14/0x2c) >> [ 717.735856] ---[ end trace f4d374bb2ca37664 ]--- >> [ 717.743587] wlcore: Hardware recovery in progress. FW ver: Rev 6.3.10.0.133 >> [ 717.752600] wlcore: pc: 0x0, hint_sts: 0x00000020 count: 6 >> [ 717.759609] wlcore: down >> [ 717.764108] ieee80211 phy0: Hardware restart was requested >> [ 718.250930] wlcore: firmware booted (Rev 6.3.10.0.133) >> >> Any idea, what could be wrong? > > First of all, try a clean kernel. It is not simple to get a clean kernel. "Official" support for am335x-evmsk WLAN was added first in the upcoming 3.15 kernel. I've tried the merge window version (3.14.0-12041-g75ff24f-dirty) and get following issue: # calibrator wlan0 plt power_mode on wlcore: power up wlcore: ERROR timeout waiting for the hardware to complete initialization wlcore: ERROR timeout waiting for the hardware to complete initialization wlcore: ERROR timeout waiting for the hardware to complete initialization wlcore: ERROR firmware boot in PLT mode failed despite 3 retries command failed: Input/output error (-5) If I use the "normal" firmware, i.e. ifconfig wlan0 up, it gets loaded and I can search for the stations. But PLT doesn't want to boot. Do you still have a board, where you could try the latest kernel/firmware? Yegor