Return-path: Received: from mail-vn0-f45.google.com ([209.85.216.45]:41814 "EHLO mail-vn0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751074AbbFLDAh (ORCPT ); Thu, 11 Jun 2015 23:00:37 -0400 Received: by vnbg190 with SMTP id g190so3863532vnb.8 for ; Thu, 11 Jun 2015 20:00:37 -0700 (PDT) MIME-Version: 1.0 Date: Thu, 11 Jun 2015 23:00:37 -0400 Message-ID: (sfid-20150612_050041_254360_AD829529) Subject: r8188eu deadlock From: Paul Thomas To: linux-wireless@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: Hello, I just got a TP-LINK TL-WN725N adapter (VID 0bda, PID 8179) The driver in the staging area seems to be working fine, but I get this on startup. I'm using this with a BeagleBone Black. I did a fresh git pull today, so it is with kernel 4.1.0-rc7-00063-gcff100f, I haven't tried it with the wireless-testing branch. Anyway, thought someone might be interested. thanks, Paul [ 22.489564] ============================================= [ 22.495221] [ INFO: possible recursive locking detected ] [ 22.500883] 4.1.0-rc7-00063-gcff100f #3 Tainted: G C [ 22.507266] --------------------------------------------- [ 22.512921] RTW_CMD_THREAD/554 is trying to acquire lock: [ 22.518577] (&(&(pqueue->lock))->rlock){+.-...}, at: [] _rtw_alloc_network+0x14/0xc4 [r8188eu] [ 22.528847] [ 22.528847] but task is already holding lock: [ 22.534969] (&(&(pqueue->lock))->rlock){+.-...}, at: [] rtw_update_scanned_network+0x18/0x234 [r8188eu] [ 22.545910] [ 22.545910] other info that might help us debug this: [ 22.552759] Possible unsafe locking scenario: [ 22.552759] [ 22.558969] CPU0 [ 22.561534] ---- [ 22.564097] lock(&(&(pqueue->lock))->rlock); [ 22.568765] lock(&(&(pqueue->lock))->rlock); [ 22.573433] [ 22.573433] *** DEADLOCK *** [ 22.573433] [ 22.579654] May be due to missing lock nesting notation [ 22.579654] [ 22.586775] 2 locks held by RTW_CMD_THREAD/554: [ 22.591520] #0: (&(&(pmlmepriv->lock))->rlock){+.....}, at: [] rtw_survey_event_callback+0x7c/0x1c4 [r8188eu] [ 22.603094] #1: (&(&(pqueue->lock))->rlock){+.-...}, at: [] rtw_update_scanned_network+0x18/0x234 [r8188eu] [ 22.614481] [ 22.614481] stack backtrace: [ 22.619064] CPU: 0 PID: 554 Comm: RTW_CMD_THREAD Tainted: G C 4.1.0-rc7-00063-gcff100f #3 [ 22.628817] Hardware name: Generic AM33XX (Flattened Device Tree) [ 22.635227] [] (unwind_backtrace) from [] (show_stack+0x10/0x14) [ 22.643355] [] (show_stack) from [] (dump_stack+0x84/0x9c) [ 22.650944] [] (dump_stack) from [] (__lock_acquire+0x1a44/0x1edc) [ 22.659253] [] (__lock_acquire) from [] (lock_acquire+0xa8/0x124) [ 22.667473] [] (lock_acquire) from [] (_raw_spin_lock_bh+0x44/0x54) [ 22.675926] [] (_raw_spin_lock_bh) from [] (_rtw_alloc_network+0x14/0xc4 [r8188eu]) [ 22.685883] [] (_rtw_alloc_network [r8188eu]) from [] (rtw_update_scanned_network+0xec/0x234 [r8188eu]) [ 22.697654] [] (rtw_update_scanned_network [r8188eu]) from [] (rtw_survey_event_callback+0xf8/0x1c4 [r8188eu]) [ 22.710069] [] (rtw_survey_event_callback [r8188eu]) from [] (mlme_evt_hdl+0x5c/0xe8 [r8188eu]) [ 22.721110] [] (mlme_evt_hdl [r8188eu]) from [] (rtw_cmd_thread+0xac/0x2a8 [r8188eu]) [ 22.731191] [] (rtw_cmd_thread [r8188eu]) from [] (kthread+0xd4/0xf0) [ 22.739780] [] (kthread) from [] (ret_from_fork+0x14/0x3c)