You are not logged in.

#1 2025-02-04 08:01:15

ImmortAlex
Member
Registered: 2023-06-14
Posts: 41

RTL8812AU in kernel 6.13 doesn't work

lsusb:

Bus 001 Device 009: ID 2357:0101 TP-Link RTL8812AU Archer T4U 802.11ac

Also known as T4U ver.1
It perfectly work with rtl8812au-dkms-git from AUR up to kernel 6.12 (and still work with current 6.12 LTS kernel).
In 6.13 support for this chipset was added to rtw88 in-kernel driver, and rtl8812au-dkms-git cannot be compiled for 6.13 anymore.
But in-kernel driver is not loaded for device.

dmesg | grep -i '8812'

shows nothing.

After

modprobe rtw88_8812au

it show

usbcore: registered new interface driver rtw_8812au

When I reinsert device into USB port, there's messages in journal:

kernel: usb 1-9.4: new high-speed USB device number 10 using xhci_hcd
kernel: usb 1-9.4: New USB device found, idVendor=2357, idProduct=0101, bcdDevice= 0.00
kernel: usb 1-9.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
kernel: usb 1-9.4: Product: 802.11n NIC
kernel: usb 1-9.4: Manufacturer: Realtek
kernel: usb 1-9.4: SerialNumber: 123456
mtp-probe[10603]: checking bus 1, device 10: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-9/1-9.4"
mtp-probe[10603]: bus: 1, device: 10 was not an MTP device
mtp-probe[10604]: checking bus 1, device 10: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-9/1-9.4"
mtp-probe[10604]: bus: 1, device: 10 was not an MTP device

What else can I do?

Offline

#2 2025-02-04 09:28:06

Gusar
Member
Registered: 2009-08-25
Posts: 3,606

Re: RTL8812AU in kernel 6.13 doesn't work

Kernel 6.13 does not have vendor specific usb-ids (2357:0101 in your case) the driver. Try this, as root:

modprobe rtw88_8812au
echo 2357 0101 > /sys/bus/usb/drivers/rtw88_8812au/new_id

If that works, you can automate it by creating an udev rule, something like /etc/udev/rules.d/80-realtek.rules

ACTION=="add", \
	SUBSYSTEM=="usb", \
	ENV{ID_VENDOR_ID}=="2357", \
	ENV{ID_MODEL_ID}=="0101", \
	RUN+="/usr/bin/modprobe rtw88_8812au", \
	RUN+="/bin/sh -c 'echo 2357 0101 > /sys/bus/usb/drivers/rtw88_8812au/new_id'"

Kernel 6.14-rc1 doesn't need this anymore, vendor ids have been added there.

Last edited by Gusar (2025-02-04 09:35:48)

Offline

#3 2025-02-04 10:17:31

ImmortAlex
Member
Registered: 2023-06-14
Posts: 41

Re: RTL8812AU in kernel 6.13 doesn't work

It works, but when I insert device, I get this in dmesg:

[  140.381601] usb 1-9.4: new high-speed USB device number 9 using xhci_hcd
[  140.466136] usb 1-9.4: New USB device found, idVendor=2357, idProduct=0101, bcdDevice= 0.00
[  140.466149] usb 1-9.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  140.466154] usb 1-9.4: Product: 802.11n NIC
[  140.466158] usb 1-9.4: Manufacturer: Realtek
[  140.466162] usb 1-9.4: SerialNumber: 123456
[  140.470064] BUG: kernel NULL pointer dereference, address: 0000000000000010
[  140.470075] #PF: supervisor read access in kernel mode
[  140.470081] #PF: error_code(0x0000) - not-present page
[  140.470086] PGD 0 P4D 0 
[  140.470093] Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI
[  140.470102] CPU: 8 UID: 0 PID: 149 Comm: kworker/8:1 Tainted: G S                 6.13.1-arch1-1 #1 c1258adae10e6ad423427764ae6ad3679b7d8e8a
[  140.470115] Tainted: [S]=CPU_OUT_OF_SPEC
[  140.470118] Hardware name: Micro-Star International Co., Ltd. MS-7D18/MAG B560M BAZOOKA (MS-7D18), BIOS A.90 07/06/2024
[  140.470123] Workqueue: usb_hub_wq hub_event
[  140.470133] RIP: 0010:rtw_core_init+0x58b/0x680 [rtw88_core]
[  140.470171] Code: c7 83 a0 48 00 00 00 00 00 00 48 c7 83 f8 48 00 00 00 00 00 00 f3 48 ab c7 43 40 0e 40 10 f0 48 8d bb f8 3e 00 00 48 8b 43 38 <48> 8b 68 10 48 89 9b e8 3e 00 00 c7 83 38 3f 00 00 00 00 00 00 c7
[  140.470177] RSP: 0018:ffffb94980707830 EFLAGS: 00010202
[  140.470185] RAX: 0000000000000000 RBX: ffffa02b09afa000 RCX: 0000000000000000
[  140.470191] RDX: ffffffffc23cd005 RSI: ffffffffc23e99fc RDI: ffffa02b09afdef8
[  140.470196] RBP: 000fffffffe00000 R08: 0000000000000000 R09: ffffa029c1addba8
[  140.470200] R10: ffffa029c949aa00 R11: 0000000000000000 R12: 0000000000000000
[  140.470204] R13: ffffa02b09afdef0 R14: ffffa029d4082850 R15: ffffa02b09afa000
[  140.470209] FS:  0000000000000000(0000) GS:ffffa0311fc00000(0000) knlGS:0000000000000000
[  140.470216] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  140.470221] CR2: 0000000000000010 CR3: 0000000198bb2005 CR4: 0000000000772ef0
[  140.470226] PKRU: 55555554
[  140.470230] Call Trace:
[  140.470235]  <TASK>
[  140.470241]  ? __die_body.cold+0x19/0x27
[  140.470251]  ? page_fault_oops+0x15a/0x2d0
[  140.470263]  ? wq_update_node_max_active+0x13b/0x230
[  140.470273]  ? exc_page_fault+0x81/0x190
[  140.470285]  ? asm_exc_page_fault+0x26/0x30
[  140.470302]  ? rtw_core_init+0x58b/0x680 [rtw88_core e3f1d492c1cd8f432021f1acd877e19a5fcf350f]
[  140.470335]  rtw_usb_probe+0xb9/0x80f [rtw88_usb 5be24665fec06021a5f687ba7c57c0be54645153]
[  140.470347]  usb_probe_interface+0x16d/0x360
[  140.470357]  ? __pfx___device_attach_driver+0x10/0x10
[  140.470369]  really_probe+0xdb/0x340
[  140.470379]  ? pm_runtime_barrier+0x54/0x90
[  140.470391]  __driver_probe_device+0x78/0x110
[  140.470403]  driver_probe_device+0x1f/0xa0
[  140.470414]  __device_attach_driver+0x89/0x110
[  140.470426]  bus_for_each_drv+0x95/0xf0
[  140.470436]  __device_attach+0xb0/0x1b0
[  140.470448]  bus_probe_device+0x8d/0xa0
[  140.470458]  device_add+0x664/0x870
[  140.470467]  usb_set_configuration+0x5c9/0x860
[  140.470481]  ? __pfx___device_attach_driver+0x10/0x10
[  140.470492]  usb_generic_driver_probe+0x42/0x60
[  140.470503]  usb_probe_device+0x3e/0x120
[  140.470509]  really_probe+0xdb/0x340
[  140.470519]  ? pm_runtime_barrier+0x54/0x90
[  140.470529]  __driver_probe_device+0x78/0x110
[  140.470541]  driver_probe_device+0x1f/0xa0
[  140.470552]  __device_attach_driver+0x89/0x110
[  140.470563]  bus_for_each_drv+0x95/0xf0
[  140.470572]  __device_attach+0xb0/0x1b0
[  140.470584]  bus_probe_device+0x8d/0xa0
[  140.470594]  device_add+0x664/0x870
[  140.470602]  usb_new_device.cold+0x141/0x3a3
[  140.470613]  hub_event+0x11ae/0x19d0
[  140.470623]  process_one_work+0x17b/0x330
[  140.470634]  worker_thread+0x2ce/0x3f0
[  140.470644]  ? __pfx_worker_thread+0x10/0x10
[  140.470654]  kthread+0xcf/0x100
[  140.470662]  ? __pfx_kthread+0x10/0x10
[  140.470669]  ret_from_fork+0x31/0x50
[  140.470677]  ? __pfx_kthread+0x10/0x10
[  140.470684]  ret_from_fork_asm+0x1a/0x30
[  140.470696]  </TASK>
[  140.470699] Modules linked in: rtw88_8812au rtw88_8812a rtw88_88xxa rtw88_usb rtw88_core mac80211 libarc4 cfg80211 snd_seq_dummy snd_hrtimer snd_seq snd_seq_device rfkill nct6683 vfat fat ext4 mbcache jbd2 snd_sof_pci_intel_tgl snd_sof_pci_intel_cnl snd_sof_intel_hda_generic soundwire_intel soundwire_cadence usblp snd_sof_intel_hda_common snd_soc_hdac_hda snd_sof_intel_hda_mlink snd_sof_intel_hda snd_sof_pci snd_sof_xtensa_dsp snd_sof intel_rapl_msr intel_rapl_common snd_sof_utils snd_soc_acpi_intel_match intel_uncore_frequency snd_soc_acpi_intel_sdca_quirks intel_uncore_frequency_common soundwire_generic_allocation x86_pkg_temp_thermal snd_soc_acpi intel_powerclamp soundwire_bus coretemp snd_soc_sdca snd_soc_avs kvm_intel snd_hda_codec_realtek snd_soc_hda_codec snd_hda_codec_generic snd_hda_ext_core snd_hda_scodec_component snd_soc_core kvm snd_compress snd_hda_codec_hdmi ac97_bus crct10dif_pclmul snd_pcm_dmaengine crc32_pclmul snd_hda_intel polyval_clmulni polyval_generic snd_intel_dspcfg snd_intel_sdw_acpi
[  140.470827]  ghash_clmulni_intel sha512_ssse3 snd_hda_codec sha1_ssse3 aesni_intel snd_hda_core gf128mul crypto_simd iTCO_wdt snd_hwdep r8169 intel_pmc_bxt cryptd mei_hdcp ee1004 snd_pcm iTCO_vendor_support mei_pxp intel_cstate realtek i2c_i801 spi_nor snd_timer mdio_devres i2c_smbus mei_me intel_uncore libphy wmi_bmof pcspkr mtd snd mxm_wmi i2c_mux mei soundcore intel_pmc_core intel_vsec mousedev joydev pmt_telemetry pmt_class pinctrl_tigerlake acpi_pad acpi_tad mac_hid i2c_dev sg crypto_user dm_mod loop nfnetlink ip_tables x_tables hid_generic usbhid amdgpu btrfs blake2b_generic libcrc32c crc16 crc32c_generic amdxcp xor i2c_algo_bit raid6_pq drm_ttm_helper ttm drm_exec gpu_sched drm_suballoc_helper nvme drm_buddy drm_display_helper nvme_core crc32c_intel sha256_ssse3 sr_mod spi_intel_pci cdrom cec spi_intel nvme_auth video wmi
[  140.470996] CR2: 0000000000000010
[  140.471001] ---[ end trace 0000000000000000 ]---
[  140.471006] RIP: 0010:rtw_core_init+0x58b/0x680 [rtw88_core]
[  140.471038] Code: c7 83 a0 48 00 00 00 00 00 00 48 c7 83 f8 48 00 00 00 00 00 00 f3 48 ab c7 43 40 0e 40 10 f0 48 8d bb f8 3e 00 00 48 8b 43 38 <48> 8b 68 10 48 89 9b e8 3e 00 00 c7 83 38 3f 00 00 00 00 00 00 c7
[  140.471044] RSP: 0018:ffffb94980707830 EFLAGS: 00010202
[  140.471051] RAX: 0000000000000000 RBX: ffffa02b09afa000 RCX: 0000000000000000
[  140.471055] RDX: ffffffffc23cd005 RSI: ffffffffc23e99fc RDI: ffffa02b09afdef8
[  140.471060] RBP: 000fffffffe00000 R08: 0000000000000000 R09: ffffa029c1addba8
[  140.471065] R10: ffffa029c949aa00 R11: 0000000000000000 R12: 0000000000000000
[  140.471069] R13: ffffa02b09afdef0 R14: ffffa029d4082850 R15: ffffa02b09afa000
[  140.471074] FS:  0000000000000000(0000) GS:ffffa0311fc00000(0000) knlGS:0000000000000000
[  140.471079] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  140.471084] CR2: 0000000000000010 CR3: 0000000198bb2005 CR4: 0000000000772ef0
[  140.471089] PKRU: 55555554
[  140.471093] note: kworker/8:1[149] exited with irqs disabled

Offline

#4 2025-02-04 10:46:53

ImmortAlex
Member
Registered: 2023-06-14
Posts: 41

Re: RTL8812AU in kernel 6.13 doesn't work

Gusar wrote:

Kernel 6.14-rc1 doesn't need this anymore, vendor ids have been added there.

So by now I need to use rtw88-dkms-git...
Hope two months later I will finally not need out-of-tree drivers any more.

Offline

Board footer

Powered by FluxBB