Return-path: Received: from mail-qk0-f181.google.com ([209.85.220.181]:35338 "EHLO mail-qk0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750787AbcFCFJW (ORCPT ); Fri, 3 Jun 2016 01:09:22 -0400 Received: by mail-qk0-f181.google.com with SMTP id u1so2043528qkh.2 for ; Thu, 02 Jun 2016 22:09:22 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1464855365.11694.35.camel@coelho.fi> References: <20160529214059.GA15677@localhost> <20160601125453.GB12977@localhost> <1464787139.2554.74.camel@intel.com> <1464841636.11694.10.camel@intel.com> <1464855365.11694.35.camel@coelho.fi> From: Reinoud Koornstra Date: Thu, 2 Jun 2016 23:09:16 -0600 Message-ID: (sfid-20160603_070927_729832_6DB5D46A) Subject: Re: wireless-testing on 4.7 To: Luca Coelho Cc: "linux-wireless@vger.kernel.org" , linuxwifi , "me@bobcopeland.com" , "Grumbach, Emmanuel" Content-Type: text/plain; charset=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Thu, Jun 2, 2016 at 2:16 AM, Luca Coelho wrote: > On Thu, 2016-06-02 at 02:02 -0600, Reinoud Koornstra wrote: >> On Wed, Jun 1, 2016 at 10:27 PM, Coelho, Luciano >> wrote: >> > On Wed, 2016-06-01 at 16:08 -0600, Reinoud Koornstra wrote: >> > > On Wed, Jun 1, 2016 at 7:19 AM, Coelho, Luciano >> > > wrote: >> > > > On Wed, 2016-06-01 at 08:54 -0400, Bob Copeland wrote: >> > > > > + Luca, Emmanuel >> > > > >> > > > Thanks, Bob! >> > > > >> > > > >> > > > > On Tue, May 31, 2016 at 10:06:57PM -0600, Reinoud Koornstra >> > > > > wrote: >> > > > > > Today I compiled 4.6+ and pulled sources today >> > > > > > iwlwifi isn't super smooth. >> > > > > >> > > > > I assume you mean wireless-testing, based on 4.7-rc1 (as this >> > > > > email >> > > > > is >> > > > > in reply to my announcement of same). >> > > > >> > > > Yes, we need to know exactly what kernel you're using so we know >> > > > what >> > > > we're debugging. >> > > > >> > > >> > > Yesterday this is what I did to obtain the latest source: >> > > >> > > git clone >> > > git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git >> > > kernel_current >> > > >> > > This is the latest commit in that tree: >> > > >> > > commit 367d3fd50566a313946fa9c5b2116a81bf3807e4 >> > > Merge: 5eca831 cf0d44d >> > > Author: Linus Torvalds >> > > Date: Tue May 31 09:43:24 2016 -0700 >> > > >> > > Merge branch 'for-linus' of >> > > git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux >> > > >> > > Pull s390 fixes from Martin Schwidefsky: >> > > "Three bugs fixes and an update for the default configuration" >> > > >> > > * 'for-linus' of >> > > git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux: >> > > s390: fix info leak in do_sigsegv >> > > s390/config: update default configuration >> > > s390/bpf: fix recache skb->data/hlen for skb_vlan_push/pop >> > > s390/bpf: reduce maximum program size to 64 KB >> > >> > Ah, okay. This has nothing to do with the wireless-testing tree. This >> > is random commit in Linus' tree. I suggest that you use a release tag >> > or such. For instance you could do this in Linus' tree to get the >> > current release candidate for 4.7: >> > >> > git checkout v4.7-rc1 >> > >> > Or you could use the wireless-testing tree that Bob is maintaining, >> > which is always based on an official release candidate (currently the >> > above mentioned v4.7-rc1 release) plus the latest and greatest (and >> > probably "brokenest" :P) wireless changes: >> > >> > git clone git://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-testing.git >> > >> >> Ok, i got this tree. >> From the start it didn't work. >> >> [ 0.000000] Linux version 4.7.0-rc1-wt+ >> [SNIP] >> [ 2.156875] iwlwifi 0000:04:00.0: Direct firmware load for >> iwlwifi-7260-17.ucode failed with error -2 >> [ 2.157681] iwlwifi 0000:04:00.0: Direct firmware load for >> iwlwifi-7260-16.ucode failed with error -2 >> [ 2.158438] iwlwifi 0000:04:00.0: no suitable firmware found! > > This is happening pretty early, did you compile the iwlwifi driver into > the kernel (instead of compiling them as modules)? There have been > problems when it's in-kernel, so we recommend that you compile them as > modules (unless strictly necessary). > > >> I've attached the dmesg in it's entirety. >> Booting back to 4.6: >> >> [ 17.987698] iwlwifi 0000:04:00.0: loaded firmware version >> 16.242414.0 op_mode iwlmvm >> [ 18.269667] iwlwifi 0000:04:00.0: Detected Intel(R) Dual Band >> Wireless AC 7260, REV=0x144 > > This shows that you have iwlwifi-7260-16.ucode in your file system. > But here we are reading it much later. So it's possible that the > kernel cannot access the firmware at a very early stage (because the > filesystem that contains it is not mounted yet) when you use in-kernel. > > So, first of all, please make sure they're built as modules. We can > continue from there then. Your suggestion worked. When it's compiled as module, the iwlwifi-7260-16.ucode loads fine. No problems detected so far. It does make me think whether this is desired behavior though that due to the later reading we cannot have iwlwifi build in the kernel. Thanks, Reinoud. > > -- > Cheers, > Luca.