Re: No iwm interface in current.

From: Warner Losh <imp_at_bsdimp.com>
Date: Fri, 27 Dec 2024 16:27:11 UTC
On Fri, Dec 27, 2024, 9:22 AM Fernando Apesteguía <
fernando.apesteguia@gmail.com> wrote:

>
>
> On Fri, Dec 27, 2024 at 3:00 PM Warner Losh <imp@bsdimp.com> wrote:
>
>>
>>
>> On Fri, Dec 27, 2024, 1:53 AM Emmanuel Vadot <manu@bidouilliste.com>
>> wrote:
>>
>>> On Fri, 27 Dec 2024 09:43:22 +0100
>>> Emmanuel Vadot <manu@bidouilliste.com> wrote:
>>>
>>> >
>>> >  Hi,
>>> >
>>> > On Thu, 26 Dec 2024 23:55:24 +0100
>>> > Fernando Apesteguía <fernando.apesteguia@gmail.com> wrote:
>>> >
>>> > > I updated to today's current from a version from Nov 18th.
>>> > >
>>> > > I had these lines in loader.conf:
>>> > >
>>> > > iwm7265Dfw_load="YES"
>>> > > if_iwm_load="YES"
>>> > >
>>> > > And with those the kernel panics. Then I saw the entry 20241216 in
>>> > > UPDATING. Can't reproduce it here since I'm writing in my phone, but
>>> it
>>> > > says the iwm firmwares are now shipped as raw files.
>>> > > So, how can I get the firmware loaded to make my nic work?
>>> > >
>>> > > Cheers
>>> >
>>> >  Without panic trace it's hard to really know what's going on but I
>>> > think that the problem is that the firmware wasn't loaded by loader and
>>> > iwm panics since root fs isn't there yet.
>>> >  Just removing those lines will make iwm works again or you can use :
>>> > iwm7265Dfw_load="YES"
>>> > iwm7265Dfw_name="/boot/firmware/iwm7265Dfw"
>>> > iwm7265Dfw_type="firmware"
>>>
>>
> I just removed the lines from /boot/loader.conf and the NIC is up again,
> thanks.
> I can see these messages in dmesg though:
>
> $ dmesg | grep iwm
> iwm0: <Intel(R) Dual Band Wireless AC 7265> mem 0xdf200000-0xdf201fff irq
> 16 at device 0.0 on pci2
> iwm0: hw rev 0x210, fw ver 22.361476.0, address 10:02:b5:5c:f3:d7
> iwm0: <Intel(R) Dual Band Wireless AC 7265> mem 0xdf200000-0xdf201fff irq
> 16 at device 0.0 on pci2
> iwm7265Dfw: could not load firmware image, error 2
> iwm0: hw rev 0x210, fw ver 22.361476.0, address 10:02:b5:5c:f3:d7
>
>
>> >
>>> >  Cheers,
>>> >
>>> > --
>>> > Emmanuel Vadot <manu@bidouilliste.com> <manu@freebsd.org>
>>> >
>>>
>>>  https://reviews.freebsd.org/D48211 will help too.
>>>
>>>  P.S.: Note that I don't understand why anyone wants to load wifi
>>> driver in loader, was it suggested somewhere at some point ?
>>>
>>
>> Many people want to run minimal + their drivers and load them all from
>> the loader. With the firmware shift, we may need to defer drivers that need
>> firmware until after mountroot generally.
>>
>
> In my case it's always been in loader.conf. I don't remember when I put it
> there.
>
> Would suggesting removing the load of the modules for iwm(4) worth
> mentioning in UPDATING?
>

Likely mention it as a workaround for this bug... loading from the loader
should be supported, but our firmware interface needs to defer loadings and
such until after mountroot. Sure, a lot can be done with devmatch, but that
doesn't mean we have to not support from loader...

Warner

Cheers
>
>
>>
>> Warnet
>>
>> --
>>> Emmanuel Vadot <manu@bidouilliste.com> <manu@freebsd.org>
>>>
>>>