FS#73344 - Kernel panic at mt76_dma_add_buf after updating to kernel 5.16.arch1-1 and amd-ucode to latest

Attached to Project: Arch Linux
Opened by S. Kratochwil (skratochwil) - Thursday, 13 January 2022, 09:03 GMT
Last edited by Toolybird (Toolybird) - Monday, 16 January 2023, 19:59 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Laurent Carlier (lordheavy)
Architecture x86_64
Severity Critical
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
After updating the above packages I receive a reproducible kernel panic. RIP is at mt76_dma_add_buf.constprop.[some offset].
I use a Lenovo P14s Gen2 (AMD) platform. The kernel panic does not occur if I do not load amd-ucode.img during boot.

When the panic is triggered, my kernel command line looks like this:
initrd=\amd-ucode.img initrd=\initramfs-linux.img cryptdevice=/dev/nvme0n1p2:cryptroot root=/dev/VolGroup0/root rw add_efi_memmap

With this command line, no panic occurs:
initrd=\initramfs-linux.img cryptdevice=/dev/nvme0n1p2:cryptroot root=/dev/VolGroup0/root rw add_efi_memmap

Additional info:
* package version(s)
linux: 5.16.arch1-1
amd-ucode: 20211216.f682ecb-1
* config and/or log files etc.
A 'screen picture' can be found in the attachment. I think it's quite readable, please tell me if you need better quality.
No trace of the panic in journalctl -b-1.
* no upstream bugs known to me so far
* lspci:
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:02.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:02.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:02.6 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:02.7 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 51)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 7
01:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller PM9A1/PM9A3/980PRO
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0e)
03:00.0 Network controller: MEDIATEK Corp. Device 7961
04:00.0 SD Host controller: Genesys Logic, Inc GL9750 SD Host Controller (rev 01)
05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
06:00.0 USB controller: Renesas Technology Corp. uPD720202 USB 3.0 Host Controller (rev 02)
07:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne (rev d1)
07:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller
07:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
07:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
07:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
07:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor (rev 01)
07:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller

Please let me know if you need further information.

Thanks!
This task depends upon

Closed by  Toolybird (Toolybird)
Monday, 16 January 2023, 19:59 GMT
Reason for closing:  Fixed
Additional comments about closing:  Reporter says "Issue was fixed in 2022."
Comment by S. Kratochwil (skratochwil) - Saturday, 29 January 2022, 08:20 GMT
Update:
It appears to be this issue:
https://lkml.org/lkml/2022/1/11/1154

A fix is probably on the way.
Comment by S. Kratochwil (skratochwil) - Monday, 16 January 2023, 07:58 GMT
As of today I do not experience any issues with the Mediatek 7961 adapter anymore. Since the fix seemingly matured over a year now I am kindly requesting closure.

Loading...