Comfast WU782AC / MT7612U: page_pool_create() gave up with errno -22

Hello,

I'm trying to setup a OpenWRT VM (x86 on Proxmox) with a USB wifi Comfast WU782AC (MT7612U / MT7612UN).

I'm doing the USB Passthrough of the device "0e8d:7612 MediaTek Inc. 802.11ac WLAN".
But the dmesg shows the following error:

page_pool_create() gave up with errno -22
mt76x2u: probe of 3-1:1.0 failed with error -22

I'm not building from the source, and I'm not using a ARM, but looks to be similar to the following post:

Question:
Is there any correct way to setup this USB wifi device or fix the "errno -22"?


Below I'm sharing more details:

# Device details (it is running as a Proxmox VM):
Architecture: Intel(R) Celeron(R) N5105 @ 2.00GHz
Target Platform: x86/generic
Firmware Version: OpenWrt 23.05.2 r23630-842932a63d / LuCI openwrt-23.05 branch git-23.306.39416-c86c256
Kernel Version: 5.15.137

# lsusb
Bus 003 Device 002: ID 0e8d:7612 MediaTek Inc. 802.11ac WLAN
Bus 002 Device 001: ID 1d6b:0002 Linux 5.15.137 xhci-hcd xHCI Host Controller
Bus 001 Device 001: ID 1d6b:0001 Linux 5.15.137 uhci_hcd UHCI Host Controller
Bus 003 Device 001: ID 1d6b:0003 Linux 5.15.137 xhci-hcd xHCI Host Controller

# opkg list-installed | egrep -i '(usb|mt)'
kmod-mt76 - 5.15.137+2023-08-14-b14c2351-1
kmod-mt76-core - 5.15.137+2023-08-14-b14c2351-1
kmod-mt76-usb - 5.15.137+2023-08-14-b14c2351-1
kmod-mt7603 - 5.15.137+2023-08-14-b14c2351-1
kmod-mt76x02-common - 5.15.137+2023-08-14-b14c2351-1
kmod-mt76x02-usb - 5.15.137+2023-08-14-b14c2351-1
kmod-mt76x2 - 5.15.137+2023-08-14-b14c2351-1
kmod-mt76x2-common - 5.15.137+2023-08-14-b14c2351-1
kmod-mt76x2u - 5.15.137+2023-08-14-b14c2351-1
kmod-usb-core - 5.15.137-1
kmod-usb-xhci-hcd - 5.15.137-1
kmod-usb3 - 5.15.137-1
libusb-1.0-0 - 1.0.26-3
mtd - 26
usb-modeswitch - 2022-02-24-3c8595a4-1
usbutils - 014-1

# dmesg 
[   61.044371] pci 0000:02:1b.0: [1b36:000d] type 00 class 0x0c0330
[   61.047350] pci 0000:02:1b.0: reg 0x10: [mem 0x00000000-0x00003fff 64bit]
[   61.051266] pci 0000:02:1b.0: BAR 0: assigned [mem 0xfe600000-0xfe603fff 64bit]
[   61.052727] pci 0000:00:1e.0: PCI bridge to [bus 02]
[   61.055045] pci 0000:00:1e.0:   bridge window [io  0xd000-0xdfff]
[   61.056852] pci 0000:00:1e.0:   bridge window [mem 0xfe600000-0xfe7fffff]
[   61.058384] pci 0000:00:1e.0:   bridge window [mem 0xfd200000-0xfd3fffff 64bit pref]
[   61.060568] pci 0000:02:1b.0: enabling device (0000 -> 0002)
[   61.097930] pci 0000:02:1b.0: 0xc175e900 took 36749 usecs
[   61.116638] xhci_hcd 0000:02:1b.0: xHCI Host Controller
[   61.117403] xhci_hcd 0000:02:1b.0: new USB bus registered, assigned bus number 2
[   61.118580] xhci_hcd 0000:02:1b.0: hcc params 0x00087001 hci version 0x100 quirks 0x0000000000000010
[   61.120199] xhci_hcd 0000:02:1b.0: xHCI Host Controller
[   61.120900] xhci_hcd 0000:02:1b.0: new USB bus registered, assigned bus number 3
[   61.121811] xhci_hcd 0000:02:1b.0: Host supports USB 3.0 SuperSpeed
[   61.123612] hub 2-0:1.0: USB hub found
[   61.125252] hub 2-0:1.0: 15 ports detected
[   61.127456] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[   61.129365] hub 3-0:1.0: USB hub found
[   61.130953] hub 3-0:1.0: 15 ports detected
[   61.495114] usb 3-1: new SuperSpeed USB device number 2 using xhci_hcd
[   61.823065] usb 3-1: reset SuperSpeed USB device number 2 using xhci_hcd
[   61.856694] mt76x2u 3-1:1.0: ASIC revision: 76120044
[   61.884919] page_pool_create() gave up with errno -22
[   62.594862] mt76x2u: probe of 3-1:1.0 failed with error -22

Get the VM out of the equation, does it work on bare metal?

1 Like

Hello @frollic,

I'll setup a bare metal to answer you.
Note: In addition, I'll try a new OpenWrt VM using the Platform "Generic x86/64" (the current is using "x86/generic").

But a similar test that I did was using a Ubuntu x86_64 VM running on this same Proxmox host, same Processor type, BIOS, disk controller, etc.
Attaching the USB device worked as expected and created the network interface.
Bellow is the dmesg output from Ubuntu.

# dmesg
[  298.873481] usb 2-2: new high-speed USB device number 2 using xhci_hcd
[  299.025422] usb 2-2: New USB device found, idVendor=0e8d, idProduct=7612, bcdDevice= 1.00
[  299.025429] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  299.025431] usb 2-2: Product: 802.11ac WLAN
[  299.025432] usb 2-2: Manufacturer: MediaTek Inc.
[  299.025433] usb 2-2: SerialNumber: 000000000
[  299.342015] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[  299.342368] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[  300.053725] usb 2-2: reset high-speed USB device number 2 using xhci_hcd
[  300.204586] mt76x2u 2-2:1.0: ASIC revision: 76120044
[  300.332727] mt76x2u 2-2:1.0: ROM patch build: 20141115060606a
[  300.594252] mt76x2u 2-2:1.0: Firmware Version: 0.0.00
[  300.594258] mt76x2u 2-2:1.0: Build: 1
[  300.594260] mt76x2u 2-2:1.0: Build Time: 201507311614____
[  301.498685] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[  301.504037] usbcore: registered new interface driver mt76x2u

Maybe some problem with OpenWrt firmware x86 (without "/64"), I re-created the VM some times without success using the x86/generic as described below:

Model: Generic x86
Platform: x86/generic
Version: 23.05.2 r23630-842932a63d

But now I created a new VM using OpenWrt x86/64 as described below:

Model: Generic x86/64
Platform: x86/64
Version: 23.05.2 (r23630-842932a63d)

And the MT7612U is working as expected :white_check_mark:

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