From nobody Fri Dec 27 16:25:15 2024 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YKW7Y0K0jz5j0mS for ; Fri, 27 Dec 2024 16:25:29 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: from mail-il1-x12b.google.com (mail-il1-x12b.google.com [IPv6:2607:f8b0:4864:20::12b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YKW7X0Q0Qz4pJv for ; Fri, 27 Dec 2024 16:25:28 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=ffr0hbc3; spf=pass (mx1.freebsd.org: domain of fernando.apesteguia@gmail.com designates 2607:f8b0:4864:20::12b as permitted sender) smtp.mailfrom=fernando.apesteguia@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-il1-x12b.google.com with SMTP id e9e14a558f8ab-3a8180205f3so29706785ab.0 for ; Fri, 27 Dec 2024 08:25:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735316727; x=1735921527; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=fok5zFavCA1kXWQ27VgTWbHy61cyCurNVj/vx+2NzE0=; b=ffr0hbc3AQTYGXOvdXslyQoovd747JzC8WeyAtAf609/MHEw+QQaA5z7+6M+fcHOGg vzfrc4zsXBCUn8ixpp+FPqxZ7FBQLwmfWXtEQ9bhFbjhB6dhvMGICHhbLtVdzWhWbNn/ f9U/l0ZSTT6kjBXULCmYBN34YTTWyrue9yxmnqc/uWuX0pj1PBFDqgU34tE5RNig5dUu gNr+od2qvQcJcPmdohcXoeqzOma4Rg6UC9y9ouYSc5SgFLEAK97+tm4g7gd4eKzFCv4F xd5pBAIiGRZhf9+95Th51r733HOn7/lhJuzMJIKhckgjqEZSozLE23CW62RmxWzN0PxC mnQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735316727; x=1735921527; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=fok5zFavCA1kXWQ27VgTWbHy61cyCurNVj/vx+2NzE0=; b=vx3RK4yUSmYkboGfn99QT+I9tIjgwC7/UH1p83E+M/SlxldskWF+vsyRsumIx0bYC4 AJg+LHKI1yMjQHpofW8PARsUGpL13SjoWyC/+Sq6qBOdpL2G8f2DTsVEPc5AiZBXcvoQ WJZOVbaJyEcdHzDlgKya8c8iibDqwPwJKbvRBhqEthnEZEQ+/GOK+dbT86XNoRIJ0LEv 0bHfNK5RH2BKtzTV3+tWRE2FceC+W0rSJiql1zKQ/Ptf9Op+u0rUN2ECMXS2UaLEWaPa UZhhalErMGz1UEeZcMfs6lxJbCHSUD5V3iKMn38JMJQGq2KZKrp/GvnyXF/t0OEkRFTe Jrxw== X-Forwarded-Encrypted: i=1; AJvYcCU1hGDZgDDS+C3w3kTatp0xJ7IipOeQ4kfzXrzVEAvwnyXgcFjzu+uvWWYXqeX/pzoVvMmCI5E1o5fktD6Z1ZA=@freebsd.org X-Gm-Message-State: AOJu0YyLMm2gl05Z9EeqjY0xQ/yGI5teR+xfdaWUxcLyp+ouPuxt1dOE MOEk1NE4lK6BJ8QDaVyheV37wh+fSqmU9MM47CWy+AyNOGYcIEwc9KfKX9CA/sX80Rg4U5+HOnT 5yvri8NS9DTXskzrx1brWSnnYhV+QTaoo X-Gm-Gg: ASbGncstgughGKThid+0CUuoN0RE9A9/dMqB4m65Xn1MMquRBAwgAeRvtqpUZ5mPI2R 0C6kVKvdeT9FzWLENHWz9gCeYleI8I3Bu4L7T X-Google-Smtp-Source: AGHT+IHewIsFf+igj0MVp/R52ylt98bPJdBNMxwIV5dRlUqR/qK1Pyl904wcgJ015OLbeimvhs8jR03JEX25oHqEkWI= X-Received: by 2002:a05:6e02:240d:b0:3a9:cde3:2ecc with SMTP id e9e14a558f8ab-3c02ceb1ffamr301363325ab.6.1735316727181; Fri, 27 Dec 2024 08:25:27 -0800 (PST) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 References: <20241227094322.64a88d47bc806904f40a51d3@bidouilliste.com> <20241227095321.a8309bd2512b9d43f944e530@bidouilliste.com> In-Reply-To: From: =?UTF-8?Q?Fernando_Apestegu=C3=ADa?= Date: Fri, 27 Dec 2024 17:25:15 +0100 Message-ID: Subject: Re: No iwm interface in current. To: Warner Losh Cc: Emmanuel Vadot , FreeBSD Hackers Content-Type: multipart/alternative; boundary="00000000000018bdc2062a42e9ca" X-Spamd-Result: default: False [-3.43 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.989]; R_MIXED_CHARSET(0.56)[subject]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_DN_ALL(0.00)[]; TAGGED_FROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; FROM_HAS_DN(0.00)[]; MISSING_XM_UA(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MID_RHS_MATCH_FROMTLD(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::12b:from]; RCVD_COUNT_ONE(0.00)[1]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-Rspamd-Queue-Id: 4YKW7X0Q0Qz4pJv X-Spamd-Bar: --- --00000000000018bdc2062a42e9ca Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Dec 27, 2024 at 5:22=E2=80=AFPM Fernando Apestegu=C3=ADa < fernando.apesteguia@gmail.com> wrote: > > > On Fri, Dec 27, 2024 at 3:00=E2=80=AFPM Warner Losh wrot= e: > >> >> >> On Fri, Dec 27, 2024, 1:53=E2=80=AFAM Emmanuel Vadot >> wrote: >> >>> On Fri, 27 Dec 2024 09:43:22 +0100 >>> Emmanuel Vadot wrote: >>> >>> > >>> > Hi, >>> > >>> > On Thu, 26 Dec 2024 23:55:24 +0100 >>> > Fernando Apestegu=C3=ADa wrote: >>> > >>> > > I updated to today's current from a version from Nov 18th. >>> > > >>> > > I had these lines in loader.conf: >>> > > >>> > > iwm7265Dfw_load=3D"YES" >>> > > if_iwm_load=3D"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, bu= t >>> 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 a= nd >>> > iwm panics since root fs isn't there yet. >>> >> The stack trace: https://people.freebsd.org/~fernape/iwm.jpg > > Just removing those lines will make iwm works again or you can use : >>> > iwm7265Dfw_load=3D"YES" >>> > iwm7265Dfw_name=3D"/boot/firmware/iwm7265Dfw" >>> > iwm7265Dfw_type=3D"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: 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: 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 >>> > >>> >>> 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 n= eed >> firmware until after mountroot generally. >> > > In my case it's always been in loader.conf. I don't remember when I put i= t > there. > > Would suggesting removing the load of the modules for iwm(4) worth > mentioning in UPDATING? > > Cheers > > >> >> Warnet >> >> -- >>> Emmanuel Vadot >>> >>> --00000000000018bdc2062a42e9ca Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Fri, Dec 27,= 2024 at 5:22=E2=80=AFPM Fernando Apestegu=C3=ADa <fernando.apesteguia@gmail.com> wrote:
<= div dir=3D"ltr">

On Fri, Dec 27, 2024 at 3:00=E2=80=AFPM Warner Losh <= ;imp@bsdimp.com>= wrote:


On Fri, Dec 27, 2024, 1:53=E2=80=AFAM Emmanuel Vadot <ma= nu@bidouilliste.com> wrote:
On Fri, 27 Dec 2024 09:43:22 +0100
Emmanuel Vadot <manu@bidouilliste.com> wrote:

>
>=C2=A0 Hi,
>
> On Thu, 26 Dec 2024 23:55:24 +0100
> Fernando Apestegu=C3=ADa <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=3D"YES"
> > if_iwm_load=3D"YES"
> >
> > And with those the kernel panics. Then I saw the entry 20241216 i= n
> > 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
>
>=C2=A0 Without panic trace it's hard to really know what's goin= g on but I
> think that the problem is that the firmware wasn't loaded by loade= r and
> iwm panics since root fs isn't there yet.

The sta= ck trace:
=C2=A0
=
>=C2=A0 Just removing those lines will make iwm works again or you can u= se :
> iwm7265Dfw_load=3D"YES"
> iwm7265Dfw_name=3D"/boot/firmware/iwm7265Dfw"
> iwm7265Dfw_type=3D"firmware"

I just removed the lines from /boot/loa= der.conf and the NIC is up again, thanks.
I can see these message= s in dmesg though:

$ dmesg | grep iwm
iwm0: <Intel(R) Dual Band Wireless AC 7265> mem 0xdf200000-0xdf201= fff 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.361= 476.0, address 10:02:b5:5c:f3:d7
=C2=A0
>
>=C2=A0 Cheers,
>
> --
> Emmanuel Vadot <manu@bidouilliste.com> <manu@freebsd.org>
>

=C2=A0https://reviews.freebsd.org/D48211= will help too.

=C2=A0P.S.: Note that I don't understand why anyone wants to load wifi<= br> driver in loader, was it suggested somewhere at some point ?

Many people wan= t to run minimal + their drivers and load them all from the loader. With th= e firmware shift, we may need to defer drivers that need firmware until aft= er mountroot generally.

In my c= ase 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?

C= heers
=C2=A0

Warn= et

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

--00000000000018bdc2062a42e9ca--