Bug#1070717: linux-image-6.7.12-amd64: Mediatek mt7921e WiFi fails connecting after hibernation since 6.7.12

2024-06-20 Thread Richard Rosner

It seems it's an upstream bug tracked here: 
https://bugzilla.kernel.org/show_bug.cgi?id=217415



Bug#1070717: linux-image-6.7.12-amd64: Mediatek mt7921e WiFi fails connecting after hibernation since 6.7.12

2024-05-07 Thread Richard Rosner

Package: src:linux
Version: 6.7.12-1
Severity: normal

Dear Maintainer,
Since upgrading to Linux 6.7.12 from 6.6.15, connecting to WiFi after
waking up
from hibernation fails. The journal lists these kernel errors, I can't
see any
other relevant errors:

Mai 07 16:53:03 kernel: mt7921e :01:00.0: Message 00020007 (seq 1)
timeout
Mai 07 16:53:03 kernel: mt7921e :01:00.0: PM: dpm_run_callback():
pci_pm_restore+0x0/0xe0 returns -110
Mai 07 16:53:03 kernel: mt7921e :01:00.0: PM: failed to restore async:
error -110
Mai 07 16:53:03 kernel: mt7921e :01:00.0: Failed to get patch semaphore
Mai 07 16:53:03 kernel: mt7921e :01:00.0: AMD-Vi: Event logged
[IO_PAGE_FAULT domain=0x000d address=0xfff4ff80 flags=0x]
Mai 07 16:53:03 kernel: mt7921e :01:00.0: Message 0010 (seq 14)
timeout
Mai 07 16:53:03 kernel: mt7921e :01:00.0: Failed to get patch semaphore
Mai 07 16:53:03 kernel: mt7921e :01:00.0: Message 0010 (seq 15)
timeout
Mai 07 16:53:03 kernel: mt7921e :01:00.0: Failed to get patch semaphore
Mai 07 16:53:03 kernel: mt7921e :01:00.0: Message 46ed (seq 1)
timeout
Mai 07 16:53:03 kernel: mt7921e :01:00.0: AMD-Vi: Event logged
[IO_PAGE_FAULT domain=0x000d address=0xffbb9a80 flags=0x]
Mai 07 16:53:03 kernel: ieee80211 phy0: PM: dpm_run_callback():
wiphy_resume+0x0/0x1b0 [cfg80211] returns -110
Mai 07 16:53:03 kernel: ieee80211 phy0: PM: failed to restore async:
error -110
Mai 07 16:53:06 kernel: mt7921e :01:00.0: Message 0010 (seq 2)
timeout
Mai 07 16:53:06 kernel: mt7921e :01:00.0: Failed to get patch semaphore
Mai 07 16:53:09 kernel: mt7921e :01:00.0: Message 0010 (seq 3)
timeout
Mai 07 16:53:09 kernel: mt7921e :01:00.0: Failed to get patch semaphore
Mai 07 16:53:13 kernel: mt7921e :01:00.0: Message 46ed (seq 4)
timeout
Mai 07 16:53:13 kernel: mt7921e :01:00.0: AMD-Vi: Event logged
[IO_PAGE_FAULT domain=0x000d address=0xffd52d00 flags=0x]

dmesg doesn't indicated any firmware issues when grepping for
mt7921e. The firmware at hand comes directly from the April tarball on
kernel.org, as the iGPU already needed much newer firmware as available from
Debian repos, so I just copied over the whole archive. This wasn't an issue
with 6.6.15. Also, in the last weeks before 6.7.12 was released to
testing, I
did compile 6.8.8 and 6.8.9 based on Debians 6.6.15 config (updates with
make
olddefconfig) and compiled to Debian packages, which showed a similar
behavior.
So this might be an upstream issue, yet I can't be sure.


-- Package-specific info:
** Version:
Linux version 6.7.12-amd64 (debian-ker...@lists.debian.org)
(x86_64-linux-gnu-gcc-13 (Debian 13.2.0-23) 13.2.0, GNU ld (GNU Binutils
for Debian) 2.42) #1 SMP PREEMPT_DYNAMIC Debian 6.7.12-1 (2024-04-24)

** Command line:
BOOT_IMAGE=/@/boot/vmlinuz-6.7.12-amd64
root=UUID=557dc1ed-2335-4fe5-806d-012051c96cbf ro rootflags=subvol=@
quiet
cryptdevice=UUID=91aa7dec-7df2-4330-82c5-f5b544612416:luks-91aa7dec-7df2-4330-82c5-f5b544612416
root=/dev/mapper/luks-91aa7dec-7df2-4330-82c5-f5b544612416 splash
resume=/dev/mapper/luks-4deac7d3-52a0-4f41-84bb-b913eb17f834

** Not tainted

** Kernel log:
[  422.107842] audit: type=1400 audit(1715094289.283:515):
apparmor="ALLOWED" operation="open" class="file"
profile="libreoffice-soffice"
name="/sys/fs/cgroup/user.slice/user-1000.slice/user@1000.service/app.slice/app-gnome-org.kde.dolphin-6145.scope/memory.max"
pid=6388 comm=433220436F6D70696C657254687265 requested_mask="r"
denied_mask="r" fsuid=1000 ouid=1000
[  422.128664] audit: type=1400 audit(1715094289.303:516):
apparmor="ALLOWED" operation="open" class="file"
profile="libreoffice-soffice"
name="/sys/fs/cgroup/user.slice/user-1000.slice/user@1000.service/app.slice/app-gnome-org.kde.dolphin-6145.scope/memory.max"
pid=6388 comm=433220436F6D70696C657254687265 requested_mask="r"
denied_mask="r" fsuid=1000 ouid=1000
[  422.151895] audit: type=1400 audit(1715094289.327:517):
apparmor="ALLOWED" operation="open" class="file"
profile="libreoffice-soffice"
name="/sys/fs/cgroup/user.slice/user-1000.slice/user@1000.service/app.slice/app-gnome-org.kde.dolphin-6145.scope/memory.max"
pid=6388 comm=433220436F6D70696C657254687265 requested_mask="r"
denied_mask="r" fsuid=1000 ouid=1000
[  422.172284] audit: type=1400 audit(1715094289.347:518):
apparmor="ALLOWED" operation="open" class="file"
profile="libreoffice-soffice"
name="/sys/fs/cgroup/user.slice/user-1000.slice/user@1000.service/app.slice/app-gnome-org.kde.dolphin-6145.scope/memory.max"
pid=6388 comm=433220436F6D70696C657254687265 requested_mask="r"
denied_mask="r" fsuid=1000 ouid=1000
[  422.194409] audit: type=1400 audit(1715094289.371:519):
apparmor="ALLOWED" operation="open" class="file"
profile="libreoffice-soffice"
name="/sys/fs/cgroup/user.slice/user-1000.slice/user@1000.service/app.slice/app-gnome-org.kde.dolphin-6145.scope/memory.max"
pid=6388 comm=433120436F6D70696C657254687265 requested_mask="r"
denied_mask="r" fsuid=1000 ouid=1000
[