2020-07-25 12:12:37

by Sedat Dilek

[permalink] [raw]
Subject: iwlwifi: Direct firmware load for iwl-debug-yoyo.bin failed with error -2

Hi,

I am seeing this failed/error message for a long time:

[Sat Jul 25 13:03:28 2020] iwlwifi 0000:01:00.0: Direct firmware load
for iwl-debug-yoyo.bin failed with error -2

So, I started to look for the file "iwl-debug-yoyo.bin" in [1], but failed.
AFAICS this is a file for debugging purposes?

Why do I see such a message as an end-user w/o iwlwifi-debugging enabled?
For some end-users I can imagine this looks scary and they will look
into their cupboards and below their beds but will not find any
monsters.

I found a rename from an ini file to bin here:
commit 8d9e982bf9bf ("iwlwifi: dbg_ini: rename external debug
configuration file")

Is "iwl-debug-yoyo.bin" a binary or as before an ini (text) file I
have to configure somehow.

Does this need to be guarded by some "ifdef CONFIG_IWLWIFI_DEBUG" in
"drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c"?

Or does drivers/net/wireless/intel/iwlwifi/Makefile needs some tuning
- as said I have no iwlwifi debugging enabled via Kconfig?
...
iwlwifi-objs += iwl-dbg-tlv.o

Please enlighten me/us?

Thanks.

Regards,
- Sedat -

[1] https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/linux-firmware.git/
[2] https://git.kernel.org/linus/e8d9e982bf9bf0e6f99099f1f09a37563b2b95b5

From my dmesg-output:

[Sa Jul 25 13:03:28 2020] iwlwifi 0000:01:00.0: can't disable ASPM; OS
doesn't have ASPM control
[Sa Jul 25 13:03:28 2020] iwlwifi 0000:01:00.0: loaded firmware
version 18.168.6.1 6000g2b-6.ucode op_mode iwldvm
[Sa Jul 25 13:03:28 2020] iwlwifi 0000:01:00.0: Direct firmware load
for iwl-debug-yoyo.bin failed with error -2
[Sa Jul 25 13:03:30 2020] iwlwifi 0000:01:00.0: CONFIG_IWLWIFI_DEBUG disabled
[Sa Jul 25 13:03:30 2020] iwlwifi 0000:01:00.0: CONFIG_IWLWIFI_DEBUGFS disabled
[Sa Jul 25 13:03:30 2020] iwlwifi 0000:01:00.0:
CONFIG_IWLWIFI_DEVICE_TRACING disabled
[Sa Jul 25 13:03:30 2020] iwlwifi 0000:01:00.0: Detected Intel(R)
Centrino(R) Advanced-N 6230 AGN, REV=0xB0


2020-07-26 07:24:03

by Kalle Valo

[permalink] [raw]
Subject: Re: iwlwifi: Direct firmware load for iwl-debug-yoyo.bin failed with error -2

Sedat Dilek <[email protected]> writes:

> Hi,
>
> I am seeing this failed/error message for a long time:
>
> [Sat Jul 25 13:03:28 2020] iwlwifi 0000:01:00.0: Direct firmware load
> for iwl-debug-yoyo.bin failed with error -2
>
> So, I started to look for the file "iwl-debug-yoyo.bin" in [1], but failed.
> AFAICS this is a file for debugging purposes?
>
> Why do I see such a message as an end-user w/o iwlwifi-debugging enabled?
> For some end-users I can imagine this looks scary and they will look
> into their cupboards and below their beds but will not find any
> monsters.
>
> I found a rename from an ini file to bin here:
> commit 8d9e982bf9bf ("iwlwifi: dbg_ini: rename external debug
> configuration file")
>
> Is "iwl-debug-yoyo.bin" a binary or as before an ini (text) file I
> have to configure somehow.
>
> Does this need to be guarded by some "ifdef CONFIG_IWLWIFI_DEBUG" in
> "drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c"?
>
> Or does drivers/net/wireless/intel/iwlwifi/Makefile needs some tuning
> - as said I have no iwlwifi debugging enabled via Kconfig?
> ...
> iwlwifi-objs += iwl-dbg-tlv.o
>
> Please enlighten me/us?
>
> Thanks.
>
> Regards,
> - Sedat -
>
> [1] https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/linux-firmware.git/
> [2] https://git.kernel.org/linus/e8d9e982bf9bf0e6f99099f1f09a37563b2b95b5
>
>>From my dmesg-output:
>
> [Sa Jul 25 13:03:28 2020] iwlwifi 0000:01:00.0: can't disable ASPM; OS
> doesn't have ASPM control
> [Sa Jul 25 13:03:28 2020] iwlwifi 0000:01:00.0: loaded firmware
> version 18.168.6.1 6000g2b-6.ucode op_mode iwldvm
> [Sa Jul 25 13:03:28 2020] iwlwifi 0000:01:00.0: Direct firmware load
> for iwl-debug-yoyo.bin failed with error -2

There's an RFC patch about this:

https://patchwork.kernel.org/patch/11625759/

I think that should be applied. Intel folks, should I take that directly
to wireless-drivers-next?

--
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

2020-07-27 06:24:30

by Luciano Coelho

[permalink] [raw]
Subject: Re: iwlwifi: Direct firmware load for iwl-debug-yoyo.bin failed with error -2

On Sun, 2020-07-26 at 10:22 +0300, Kalle Valo wrote:
> Sedat Dilek <[email protected]> writes:
>
> > Hi,
> >
> > I am seeing this failed/error message for a long time:
> >
> > [Sat Jul 25 13:03:28 2020] iwlwifi 0000:01:00.0: Direct firmware load
> > for iwl-debug-yoyo.bin failed with error -2
> >
> > So, I started to look for the file "iwl-debug-yoyo.bin" in [1], but failed.
> > AFAICS this is a file for debugging purposes?
> >
> > Why do I see such a message as an end-user w/o iwlwifi-debugging enabled?
> > For some end-users I can imagine this looks scary and they will look
> > into their cupboards and below their beds but will not find any
> > monsters.
> >
> > I found a rename from an ini file to bin here:
> > commit 8d9e982bf9bf ("iwlwifi: dbg_ini: rename external debug
> > configuration file")
> >
> > Is "iwl-debug-yoyo.bin" a binary or as before an ini (text) file I
> > have to configure somehow.
> >
> > Does this need to be guarded by some "ifdef CONFIG_IWLWIFI_DEBUG" in
> > "drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c"?
> >
> > Or does drivers/net/wireless/intel/iwlwifi/Makefile needs some tuning
> > - as said I have no iwlwifi debugging enabled via Kconfig?
> > ...
> > iwlwifi-objs += iwl-dbg-tlv.o
> >
> > Please enlighten me/us?
> >
> > Thanks.
> >
> > Regards,
> > - Sedat -
> >
> > [1] https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/linux-firmware.git/
> > [2] https://git.kernel.org/linus/e8d9e982bf9bf0e6f99099f1f09a37563b2b95b5
> >
> > > From my dmesg-output:
> >
> > [Sa Jul 25 13:03:28 2020] iwlwifi 0000:01:00.0: can't disable ASPM; OS
> > doesn't have ASPM control
> > [Sa Jul 25 13:03:28 2020] iwlwifi 0000:01:00.0: loaded firmware
> > version 18.168.6.1 6000g2b-6.ucode op_mode iwldvm
> > [Sa Jul 25 13:03:28 2020] iwlwifi 0000:01:00.0: Direct firmware load
> > for iwl-debug-yoyo.bin failed with error -2
>
> There's an RFC patch about this:
>
> https://patchwork.kernel.org/patch/11625759/
>
> I think that should be applied. Intel folks, should I take that directly
> to wireless-drivers-next?

As I wrote in the other thread, yes, please. Go ahead and merge it.

--
Cheers,
Luca.

2020-07-27 19:04:58

by Sedat Dilek

[permalink] [raw]
Subject: Re: iwlwifi: Direct firmware load for iwl-debug-yoyo.bin failed with error -2

On Mon, Jul 27, 2020 at 8:22 AM Luciano Coelho <[email protected]> wrote:
>
> On Sun, 2020-07-26 at 10:22 +0300, Kalle Valo wrote:
> > Sedat Dilek <[email protected]> writes:
> >
> > > Hi,
> > >
> > > I am seeing this failed/error message for a long time:
> > >
> > > [Sat Jul 25 13:03:28 2020] iwlwifi 0000:01:00.0: Direct firmware load
> > > for iwl-debug-yoyo.bin failed with error -2
> > >
> > > So, I started to look for the file "iwl-debug-yoyo.bin" in [1], but failed.
> > > AFAICS this is a file for debugging purposes?
> > >
> > > Why do I see such a message as an end-user w/o iwlwifi-debugging enabled?
> > > For some end-users I can imagine this looks scary and they will look
> > > into their cupboards and below their beds but will not find any
> > > monsters.
> > >
> > > I found a rename from an ini file to bin here:
> > > commit 8d9e982bf9bf ("iwlwifi: dbg_ini: rename external debug
> > > configuration file")
> > >
> > > Is "iwl-debug-yoyo.bin" a binary or as before an ini (text) file I
> > > have to configure somehow.
> > >
> > > Does this need to be guarded by some "ifdef CONFIG_IWLWIFI_DEBUG" in
> > > "drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c"?
> > >
> > > Or does drivers/net/wireless/intel/iwlwifi/Makefile needs some tuning
> > > - as said I have no iwlwifi debugging enabled via Kconfig?
> > > ...
> > > iwlwifi-objs += iwl-dbg-tlv.o
> > >
> > > Please enlighten me/us?
> > >
> > > Thanks.
> > >
> > > Regards,
> > > - Sedat -
> > >
> > > [1] https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/linux-firmware.git/
> > > [2] https://git.kernel.org/linus/e8d9e982bf9bf0e6f99099f1f09a37563b2b95b5
> > >
> > > > From my dmesg-output:
> > >
> > > [Sa Jul 25 13:03:28 2020] iwlwifi 0000:01:00.0: can't disable ASPM; OS
> > > doesn't have ASPM control
> > > [Sa Jul 25 13:03:28 2020] iwlwifi 0000:01:00.0: loaded firmware
> > > version 18.168.6.1 6000g2b-6.ucode op_mode iwldvm
> > > [Sa Jul 25 13:03:28 2020] iwlwifi 0000:01:00.0: Direct firmware load
> > > for iwl-debug-yoyo.bin failed with error -2
> >
> > There's an RFC patch about this:
> >
> > https://patchwork.kernel.org/patch/11625759/
> >
> > I think that should be applied. Intel folks, should I take that directly
> > to wireless-drivers-next?
>
> As I wrote in the other thread, yes, please. Go ahead and merge it.
>

Hey cool!

Thanks for taking care.

I have included this one into my Linux v5.8-rc7 patch-series.

Sorry, if I was a bit rude in my report.

Happy Monster hunting,
- Sedat -

2020-07-28 13:18:25

by Sedat Dilek

[permalink] [raw]
Subject: Re: iwlwifi: Direct firmware load for iwl-debug-yoyo.bin failed with error -2

On Sun, Jul 26, 2020 at 9:23 AM Kalle Valo <[email protected]> wrote:
>
> Sedat Dilek <[email protected]> writes:
>
> > Hi,
> >
> > I am seeing this failed/error message for a long time:
> >
> > [Sat Jul 25 13:03:28 2020] iwlwifi 0000:01:00.0: Direct firmware load
> > for iwl-debug-yoyo.bin failed with error -2
> >
> > So, I started to look for the file "iwl-debug-yoyo.bin" in [1], but failed.
> > AFAICS this is a file for debugging purposes?
> >
> > Why do I see such a message as an end-user w/o iwlwifi-debugging enabled?
> > For some end-users I can imagine this looks scary and they will look
> > into their cupboards and below their beds but will not find any
> > monsters.
> >
> > I found a rename from an ini file to bin here:
> > commit 8d9e982bf9bf ("iwlwifi: dbg_ini: rename external debug
> > configuration file")
> >
> > Is "iwl-debug-yoyo.bin" a binary or as before an ini (text) file I
> > have to configure somehow.
> >
> > Does this need to be guarded by some "ifdef CONFIG_IWLWIFI_DEBUG" in
> > "drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c"?
> >
> > Or does drivers/net/wireless/intel/iwlwifi/Makefile needs some tuning
> > - as said I have no iwlwifi debugging enabled via Kconfig?
> > ...
> > iwlwifi-objs += iwl-dbg-tlv.o
> >
> > Please enlighten me/us?
> >
> > Thanks.
> >
> > Regards,
> > - Sedat -
> >
> > [1] https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/linux-firmware.git/
> > [2] https://git.kernel.org/linus/e8d9e982bf9bf0e6f99099f1f09a37563b2b95b5
> >
> >>From my dmesg-output:
> >
> > [Sa Jul 25 13:03:28 2020] iwlwifi 0000:01:00.0: can't disable ASPM; OS
> > doesn't have ASPM control
> > [Sa Jul 25 13:03:28 2020] iwlwifi 0000:01:00.0: loaded firmware
> > version 18.168.6.1 6000g2b-6.ucode op_mode iwldvm
> > [Sa Jul 25 13:03:28 2020] iwlwifi 0000:01:00.0: Direct firmware load
> > for iwl-debug-yoyo.bin failed with error -2
>
> There's an RFC patch about this:
>
> https://patchwork.kernel.org/patch/11625759/
>
> I think that should be applied. Intel folks, should I take that directly
> to wireless-drivers-next?
>

Reported-by: Sedat Dilek <[email protected]>
Tested-by: Sedat Dilek <[email protected]> # Linux v5.8-rc7; GCC
v10.2 + GNU/ld v2.35

- Sedat -

2020-07-28 21:24:51

by Sedat Dilek

[permalink] [raw]
Subject: Re: iwlwifi: Direct firmware load for iwl-debug-yoyo.bin failed with error -2

On Tue, Jul 28, 2020 at 3:13 PM Sedat Dilek <[email protected]> wrote:
>
> On Sun, Jul 26, 2020 at 9:23 AM Kalle Valo <[email protected]> wrote:
> >
> > Sedat Dilek <[email protected]> writes:
> >
> > > Hi,
> > >
> > > I am seeing this failed/error message for a long time:
> > >
> > > [Sat Jul 25 13:03:28 2020] iwlwifi 0000:01:00.0: Direct firmware load
> > > for iwl-debug-yoyo.bin failed with error -2
> > >
> > > So, I started to look for the file "iwl-debug-yoyo.bin" in [1], but failed.
> > > AFAICS this is a file for debugging purposes?
> > >
> > > Why do I see such a message as an end-user w/o iwlwifi-debugging enabled?
> > > For some end-users I can imagine this looks scary and they will look
> > > into their cupboards and below their beds but will not find any
> > > monsters.
> > >
> > > I found a rename from an ini file to bin here:
> > > commit 8d9e982bf9bf ("iwlwifi: dbg_ini: rename external debug
> > > configuration file")
> > >
> > > Is "iwl-debug-yoyo.bin" a binary or as before an ini (text) file I
> > > have to configure somehow.
> > >
> > > Does this need to be guarded by some "ifdef CONFIG_IWLWIFI_DEBUG" in
> > > "drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c"?
> > >
> > > Or does drivers/net/wireless/intel/iwlwifi/Makefile needs some tuning
> > > - as said I have no iwlwifi debugging enabled via Kconfig?
> > > ...
> > > iwlwifi-objs += iwl-dbg-tlv.o
> > >
> > > Please enlighten me/us?
> > >
> > > Thanks.
> > >
> > > Regards,
> > > - Sedat -
> > >
> > > [1] https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/linux-firmware.git/
> > > [2] https://git.kernel.org/linus/e8d9e982bf9bf0e6f99099f1f09a37563b2b95b5
> > >
> > >>From my dmesg-output:
> > >
> > > [Sa Jul 25 13:03:28 2020] iwlwifi 0000:01:00.0: can't disable ASPM; OS
> > > doesn't have ASPM control
> > > [Sa Jul 25 13:03:28 2020] iwlwifi 0000:01:00.0: loaded firmware
> > > version 18.168.6.1 6000g2b-6.ucode op_mode iwldvm
> > > [Sa Jul 25 13:03:28 2020] iwlwifi 0000:01:00.0: Direct firmware load
> > > for iwl-debug-yoyo.bin failed with error -2
> >
> > There's an RFC patch about this:
> >
> > https://patchwork.kernel.org/patch/11625759/
> >
> > I think that should be applied. Intel folks, should I take that directly
> > to wireless-drivers-next?
> >
>
> Reported-by: Sedat Dilek <[email protected]>
> Tested-by: Sedat Dilek <[email protected]> # Linux v5.8-rc7; GCC
> v10.2 + GNU/ld v2.35
>

Re-tested with LLVM/Clang/LLD v11.0.0-rc1.

- Sedat -