Kernel panics after when Wifi randomly drops

System Info:

OS: Manjaro Linux x86_64 
Kernel: 6.3.0-1-MANJARO

inxi

System:
  Kernel: 6.3.0-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.3-x86_64
    root=UUID=86a1b92a-6bb4-40b0-86bc-db4bbe9b12f7 rw quiet
    udev.log_priority=3
  Desktop: KDE Plasma v: 5.27.4 tk: Qt v: 5.15.9 wm: kwin_x11 vt: 1 dm: SDDM
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: ASUSTeK product: ASUS TUF Gaming A15 FA506QM_FA506QM
    v: 1.0 serial: <superuser required>
  Mobo: ASUSTeK model: FA506QM v: 1.0 serial: <superuser required>
    UEFI: American Megatrends LLC. v: FA506QM.314 date: 01/07/2023
Battery:
  ID-1: BAT1 charge: 85.0 Wh (95.9%) condition: 88.6/90.2 Wh (98.1%)
    volts: 16.4 min: 15.9 model: ASUS A32-K55 type: Li-ion serial: N/A
    status: not charging
CPU:
  Info: model: AMD Ryzen 7 5800H with Radeon Graphics bits: 64 type: MT MCP
    arch: Zen 3 gen: 4 level: v3 note: check built: 2021-22
    process: TSMC n7 (7nm) family: 0x19 (25) model-id: 0x50 (80) stepping: 0
    microcode: 0xA50000C
  Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
    L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB
    L3: 16 MiB desc: 1x16 MiB
  Speed (MHz): avg: 1324 high: 3200 min/max: 1200/4462 boost: enabled
    scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 3200 2: 1200
    3: 1197 4: 1200 5: 1200 6: 1200 7: 1200 8: 1200 9: 1198 10: 1200 11: 1200
    12: 1200 13: 1200 14: 1200 15: 1200 16: 1200 bogomips: 102241
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: retbleed status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW,
    STIBP: always-on, RSB filling, PBRSB-eIBRS: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q] vendor: ASUSTeK
    driver: nvidia v: 530.41.03 alternate: nouveau,nvidia_drm non-free: 530.xx+
    status: current (as of 2023-05) arch: Ampere code: GAxxx
    process: TSMC n7 (7nm) built: 2020-22 pcie: gen: 3 speed: 8 GT/s lanes: 8
    link-max: gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 01:00.0
    chip-ID: 10de:2520 class-ID: 0300
  Device-2: AMD Cezanne [Radeon Vega Series / Radeon Mobile Series]
    vendor: ASUSTeK driver: amdgpu v: kernel arch: GCN-5 code: Vega
    process: GF 14nm built: 2017-20 pcie: gen: 3 speed: 8 GT/s lanes: 16
    link-max: gen: 4 speed: 16 GT/s ports: active: HDMI-A-1,eDP-1 empty: none
    bus-ID: 05:00.0 chip-ID: 1002:1638 class-ID: 0300 temp: 50.0 C
  Device-3: Sonix USB2.0 HD UVC WebCam driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-4:3 chip-ID: 322e:202c
    class-ID: 0e02
  Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.1.1
    compositor: kwin_x11 driver: X: loaded: amdgpu,nvidia
    unloaded: modesetting,nouveau alternate: fbdev,nv,vesa dri: radeonsi
    gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3840x1080 s-dpi: 96 s-size: 1016x285mm (40.00x11.22")
    s-diag: 1055mm (41.54")
  Monitor-1: HDMI-A-1 mapped: HDMI-A-0 pos: primary,left
    model: LG (GoldStar) ULTRAGEAR serial: <filter> built: 2022 res: 1920x1080
    hz: 144 dpi: 93 gamma: 1.2 size: 527x296mm (20.75x11.65")
    diag: 604mm (23.8") ratio: 16:9 modes: max: 1920x1080 min: 640x480
  Monitor-2: eDP-1 mapped: eDP pos: right model: Najing CEC Panda 0x004d
    built: 2019 res: 1920x1080 hz: 144 dpi: 142 gamma: 1.2
    size: 344x194mm (13.54x7.64") diag: 395mm (15.5") ratio: 16:9 modes:
    max: 1920x1080 min: 640x480
  API: OpenGL v: 4.6 Mesa 23.0.3 renderer: AMD Radeon Graphics (renoir LLVM
    15.0.7 DRM 3.52 6.3.0-1-MANJARO) direct-render: Yes
Audio:
  Device-1: NVIDIA GA106 High Definition Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 8
    link-max: gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 01:00.1
    chip-ID: 10de:228e class-ID: 0403
  Device-2: AMD Renoir Radeon High Definition Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    link-max: gen: 4 speed: 16 GT/s bus-ID: 05:00.1 chip-ID: 1002:1637
    class-ID: 0403
  Device-3: AMD ACP/ACP3X/ACP6x Audio Coprocessor driver: N/A
    alternate: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x, snd_pci_acp6x,
    snd_acp_pci, snd_rpl_pci_acp6x, snd_pci_ps, snd_sof_amd_renoir,
    snd_sof_amd_rembrandt pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max:
    gen: 4 speed: 16 GT/s bus-ID: 05:00.5 chip-ID: 1022:15e2 class-ID: 0480
  Device-4: AMD Family 17h/19h HD Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    link-max: gen: 4 speed: 16 GT/s bus-ID: 05:00.6 chip-ID: 1022:15e3
    class-ID: 0403
  API: ALSA v: k6.3.0-1-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: sndiod v: N/A status: off tools: aucat,midicat,sndioctl
  Server-2: JACK v: 1.9.22 status: off tools: N/A
  Server-3: PipeWire v: 0.3.70 status: off with: pipewire-media-session
    status: active tools: pw-cli
  Server-4: PulseAudio v: 16.1 status: active with: pulseaudio-alsa
    type: plugin tools: pacat,pactl
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: ASUSTeK driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: e000 bus-ID: 02:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp2s0 state: down mac: <filter>
  Device-2: MEDIATEK MT7921 802.11ax PCI Express Wireless Network Adapter
    vendor: AzureWave driver: mt7921e v: kernel pcie: gen: 2 speed: 5 GT/s
    lanes: 1 bus-ID: 03:00.0 chip-ID: 14c3:7961 class-ID: 0280
  IF: wlp3s0 state: up mac: <filter>
  IF-ID-1: br-33a7701f910c state: down mac: <filter>
  IF-ID-2: docker0 state: down mac: <filter>
Bluetooth:
  Device-1: IMC Networks Wireless_Device driver: btusb v: 0.8 type: USB
    rev: 2.1 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-3:4 chip-ID: 13d3:3563
    class-ID: e001 serial: <filter>
  Report: rfkill ID: hci0 rfk-id: 0 state: up address: see --recommends
Drives:
  Local Storage: total: 2.29 TiB used: 125.66 GiB (5.4%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung
    model: MZVLQ512HBLU-00B00 size: 476.94 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 tech: SSD serial: <filter>
    fw-rev: FXM7201Q temp: 33.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Seagate model: INIC-3609
    size: 1.82 TiB block-size: physical: 512 B logical: 512 B type: USB rev: 2.1
    spd: 480 Mb/s lanes: 1 mode: 2.0 tech: N/A serial: <filter> fw-rev: 0217
    scheme: GPT
Partition:
  ID-1: / raw-size: 120 GiB size: 117.56 GiB (97.97%) used: 53.86 GiB (45.8%)
    fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-2: /boot/efi raw-size: 513 MiB size: 512 MiB (99.80%)
    used: 29.5 MiB (5.8%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-3: /home raw-size: 150 GiB size: 146.59 GiB (97.72%)
    used: 71.77 GiB (49.0%) fs: ext4 dev: /dev/nvme0n1p3 maj-min: 259:3
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 58.0 C mobo: N/A gpu: amdgpu temp: 52.0 C
  Fan Speeds (RPM): cpu: 0
Info:
  Processes: 377 Uptime: 18m wakeups: 2 Memory: available: 15.03 GiB
  used: 4.35 GiB (28.9%) Init: systemd v: 252 default: graphical
  tool: systemctl Compilers: gcc: 12.2.1 clang: 15.0.7 Packages: pm: pacman
  pkgs: 1674 libs: 466 tools: pamac pm: flatpak pkgs: 0 Shell: Zsh v: 5.9
  default: Bash v: 5.1.16 running-in: konsole inxi: 3.3.27

What happens is all of a sudden my wifi drops and things starts getting weird sometimes konsole doesn’t opens up and sometimes its seconds away from panic (i see continuous blinking of caps), have to turn system off and if i restart back it in same kernel. Wifi network doesn’t appear, so I have to boot to some other kernel from boot menu, also in this kernel mostly wifi doesnt show up but after trying to do this 2-3 times, I get wifi back as an option in network.
This is happening too frequently nowadays…

I tried inspecting what’s going on, and mostly i see this kind of log I believe before a kernel panic

May 18 21:03:12 xpt1x-linux kernel: mt7921e 0000:03:00.0: Timeout for driver own
May 18 21:03:11 xpt1x-linux kernel: mt7921e 0000:03:00.0: driver own failed
May 18 21:03:10 xpt1x-linux kernel: mt7921e 0000:03:00.0: Timeout for driver own
May 18 21:03:09 xpt1x-linux kernel: mt7921e 0000:03:00.0: driver own failed
May 18 21:03:08 xpt1x-linux kernel: mt7921e 0000:03:00.0: driver own failed
May 18 21:03:07 xpt1x-linux kernel: mt7921e 0000:03:00.0: driver own failed
May 18 21:00:35 xpt1x-linux wpa_supplicant[652]: bgscan simple: Failed to enable signal strength monitoring

Dmesg shows these error on next boot

[May18 21:08] ACPI BIOS Error (bug): Could not resolve symbol [\_TZ.THRM._SCP.CTYP], AE_NOT_FOUND (20221020/psargs-330)
[  +0.000004] ACPI Error: Aborting method \_TZ.THRM._SCP due to previous error (AE_NOT_FOUND) (20221020/psparse-529)

[  +7.512033] ucsi_acpi USBC000:00: PPM init failed (-110)

you can try Testing ( kernel 6.3.3 ) or goback to kernel 6.1 LTS ( or maybe 5.15 LTS )

add also on boot kernel
“iommu=pt amd_pstate=passive processor.max_cstate=5”

Thanks, for quick reply

Will try 61 and 51
What does these flags do?

Also it happened just replying to your comment
And I am seeing this common error as well in all journalctl entries before weird system

May 18 23:05:35 xpt1x-linux kernel: ACPI Error: Aborting method \_TZ.THRM._SCP due to previous error (AE_NOT_FOUND) (20221020/psparse-529)
May 18 23:05:35 xpt1x-linux kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_TZ.THRM._SCP.CTYP], AE_NOT_FOUND (20221020/psargs-330)

can you provide

sudo journalctl -b0 -g mt7921e 

Sure, was on kernel 5.15 and it happened again, I rebooted now in 6.1, so providing for last boot (-1)
Though system didn’t panicked everything else was normal (i could use terminal properly) except wifi dropped again

May 18 23:24:14 xpt1x-linux kernel: mt7921e 0000:03:00.0: enabling device (0000 -> 0002)
May 18 23:24:14 xpt1x-linux kernel: mt7921e 0000:03:00.0: disabling ASPM  L1
May 18 23:24:14 xpt1x-linux kernel: mt7921e 0000:03:00.0: ASIC revision: 79610010
May 18 23:24:14 xpt1x-linux kernel: mt7921e 0000:03:00.0: HW/SW Version: 0x8a108a10, Build Time: 20230302150916a
May 18 23:24:14 xpt1x-linux kernel: mt7921e 0000:03:00.0: WM Firmware Version: ____010000, Build Time: 20230302150956
May 18 23:24:15 xpt1x-linux kernel: mt7921e 0000:03:00.0 wlp3s0: renamed from wlan0
May 18 23:24:15 xpt1x-linux NetworkManager[683]: <info>  [1684432455.7427] rfkill1: found Wi-Fi radio killswitch (at /sys/devices/pci0000:00/0000:00:02.2/0000:03:00.0/ieee80211/phy0/rfkill>
May 18 23:37:52 xpt1x-linux kernel: mt7921e 0000:03:00.0: driver own failed
May 18 23:37:54 xpt1x-linux kernel: mt7921e 0000:03:00.0: driver own failed
May 18 23:37:54 xpt1x-linux kernel: mt7921e 0000:03:00.0: chip reset
May 18 23:37:55 xpt1x-linux kernel: mt7921e 0000:03:00.0: driver own failed
May 18 23:37:56 xpt1x-linux kernel: mt7921e 0000:03:00.0: Timeout for driver own
May 18 23:37:57 xpt1x-linux kernel: mt7921e 0000:03:00.0: driver own failed
May 18 23:37:58 xpt1x-linux kernel: mt7921e 0000:03:00.0: Timeout for driver own

(once wifi is lost)

rfkill list 

to see if soft/hard blocked (and post here if unsure)

and try

rfkill unblock wifi

There’s your clue. It’s a hardware problem. :man_shrugging:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.