Bug#1068249: linux-image-6.1.0-18-amd64: ax201 iwlwifi driver creates millions of 'Unhandled alg: 0x33f0707' messages

2024-04-03 Thread Diederik de Haas
Please always reply to the bug report (I'll see it then too)!

On woensdag 3 april 2024 22:01:20 CEST you wrote:
> Thanks, I am working on that, but it's not trivial
> 
> (1) About firmware
> 
> These are provided by debian and cause the problem
> -rw-r--r-- 1 root root 1299660 2023-05-01 21:30
> iwlwifi-QuZ-a0-hr-b0-59.ucode -rw-r--r-- 1 root root 1370356 2023-05-01
> 21:30 iwlwifi-QuZ-a0-hr-b0-72.ucode
> 
> I grabbed new fw from a TI git repo, but the debian kernel does not load any
> of them. Is fw signed? Do I need to sign it with my MOK?

Use the upstream repo to get the files. The files aren't signed.
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/

The `dmesg` command will tell you which firmware files it's trying to load.

Then DL that(/those) file(s) from the repo and put them in /lib/firmware/
Then on next boot the kernel will find them.

> -rw-r--r-- 1 root root 1369976 2024-04-03 21:24
> iwlwifi-QuZ-a0-hr-b0-73.ucode -rw-r--r-- 1 root root 1371668 2024-04-03
> 21:24 iwlwifi-QuZ-a0-hr-b0-74.ucode -rw-r--r-- 1 root root 1404184
> 2024-04-03 21:24 iwlwifi-QuZ-a0-hr-b0-77.ucode
> 
> (2) About kernel experiments, unfortunately it is a production server with
> samba-ad and ad replication. It uses btrfs and snapshots work great, but it
> needs some work (disable email services, make snapshots, stop all clients,
> testing, restore snapshots, reenable email, restart clients).
> 
> (3) Instead I will try first to use debian testing on a different NUC, but
> this will take some time.
> 
> 2. April 2024 20:28, "Diederik de Haas"  schrieb:
> > On Tuesday, 2 April 2024 19:54:41 CEST J. Pfennig wrote:
> >> Package: src:linux
> >> Version: 6.1.76-1
> >> Severity: important
> >> Tags: upstream
> > 
> > I am/was inclined to remove that tag, but the problem is likely caused by
> > firmware which is too old for the 'backported' patches that upstream
> > applied.> 
> >> The driver fills the eventlog with millions !!! of messages, see below.
> >> It otherwise works. The problem can be reproduced on different NUC
> >> systems.
> > 
> > If you downgrade the kernel version, does the issue then go away?
> > 
> >> ** Kernel log:
> >> [30911.569896] BTRFS info (device sda4): disk space caching is enabled
> >> [30974.905443] net_ratelimit: 67420 callbacks suppressed
> >> [30974.905457] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
> >> [30974.905728] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
> >> [30974.906036] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
> > 
> > https://unix.stackexchange.com/a/721474 looks related and the solution is
> > to upgrade the firmware to a newer version.
> > That isn't available on Stable, but grabbing ``firmware-iwlwifi`` from
> > Testing should be safe. Not sure if that version is new enough though.
> > 
> > https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.gi
> > t
> > is the upstream repo and you could 'grab' the firmware files which `dmesg`
> > reports it can't find.
> > 
> >> -- System Information:
> >> Debian Release: 12.5
> >> APT prefers stable-security
> >> APT policy: (500, 'stable-security'), (500, 'stable')
> >> Architecture: amd64 (x86_64)
> >> 
> >> Versions of packages linux-image-6.1.0-18-amd64 is related to:
> >> ii firmware-amd-graphics 20230210-5
> >> pn firmware-atheros 
> >> pn firmware-bnx2 
> >> pn firmware-bnx2x 
> >> pn firmware-brcm80211 
> >> pn firmware-cavium 
> >> ii firmware-intel-sound 20230210-5
> >> pn firmware-intelwimax 
> >> pn firmware-ipw2x00 
> >> pn firmware-ivtv 
> >> ii firmware-iwlwifi 20230210-5
> > 
> > My guess is that those 'backported' patches expect newer firmware then
> > that.



signature.asc
Description: This is a digitally signed message part.


Bug#1068249: linux-image-6.1.0-18-amd64: ax201 iwlwifi driver creates millions of 'Unhandled alg: 0x33f0707' messages

2024-04-02 Thread Diederik de Haas
On Tuesday, 2 April 2024 19:54:41 CEST J. Pfennig wrote:
> Package: src:linux
> Version: 6.1.76-1
> Severity: important
> Tags: upstream

I am/was inclined to remove that tag, but the problem is likely caused by 
firmware which is too old for the 'backported' patches that upstream applied.

> The driver fills the eventlog with millions !!! of messages, see below.
> It otherwise works. The problem can be reproduced on different NUC systems.

If you downgrade the kernel version, does the issue then go away?

> ** Kernel log:
> [30911.569896] BTRFS info (device sda4): disk space caching is enabled
> [30974.905443] net_ratelimit: 67420 callbacks suppressed
> [30974.905457] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
> [30974.905728] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
> [30974.906036] iwlwifi :00:14.3: Unhandled alg: 0x33f0707

https://unix.stackexchange.com/a/721474 looks related and the solution is to 
upgrade the firmware to a newer version.
That isn't available on Stable, but grabbing ``firmware-iwlwifi`` from Testing 
should be safe. Not sure if that version is new enough though.

https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/
is the upstream repo and you could 'grab' the firmware files which `dmesg` 
reports it can't find.

> -- System Information:
> Debian Release: 12.5
>   APT prefers stable-security
>   APT policy: (500, 'stable-security'), (500, 'stable')
> Architecture: amd64 (x86_64)
> 
> Versions of packages linux-image-6.1.0-18-amd64 is related to:
> ii  firmware-amd-graphics 20230210-5
> pn  firmware-atheros  
> pn  firmware-bnx2 
> pn  firmware-bnx2x
> pn  firmware-brcm80211
> pn  firmware-cavium   
> ii  firmware-intel-sound  20230210-5
> pn  firmware-intelwimax   
> pn  firmware-ipw2x00  
> pn  firmware-ivtv 
> ii  firmware-iwlwifi  20230210-5

My guess is that those 'backported' patches expect newer firmware then that.

signature.asc
Description: This is a digitally signed message part.


Bug#1068249: linux-image-6.1.0-18-amd64: ax201 iwlwifi driver creates millions of 'Unhandled alg: 0x33f0707' messages

2024-04-02 Thread J. Pfennig
Package: src:linux
Version: 6.1.76-1
Severity: important
Tags: upstream

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

The driver fills the eventlog with millions !!! of messages, see below.
It otherwise works. The problem can be reproduced on different NUC systems.
These are used as small servers, run a network bridge and hostapd. There
is no evidence that the problem depends on hostapd.

When the connection is idle the rate of reported errors goes down to a
few 10 per second. A larger stream of data (2GByte or so) produces
seveeral hundered tousand messages.

   * What led up to the situation?

iwlwifi is loaded with parameters as described in the debian wiki for
AX201 / Intel Nuc hardware:

options iwlwifi 11n_disable=8
options iwlmvm power_scheme=1

without power_scheme it frequently drops connections, with
power_scheme=1 it is stable. The effect of 11n_disable is unknown.

   * What exactly did you do (or not do) that was effective (or
 ineffective)?

Needed to increase network message_cost to reduce logging:

echo 128 > /proc/sys/net/core/message_cost

   * What was the outcome of this action?
   * What outcome did you expect instead?

A driver that simply works.

*** End of the template - remove these template lines ***


-- Package-specific info:
** Version:
Linux version 6.1.0-18-amd64 (debian-ker...@lists.debian.org) (gcc-12 (Debian 
12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP 
PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01)

** Command line:
root=LABEL=alpha1_vol0 rootflags=subvol=/Volumes/Root-bookworm ro 
resume=alpha1_swap centauriswitch=static:apoint net.ifnames=0 mitigations=off 
security= quiet splash loglevel=3

** Not tainted

** Kernel log:
[30911.569896] BTRFS info (device sda4): disk space caching is enabled
[30974.905443] net_ratelimit: 67420 callbacks suppressed
[30974.905457] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[30974.905728] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[30974.906036] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[30974.906356] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[30974.906681] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[30974.907014] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[30974.907319] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[30974.907576] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[30974.908421] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[30974.908744] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[31102.906916] net_ratelimit: 216171 callbacks suppressed
[31102.906930] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[31102.911063] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[31102.911481] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[31102.911817] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[31102.912118] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[31102.912434] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[31102.912758] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[31102.913054] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[31102.913376] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[31102.913728] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[31230.911440] net_ratelimit: 221524 callbacks suppressed
[31230.911453] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[31230.911815] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[31230.912192] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[31230.912511] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[31230.912895] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[31230.913217] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[31230.913562] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[31230.913912] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[31230.914255] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[31230.915740] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[31358.912228] net_ratelimit: 213726 callbacks suppressed
[31358.912240] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[31358.912554] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[31358.912873] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[31358.914335] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[31358.914433] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[31358.914948] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[31358.915097] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[31358.915459] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[31358.915749] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[31358.916034] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[31486.915992] net_ratelimit: 205539 callbacks suppressed
[31486.916005] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[31486.923781] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[31486.924153] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[31486.924548] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[31486.924860] iwlwifi :00:14.3: Unhandled alg: 0x33f0707
[31486.925252] iwlwifi :00:14.3: Unhandled alg: 0x33f0707