Return-path: Received: from mx02.posteo.de ([89.146.194.165]:33854 "EHLO mx02.posteo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756516AbbFRUHf (ORCPT ); Thu, 18 Jun 2015 16:07:35 -0400 Message-ID: <1434658050.2532.6.camel@embedded.rocks> (sfid-20150618_220741_904894_ADF62103) Subject: Re: brcmfmac: Failed to create interface p2p-dev-p2p0: -28 (No space left on device) From: =?ISO-8859-1?Q?J=F6rg?= Krause To: Arend van Spriel Cc: "linux-wireless@vger.kernel.org" , brcm80211-dev-list Date: Thu, 18 Jun 2015 22:07:30 +0200 In-Reply-To: <55828106.7060004@broadcom.com> References: <1433766944.28058.16.camel@embedded.rocks> <55758D7E.3000603@broadcom.com> <1433771289.28058.24.camel@embedded.rocks> <5575C6FA.6030104@broadcom.com> <1433794640.28058.26.camel@embedded.rocks> <557605CC.6070907@broadcom.com> <1434448766.21949.9.camel@embedded.rocks> <55803214.2030204@broadcom.com> <1434608018.5481.4.camel@embedded.rocks> <55828106.7060004@broadcom.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Do, 2015-06-18 at 10:27 +0200, Arend van Spriel wrote: > On 06/18/15 08:13, Jörg Krause wrote: > > Hi Arend, > > > > On Di, 2015-06-16 at 16:26 +0200, Arend van Spriel wrote: > > > On 06/16/15 11:59, Jörg Krause wrote: > > > > Hi Arend, > > > > > > > > as I wrote in my previous mail ("brcmfmac: > > > > brcmf_p2p_create_p2pdev: > > > > timeout occurred") I get a p2p0 interface when loading the > > > > brcmfmac > > > > module with p2pon=1 (Linux kernel 4.0.5, BCM43362). > > > > > > > > Unfortunatly, if I try to use the p2p0 interface with > > > > wpa_supplicant > > > > 2.4 I get an error: > > > > > > > > Failed to create interface p2p-dev-p2p0: -28 (No space > > > > left on > > > > device) > > > > nl80211: Failed to create a P2P Device interface p2p-dev > > > > -p2p0 > > > > P2P: Failed to enable P2P Device interface > > > > > > Using p2pon=1 is old-school p2p, ie. it creates a regular netdev > > > for > > > doing p2p management stuff. Problem is that brcmfmac also > > > indicates > > > p2p > > > device support. We can remove p2pon parameter or not indicate p2p > > > dev > > > > > > support when p2pon=1. > > > > I used p2pon because the p2p0 interface is not created without it. > > It > > fails with the error message "brcmf_p2p_create_p2pdev: timeout > > occurred" as written in my previous mails. I would prefer not to > > use > > it, so maybe we can find a solution how to get it working without > > it. > > 43362 firmware may have issues with regular p2p dev support so let's > stick with p2pon for now. Okay. > > > > > > Can you patch brcmfmac and give it a try. Need to start > > > wpa_supplicant > > > for two interface and if I recall correctly p2p0 must be > > > specified > > > first. > > > > Can you give me a hint where to patch brcmfmac. Many thanks! > > Attached is patch against 4.0.5 kernel. I applied the patch and if I load brcmfmac with p2pon=1 I get a kernel warning and _no_ wlan0 and p2p0 interfaces: [ 7.577223] ------------[ cut here ]------------ [ 7.583144] WARNING: CPU: 0 PID: 4 at net/wireless/core.c:527 wiphy_register+0x3a4/0x67c() [ 7.594652] Modules linked in: brcmfmac brcmutil [ 7.601507] CPU: 0 PID: 4 Comm: kworker/0:0 Not tainted 4.0.5 -LINTECH #3 [ 7.610809] Hardware name: Freescale MXS (Device Tree) [ 7.617411] Workqueue: events request_firmware_work_func [ 7.625110] [] (unwind_backtrace) from [] (show_stack+0x10/0x14) [ 7.635541] [] (show_stack) from [] (warn_slowpath_common+0x78/0xb0) [ 7.645171] [] (warn_slowpath_common) from [] (warn_slowpath_null+0x1c/0x24) [ 7.656635] [] (warn_slowpath_null) from [] (wiphy_register+0x3a4/0x67c) [ 7.666657] [] (wiphy_register) from [] (brcmf_cfg80211_attach+0x86c/0x1124 [brcmfmac]) [ 7.679412] [] (brcmf_cfg80211_attach [brcmfmac]) from [] (brcmf_bus_start+0xac/0x29c [brcmfmac]) [ 7.690925] [] (brcmf_bus_start [brcmfmac]) from [] (brcmf_sdio_firmware_callback+0x3d8/0x9e8 [brcmfmac]) [ 7.705622] [] (brcmf_sdio_firmware_callback [brcmfmac]) from [] (brcmf_fw_request_nvram_done+0x134/0x1d0 [brcmfmac]) [ 7.718916] [] (brcmf_fw_request_nvram_done [brcmfmac]) from [] (request_firmware_work_func+0x30/0x50) [ 7.733292] [] (request_firmware_work_func) from [] (process_one_work+0x184/0x418) [ 7.744112] [] (process_one_work) from [] (worker_thread+0x3c/0x464) [ 7.754977] [] (worker_thread) from [] (kthread+0xc0/0xdc) [ 7.763730] [] (kthread) from [] (ret_from_fork+0x14/0x24) [ 7.773568] ---[ end trace 39ec555e61fc038e ]--- [ 7.779710] brcmfmac: brcmf_cfg80211_attach: Could not register wiphy device (-22) [ 7.790013] brcmfmac: brcmf_bus_start: failed: -12 [ 7.800278] brcmfmac: brcmf_sdio_firmware_callback: dongle is not responding Best regards Jörg Krause