mt76
mt76 copied to clipboard
mt7921e: probe of 0000:02:00.0 failed with error -5
Running Ubuntu 21.04 on my ASUS ROG Zephyrus G14. Kernel version: 5.12.10. In the network settings, it says No Wi-Fi Adapter Found.
rfkill list all
0: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
lshw -C network
*-network UNCLAIMED
description: Network controller
product: MEDIATEK Corp.
vendor: MEDIATEK Corp.
physical id: 0
bus info: pci@0000:02:00.0
version: 00
width: 64 bits
clock: 33MHz
capabilities: pciexpress msi pm cap_list
configuration: latency=0
resources: iomemory:fe0-fdf iomemory:fe0-fdf iomemory:fe0-fdf memory:fe20300000-fe203fffff memory:fe20400000-fe20403fff memory:fe20404000-fe20404fff
/var/log/syslog
Jun 12 19:13:29 rog-laptop kernel: [ 3.190487] Error: Driver 'asus' is already registered, aborting...
Jun 12 19:13:29 rog-laptop kernel: [ 3.190685] usbcore: registered new interface driver btusb
Jun 12 19:13:29 rog-laptop kernel: [ 3.202090] mt7921e 0000:02:00.0: enabling device (0000 -> 0002)
Jun 12 19:13:29 rog-laptop kernel: [ 3.202805] mt7921e 0000:02:00.0: disabling ASPM L1
Jun 12 19:13:29 rog-laptop kernel: [ 3.203087] mt7921e 0000:02:00.0: ASIC revision: 79610010
...
Jun 12 19:13:29 rog-laptop kernel: [ 3.205066] mt7921e: probe of 0000:02:00.0 failed with error -5
Jun 12 19:13:29 rog-laptop kernel: [ 3.206692] AMD-Vi: AMD IOMMUv2 driver by Joerg Roedel <[email protected]>
Jun 12 19:13:29 rog-laptop kernel: [ 3.209335] kvm: Nested Virtualization enabled
Jun 12 19:13:29 rog-laptop kernel: [ 3.209358] SVM: kvm: Nested Paging enabled
...
I have Windows 10 insalled on this PC as well, and Wi-Fi works fine there. Fast boot is disabled. Secure boot disabled.
Any suggestions?
Solved by powering off the laptop (instead of rebooting it)
Following this suggestion, I powered off the laptop (instead of rebooting it) and unplugged the power cable for a few minutes. Then the Wi-Fi adapter magically appeared. If this is a hardware issue that can't be solved with the drivers, please close my issue.
Hello Roman,
I am fairly new to Ubuntu and Linux in general. I have the same problem on an ASUS TUF F15 and I took the same steps as you have by updating the kernel. For me, sometimes the Wi-Fi works, other times it does not. Apparently, as I found here there are no drivers yet available for our Wi-Fi adapter. I have disabled secure boot and fast boot as said there. Hopefully there will be a driver release soon. As I understand, sometimes if you turn off your laptop and then turn it back on without having a the charger plugged in, the adapter may work. You may also find useful information here. I hope this helps you. If you find better solutions, please contact me and let me know as I am in the same position.
Best wishes, Teodor-Avram
BTW, is your trackpad working?
@Ciochirca My trackpad stops working from time to time...
@shizonic have you tried the instructions here? My issue is that apparently there is a bug in the Linux kernel, but for some reason, I can not report the problem. When I enter the command ubuntu-bug linux
I get a pop up with the title "Problem in linux-image-5.12.10-051210-generic" containing the description "The problem can not be reported: This report is about a package that is not installed.". I have read on a couple of forums that it might be an xor problem, but I can not say for sure. I hope you will resolve your problem from the instructions provided by their team.
Solved by powering off the laptop (instead of rebooting it)
Following this suggestion, I powered off the laptop (instead of rebooting it) and unplugged the power cable for a few minutes. Then the Wi-Fi adapter magically appeared. If this is a hardware issue that can't be solved with the drivers, please close my issue.
HI Roman,
Could you help cherry-pick the patch "mt76: mt7921: reset wfsys during hw probe" [1] onto your testing kernel source, recompile the module and retry again ?
[1] https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-next.git/commit/drivers/net/wireless/mediatek/mt76/mt7921?id=01f7da40917923bf9d8fd8d5c9a6ed646004e47c
Hello I also experience the same problem with the same mt7921 on asus tuf f15. Everytime I reboot the wifi firmware fails to build and load and the wifi icon is missing from the top right corner. It works fine after a shutdown and then boot.
I tried blacklisting the mt7921 modules from modprobe on boot and run the modprobe command manually after boot. I get no errors on command line but again the module seems to initialize normally after a shutdown and does not work after a reboot (failed with error -5 on dmesg).
I will try to build the module using the patch mentioned by objelf and report back (probably tomorrow)
# modinfo mt7921e
filename: /lib/modules/5.12.13-300.fc34.x86_64/kernel/drivers/net/wireless/mediatek/mt76/mt7921/mt7921e.ko.xz
license: Dual BSD/GPL
author: Lorenzo Bianconi <[email protected]>
author: Sean Wang <[email protected]>
firmware: mediatek/WIFI_MT7961_patch_mcu_1_2_hdr.bin
firmware: mediatek/WIFI_RAM_CODE_MT7961_1.bin
alias: pci:v000014C3d00007961sv*sd*bc*sc*i*
depends: mt76,mt76-connac-lib,mac80211,cfg80211
retpoline: Y
intree: Y
name: mt7921e
vermagic: 5.12.13-300.fc34.x86_64 SMP mod_unload
On my setup I have windows 10 dual boot on a separate EFI partition with fast boot disabled and secure boot disabled.
Hello, I am experiencing the same issue here with the mt7921e on a ROG G15 GA503QS, and I am on Fedora 34 with the custom kernel from asus-ctl (https://asus-linux.org). Setup with a dual boot with Windows 10.
Also, I never got the Bluetooth to work properly; does it work for any of you?
Let me know if I can do anything to help fix this issue, or if you find a solution!
modinfo mt7921e
filename: /lib/modules/5.12.15-300.rog.fc34.x86_64/kernel/drivers/net/wireless/mediatek/mt76/mt7921/mt7921e.ko.xz
license: Dual BSD/GPL
author: Lorenzo Bianconi <[email protected]>
author: Sean Wang <[email protected]>
firmware: mediatek/WIFI_MT7961_patch_mcu_1_2_hdr.bin
firmware: mediatek/WIFI_RAM_CODE_MT7961_1.bin
alias: pci:v000014C3d00007961sv*sd*bc*sc*i*
depends: mt76,mt76-connac-lib,mac80211,cfg80211
retpoline: Y
intree: Y
name: mt7921e
vermagic: 5.12.15-300.rog.fc34.x86_64 SMP mod_unload
sig_id: PKCS#7
signer: Fedora kernel signing key
I have ASUS ROG Zephyrus G15, tried fedora 34 with dual boot with kernels 5.11 and 5.12, the same issue for both.(@Ciochirca touchpad didnt work for 5.11 for me, after update it was ok)
Moved to ubuntu 21, updated kernel to 5.13.2. Without power cable wifi works, if I connect a cable and reboot it doesnt. Bluetooth doesnt work at all for all kernels, distributions, etc
Hello Roman,
I am fairly new to Ubuntu and Linux in general. I have the same problem on an ASUS TUF F15 and I took the same steps as you have by updating the kernel. For me, sometimes the Wi-Fi works, other times it does not. Apparently, as I found here there are no drivers yet available for our Wi-Fi adapter. I have disabled secure boot and fast boot as said there. Hopefully there will be a driver release soon. As I understand, sometimes if you turn off your laptop and then turn it back on without having a the charger plugged in, the adapter may work. You may also find useful information here. I hope this helps you. If you find better solutions, please contact me and let me know as I am in the same position.
Best wishes, Teodor-Avram
@Ciochirca @shizonic I have TUF F15 and cant get touchpad working. How did you guys resolve this?
I had got same issue on my Asus F15 as you, Roman, so powering off helped (Ubuntu 20.04 kernel 5.12.5). But mainly I have issue with Bluetooth adapter, it doesn't work.. (tested also with kernel 5.13.0)
hciconfig hci0 hci0: Type: Primary Bus: USB BD Address: 00:00:00:00:00:00 ACL MTU: 0:0 SCO MTU: 0:0 DOWN RX bytes:0 acl:0 sco:0 events:0 errors:0 TX bytes:3 acl:0 sco:0 commands:1 errors:0
I have the same issue on my ASUS A15
$ inxi -nz
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
driver: r8169
IF: enp2s0 state: down mac: <filter>
Device-2: MEDIATEK driver: N/A
IF-ID-1: usb0 state: unknown speed: -1 duplex: half mac: <filter>
lspci -v
03:00.0 Network controller: MEDIATEK Corp. Device 7961
Subsystem: AzureWave Device 4680
Flags: fast devsel, IRQ 91, IOMMU group 12
Memory at fe20300000 (64-bit, prefetchable) [size=1M]
Memory at fe20400000 (64-bit, prefetchable) [size=16K]
Memory at fe20404000 (64-bit, prefetchable) [size=4K]
Capabilities: <access denied>
Kernel modules: mt7921e
The Wifi showed up on install of 21.04, I rebooted my computer and now no wi-fi
I have the same issue on ASUS ROG Zephyrus M16. Changing my wifi adapter from MT7921 to AX200 doesn't help.
Power cable plugged. Boot Windows10 -> Shutdown Windows10 -> Boot Arch Linux -> No WiFi adapter
Power cable unplugged. Boot Windows10 -> Shutdown Windows10 -> Boot Arch Linux -> The WiFi adapter works well -> Plug the cable, reboot Arch Linux -> The WiFi adapter works well
Logs when No WiFi adapter. Line 1121
zephyrus kernel: Intel(R) Wireless WiFi driver for Linux
zephyrus kernel: iwlwifi 0000:30:00.0: enabling device (0000 -> 0002)
zephyrus kernel: i915 0000:00:02.0: [drm] VT-d active for gfx access
zephyrus kernel: checking generic (4000000000 fa0000) vs hw (622c000000 1000000)
zephyrus kernel: checking generic (4000000000 fa0000) vs hw (4000000000 10000000)
zephyrus kernel: fb0: switching to inteldrmfb from EFI VGA
zephyrus kernel: i915 0000:00:02.0: vgaarb: deactivate vga console
zephyrus kernel: AVX2 version of gcm_enc/dec engaged.
zephyrus kernel: AES CTR mode by8 optimization enabled
zephyrus systemd[1]: Finished Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling.
zephyrus audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=lvm2-monitor comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
zephyrus systemd[1]: Reached target Preparation for Local File Systems.
zephyrus kernel: ACPI: battery: new extension: ASUS Battery Extension
zephyrus kernel: iwlwifi 0000:30:00.0: api flags index 2 larger than supported by driver
zephyrus kernel: iwlwifi 0000:30:00.0: TLV_FW_FSEQ_VERSION: FSEQ Version: 89.3.35.37
zephyrus kernel: iwlwifi 0000:30:00.0: loaded firmware version 63.c04f3485.0 cc-a0-63.ucode op_mode iwlmvm
Logs when the WiFi adapter works. Line 1111
zephyrus kernel: Intel(R) Wireless WiFi driver for Linux
zephyrus kernel: iwlwifi 0000:30:00.0: enabling device (0000 -> 0002)
zephyrus kernel: Creating 1 MTD partitions on "0000:00:1f.5":
zephyrus kernel: 0x000000000000-0x000001000000 : "BIOS"
zephyrus kernel: i915 0000:00:02.0: [drm] VT-d active for gfx access
zephyrus kernel: checking generic (4000000000 fa0000) vs hw (622c000000 1000000)
zephyrus kernel: checking generic (4000000000 fa0000) vs hw (4000000000 10000000)
zephyrus kernel: fb0: switching to inteldrmfb from EFI VGA
zephyrus kernel: i915 0000:00:02.0: vgaarb: deactivate vga console
zephyrus kernel: input: Asus WMI hotkeys as /devices/platform/asus-nb-wmi/input/input11
zephyrus kernel: usb 3-4: new low-speed USB device number 3 using xhci_hcd
zephyrus systemd[1]: Finished Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling.
zephyrus audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=lvm2-monitor comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
zephyrus systemd[1]: Reached target Preparation for Local File Systems.
zephyrus kernel: iwlwifi 0000:30:00.0: api flags index 2 larger than supported by driver
zephyrus kernel: iwlwifi 0000:30:00.0: TLV_FW_FSEQ_VERSION: FSEQ Version: 89.3.35.37
zephyrus kernel: iwlwifi 0000:30:00.0: loaded firmware version 63.c04f3485.0 cc-a0-63.ucode op_mode iwlmvm
zephyrus kernel: i915 0000:00:02.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=io+mem
zephyrus kernel: i915 0000:00:02.0: [drm] Finished loading DMC firmware i915/tgl_dmc_ver2_08.bin (v2.8)
Experience very similar problem with arch on kernel 5.14.5. The kernel panics on reboots and when poweron. A solution that seems to be working is a hard shutdown and then boot.
Couldn't dump the panic logs in a text file. The logs in the image are fairly readable
Looks like there is a seemingly unrecoverable, driver crash on suspend / resume under arch (5.14)
I had TUF A17 mt7961 with a similar issue. Neither wifi nor Bluetooth was working on ubuntu 20.04. Updating to 21.10 fixes the wifi issue. Installing the latest kernel rc release fixed the bluetooth issue as well ( sudo bluetoothctl list
output was "No default controller available"):
wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.15-rc6/amd64/linux-headers-5.15.0-051500rc6-generic_5.15.0-051500rc6.202110180730_amd64.deb
wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.15-rc6/amd64/linux-headers-5.15.0-051500rc6_5.15.0-051500rc6.202110180730_all.deb
wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.15-rc6/amd64/linux-image-unsigned-5.15.0-051500rc6-generic_5.15.0-051500rc6.202110180730_amd64.deb
wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.15-rc6/amd64/linux-modules-5.15.0-051500rc6-generic_5.15.0-051500rc6.202110180730_amd64.deb
sudo dpkg -i *.deb
sudo reboot now
I am not sure but I think this commit has the fix.
@sonalkr132
interesting finds, I also fixed the wifi by upgrading to ubuntu 21.04, solved many model issues as well by upgrading to kernel ^14.5.0
I wonder if there are anyways to resolve the bluetooth not working without using an unstable kernel release
I am currently facing identical issue with Wifi adapter on ASUS ROG G15: reboot fails to bring up wifi adapter on Arch Linux(kernel version 5.14). @divine-comedian I see you have G15, have you faced any ethernet related issues ? or Anyone with latest G15 models who has ethernet port, have you faced ethernet issues ?
Thank you
I am currently facing identical issue with Wifi adapter on ASUS ROG G15: reboot fails to bring up wifi adapter on Arch Linux(kernel version 5.14). @divine-comedian I see you have G15, have you faced any ethernet related issues ? or Anyone with latest G15 models who has ethernet port, have you faced ethernet issues ?
Thank you
I have actually a TUF506QM but my issues are with wi-fi, bluetooth and powering back from sleep/hibernate. wired connections have been my only saviour often.
I am currently facing identical issue with Wifi adapter on ASUS ROG G15: reboot fails to bring up wifi adapter on Arch Linux(kernel version 5.14). @divine-comedian I see you have G15, have you faced any ethernet related issues ? or Anyone with latest G15 models who has ethernet port, have you faced ethernet issues ? Thank you
I have actually a TUF506QM but my issues are with wi-fi, bluetooth and powering back from sleep/hibernate. wired connections have been my only saviour often.
Thanks for the prompt reply. Shutdown-start trick works for my wifi. I haven't had any luck with bluetooth though. ~My mouse pad's right click doesn't work.~ (seems default mouse pad setting is multiple finger) Those are my issues as far as I know at the moment. I believe my ethernet issue should be resolved once this commit is released in stable kernel - already tagged to 5.15.
So sorry, I didn't find the time to test and I installed windows on it. Now I installed ubuntu 21.10 on dual boot with UEFI and wifi works as intended. My kernel version is the following:
5.13.0-21-generic```
Bluetooth still doesn't work.
@9prady9 I have also ASUS ROG G15 and yes I also have the issues with ethernet and wifi during arch(5.14.15-arch1-1) installation. Btw trick with power off and not have plugged in power cable works
@9prady9 I have also ASUS ROG G15 and yes I also have the issues with ethernet and wifi during arch(5.14.15-arch1-1) installation. Btw trick with power off and not have plugged in power cable works
Glad to know that wifi trick works for you as well. Ethernet one should go away with 5.15 kernel as that added the newer card that is present in G15 to r8169 module https://github.com/torvalds/linux/commit/72f898ca0ab85fde6facf78b14d9f67a4a7b32d1#diff-9d61beebd4949ecbf8877624e7f25547715934c98cf968bed6e3a6d47d797a7f there is new fix to the same module in 5.16 soon to be released
The issues with suspend and resume have been fixed in 5.16-rc1+ on, there's also a small patch that solves them on older kernels too
I raised a bug about the coldboot wifi issue in the kernel bugzilla but there hasn't been much interaction with it
https://bugzilla.kernel.org/show_bug.cgi?id=214557
The issues with suspend and resume have been fixed in 5.16-rc1+ on, there's also a small patch that solves them on older kernels too
I raised a bug about the coldboot wifi issue in the kernel bugzilla but there hasn't been much interaction with it
https://bugzilla.kernel.org/show_bug.cgi?id=214557
HUGE that's awesome
I understand this isn't explicitly related to the topic but since we're discussing ASUS ubuntu issues - I updated to ubuntu 21.10 and the only working kernel I can seem to use is 5.12.16 - kernel 5.13 (default for Ub 21.10) leads to a blank/frozen terminal screen on load. kernel 5.15+ blank terminal screen as well. smells like a graphics driver issue, not sure if anyone has found the magic kernel past 5.12.16 to get this bad boy to load.
The issues with suspend and resume have been fixed in 5.16-rc1+ on, there's also a small patch that solves them on older kernels too I raised a bug about the coldboot wifi issue in the kernel bugzilla but there hasn't been much interaction with it https://bugzilla.kernel.org/show_bug.cgi?id=214557
HUGE that's awesome
I understand this isn't explicitly related to the topic but since we're discussing ASUS ubuntu issues - I updated to ubuntu 21.10 and the only working kernel I can seem to use is 5.12.16 - kernel 5.13 (default for Ub 21.10) leads to a blank/frozen terminal screen on load. kernel 5.15+ blank terminal screen as well. smells like a graphics driver issue, not sure if anyone has found the magic kernel past 5.12.16 to get this bad boy to load.
That's very weird, is that the AMD+AMD system or AMD+NVIDIA? If it's the former try and capture the dmesg and you can report the bug at https://gitlab.freedesktop.org/drm/amd/-/issues, if it's nVidia have you made sure you've got a matching nvidia module for that kernel?
@FireBurn
Using the ubuntu drivers tool I updated the proprietary nvidia drivers from 470 -> 495 and now it works on the default kernel for impish indri (5.13) but no further - (5.15+ still breaks).
Probably best to raise a bug on the ubuntu bug tracker, give them your dmesg too, and just check that the kernel you've installed has a matching nvidia entry in /lib/modules/{kernel version}, at a guess I'd think that the nvidia proprietary module hasn't been generated for the matching version
I face the same issue on artix-linux. It doesn't seem to be distro-specific since ubuntu was mentioned in this discussion
Same issue on Arch Linux, with my Thinkbook 14 G3 ACL. (also has mt7921e)
The Wifi adapter can not function after reboot, but when I put the laptop to sleep and reopen it, it works! A shutdown and then boot also work.