2022-04-20 17:08:19

by Yegor Yefremov

[permalink] [raw]
Subject: wl18xx: NVS file handling

Hi all,

using the 5.18.x kernel, I get the following warning:

wlcore: WARNING Detected unconfigured mac address in nvs, derive from
fuse instead.
wlcore: WARNING This default nvs file can be removed from the file system

removing the /lib/firmware/ti-connectivity/wl127x-nvs.bin file, I get
this warning:

wl18xx_driver wl18xx.0.auto: Direct firmware load for
ti-connectivity/wl1271-nvs.bin failed with error -2

What's the best way to get rid of these warnings when I don't want to
handle WLAN's MAC address via the wl127x-nvs.bin?

According to this discussion [1], NVS file is the last resort for
handling the MAC address.

[1] https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/

Regards,
Yegor


2022-04-22 13:23:08

by Tony Lindgren

[permalink] [raw]
Subject: Re: wl18xx: NVS file handling

Hi,

* Yegor Yefremov <[email protected]> [220420 13:58]:
> Hi all,
>
> using the 5.18.x kernel, I get the following warning:
>
> wlcore: WARNING Detected unconfigured mac address in nvs, derive from
> fuse instead.
> wlcore: WARNING This default nvs file can be removed from the file system
>
> removing the /lib/firmware/ti-connectivity/wl127x-nvs.bin file, I get
> this warning:
>
> wl18xx_driver wl18xx.0.auto: Direct firmware load for
> ti-connectivity/wl1271-nvs.bin failed with error -2
>
> What's the best way to get rid of these warnings when I don't want to
> handle WLAN's MAC address via the wl127x-nvs.bin?

See commit d382b9c00782 ("wlcore: add missing nvs file name info for
wilink8"), to me looks like the the second warning should be just removed
for wl18xx.

> According to this discussion [1], NVS file is the last resort for
> handling the MAC address.
>
> [1] https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/

Yes the NVS file does not work at all for NFSroot for multiple devices.

To me it seems we should have the option for the MAC address to be
populated by the bootloader for the devicetree property like Ethernet
adapters typically do. Not sure what that might take, maybe it
already works. I guess the first step would be to make the nvs file
completely optional for wlcore.

Regards,

Tony


2022-04-22 18:42:19

by Yegor Yefremov

[permalink] [raw]
Subject: Re: wl18xx: NVS file handling

Hi Tony,

On Thu, Apr 21, 2022 at 11:01 AM Yegor Yefremov
<[email protected]> wrote:
>
> Hi Tony,
>
> On Thu, Apr 21, 2022 at 7:19 AM Tony Lindgren <[email protected]> wrote:
> >
> > Hi,
> >
> > * Yegor Yefremov <[email protected]> [220420 13:58]:
> > > Hi all,
> > >
> > > using the 5.18.x kernel, I get the following warning:
> > >
> > > wlcore: WARNING Detected unconfigured mac address in nvs, derive from
> > > fuse instead.
> > > wlcore: WARNING This default nvs file can be removed from the file system
> > >
> > > removing the /lib/firmware/ti-connectivity/wl127x-nvs.bin file, I get
> > > this warning:
> > >
> > > wl18xx_driver wl18xx.0.auto: Direct firmware load for
> > > ti-connectivity/wl1271-nvs.bin failed with error -2
> > >
> > > What's the best way to get rid of these warnings when I don't want to
> > > handle WLAN's MAC address via the wl127x-nvs.bin?
> >
> > See commit d382b9c00782 ("wlcore: add missing nvs file name info for
> > wilink8"), to me looks like the the second warning should be just removed
> > for wl18xx.
> >
> > > According to this discussion [1], NVS file is the last resort for
> > > handling the MAC address.
> > >
> > > [1] https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/
> >
> > Yes the NVS file does not work at all for NFSroot for multiple devices.
> >
> > To me it seems we should have the option for the MAC address to be
> > populated by the bootloader for the devicetree property like Ethernet
> > adapters typically do. Not sure what that might take, maybe it
> > already works. I guess the first step would be to make the nvs file
> > completely optional for wlcore.
>
> I'll try to create a patch for making nvs file optional.
>
> P.S. a TI maintainer for wlcore would be great .... WPA3 and mesh are
> still not really there [1].
>
> [1] https://software-dl.ti.com/ecs/WiLink8/R8_8/change_log_R8_8.html

Wouldn't we need this functionality [1] to make the NVS fw file optional? :-(

[1] https://patchwork.kernel.org/project/linux-dmaengine/patch/[email protected]/

Regards,
Yegor

2022-04-22 21:26:15

by Yegor Yefremov

[permalink] [raw]
Subject: Re: wl18xx: NVS file handling

Hi Tony,

On Thu, Apr 21, 2022 at 7:19 AM Tony Lindgren <[email protected]> wrote:
>
> Hi,
>
> * Yegor Yefremov <[email protected]> [220420 13:58]:
> > Hi all,
> >
> > using the 5.18.x kernel, I get the following warning:
> >
> > wlcore: WARNING Detected unconfigured mac address in nvs, derive from
> > fuse instead.
> > wlcore: WARNING This default nvs file can be removed from the file system
> >
> > removing the /lib/firmware/ti-connectivity/wl127x-nvs.bin file, I get
> > this warning:
> >
> > wl18xx_driver wl18xx.0.auto: Direct firmware load for
> > ti-connectivity/wl1271-nvs.bin failed with error -2
> >
> > What's the best way to get rid of these warnings when I don't want to
> > handle WLAN's MAC address via the wl127x-nvs.bin?
>
> See commit d382b9c00782 ("wlcore: add missing nvs file name info for
> wilink8"), to me looks like the the second warning should be just removed
> for wl18xx.
>
> > According to this discussion [1], NVS file is the last resort for
> > handling the MAC address.
> >
> > [1] https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/
>
> Yes the NVS file does not work at all for NFSroot for multiple devices.
>
> To me it seems we should have the option for the MAC address to be
> populated by the bootloader for the devicetree property like Ethernet
> adapters typically do. Not sure what that might take, maybe it
> already works. I guess the first step would be to make the nvs file
> completely optional for wlcore.

I'll try to create a patch for making nvs file optional.

P.S. a TI maintainer for wlcore would be great .... WPA3 and mesh are
still not really there [1].

[1] https://software-dl.ti.com/ecs/WiLink8/R8_8/change_log_R8_8.html

Regards,
Yegor

2022-04-22 22:00:47

by Tony Lindgren

[permalink] [raw]
Subject: Re: wl18xx: NVS file handling

* Yegor Yefremov <[email protected]> [220422 10:40]:
> Wouldn't we need this functionality [1] to make the NVS fw file optional? :-(
>
> [1] https://patchwork.kernel.org/project/linux-dmaengine/patch/[email protected]/

Hmm yeah, how about if we use just an empty nvs file for no warnings then?

Regards,

Tony

2022-04-22 22:15:16

by Yegor Yefremov

[permalink] [raw]
Subject: Re: wl18xx: NVS file handling

On Fri, Apr 22, 2022 at 2:08 PM Tony Lindgren <[email protected]> wrote:
>
> * Yegor Yefremov <[email protected]> [220422 10:40]:
> > Wouldn't we need this functionality [1] to make the NVS fw file optional? :-(
> >
> > [1] https://patchwork.kernel.org/project/linux-dmaengine/patch/[email protected]/
>
> Hmm yeah, how about if we use just an empty nvs file for no warnings then?

touch /lib/firmware/ti-connectivity/wl1271-nvs.bin

wl18xx_driver wl18xx.0.auto: loading
/lib/firmware/ti-connectivity/wl1271-nvs.bin failed with error -22
wl18xx_driver wl18xx.0.auto: Direct firmware load for
ti-connectivity/wl1271-nvs.bin failed with error -22

Regards,
Yegor

2022-04-23 07:52:20

by Kalle Valo

[permalink] [raw]
Subject: Re: wl18xx: NVS file handling

Tony Lindgren <[email protected]> writes:

> * Yegor Yefremov <[email protected]> [220422 10:40]:
>> Wouldn't we need this functionality [1] to make the NVS fw file optional? :-(
>>
>> [1] https://patchwork.kernel.org/project/linux-dmaengine/patch/[email protected]/
>
> Hmm yeah, how about if we use just an empty nvs file for no warnings then?

What's wrong with firmware_request_nowarn()?

--
https://patchwork.kernel.org/project/linux-wireless/list/

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

2022-04-25 12:52:56

by Yegor Yefremov

[permalink] [raw]
Subject: Re: wl18xx: NVS file handling

Hi Kalle,

On Sat, Apr 23, 2022 at 8:16 AM Kalle Valo <[email protected]> wrote:
>
> Tony Lindgren <[email protected]> writes:
>
> > * Yegor Yefremov <[email protected]> [220422 10:40]:
> >> Wouldn't we need this functionality [1] to make the NVS fw file optional? :-(
> >>
> >> [1] https://patchwork.kernel.org/project/linux-dmaengine/patch/[email protected]/
> >
> > Hmm yeah, how about if we use just an empty nvs file for no warnings then?
>
> What's wrong with firmware_request_nowarn()?

The driver uses asynchronous semantics for NVS loading. Hence, I
didn't want to change this.

Regards,
Yegor