Dear linux wireless team:
This is Danny, a embedded software engineer
I have successfully run the 8822CE module in Linux kernel 5.4 with imx6 hardware platform.
But it doesnt work in Kernel 6.1 though i have put many efforts to this issue.
So, we'd like to check with you whether the RTL8822CE chip is compatible with Linux Kernel 6.1.
My usage is as below:
- imx6 board
- build RTL8822CE as M in kernel 6.1 menuconfig
- Each time after the board startup, i run four commands
insmod rtw88_core.ko
insmod rtw88_pci.ko
insmod rtw88_8822c.ko
insmod rtw88_8822ce.ko
insmod rtw88_pci.ko
insmod rtw88_8822c.ko
insmod rtw88_8822ce.ko
4. When run insmod rtw88_8822ce.ko, in most cases, the error will show as below. (few times can work)
Detail error log is attached.
Same step (1) -(4) works very well with kernel 5.4 in same hadrware platform.
================
root@imx6solosabresd:~/8822CE# ./insmod.sh
[ 60.541840] rtw_8822ce 0000:01:00.0: enabling device (0000 -> 0003)
[ 60.558145] rtw_8822ce 0000:01:00.0: Firmware version 9.9.4, H2C version 15
[ 60.567135] rtw_8822ce 0000:01:00.0: Firmware version 9.9.15, H2C version 15
[ 60.706697] 8<--- cut here ---
[ 60.709775] Unhandled fault: imprecise external abort (0x1406) at 0x01b77740
[ 60.716832] [01b77740] *pgd=00000000
[ 60.720421] Internal error: : 1406 [#1] PREEMPT SMP ARM
[ 60.725653] Modules linked in: rtw88_8822ce(+) rtw88_8822c rtw88_pci rtw88_core
[ 60.732991] CPU: 0 PID: 796 Comm: insmod Not tainted 6.1.22-g9c59b15a9e72 #1
[ 60.740049] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)
[ 60.746580] PC is at rtw_pci_read32+0x14/0x18 [rtw88_pci]
[ 60.752015] LR is at rtw_chip_info_setup+0x48/0x588 [rtw88_core]
[ 60.758170] pc : [<7f026048>] lr : [<7f0001c0>] psr: 60010013
[ 60.764442] sp : c1d0dd28 ip : 00000201 fp : 89344040
[ 60.769670] r10: 88b397a0 r9 : 88b3f890 r8 : 00000200
[ 60.774897] r7 : 000003da r6 : 000003d9 r5 : 7f03a2c8 r4 : 88b397a0
[ 60.781428] r3 : c09200f0 r2 : 00000000 r1 : 000000f0 r0 : 00000000
[ 60.787959] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none
[ 60.795100] Control: 10c5387d Table: 15d10059 DAC: 00000051
[ 60.800848] Register r0 information: NULL pointer
[ 60.805564] Register r1 information: non-paged memory
[ 60.810620] Register r2 information: NULL pointer
[ 60.541840] rtw_8822ce 0000:01:00.0: enabling device (0000 -> 0003)
[ 60.558145] rtw_8822ce 0000:01:00.0: Firmware version 9.9.4, H2C version 15
[ 60.567135] rtw_8822ce 0000:01:00.0: Firmware version 9.9.15, H2C version 15
[ 60.706697] 8<--- cut here ---
[ 60.709775] Unhandled fault: imprecise external abort (0x1406) at 0x01b77740
[ 60.716832] [01b77740] *pgd=00000000
[ 60.720421] Internal error: : 1406 [#1] PREEMPT SMP ARM
[ 60.725653] Modules linked in: rtw88_8822ce(+) rtw88_8822c rtw88_pci rtw88_core
[ 60.732991] CPU: 0 PID: 796 Comm: insmod Not tainted 6.1.22-g9c59b15a9e72 #1
[ 60.740049] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)
[ 60.746580] PC is at rtw_pci_read32+0x14/0x18 [rtw88_pci]
[ 60.752015] LR is at rtw_chip_info_setup+0x48/0x588 [rtw88_core]
[ 60.758170] pc : [<7f026048>] lr : [<7f0001c0>] psr: 60010013
[ 60.764442] sp : c1d0dd28 ip : 00000201 fp : 89344040
[ 60.769670] r10: 88b397a0 r9 : 88b3f890 r8 : 00000200
[ 60.774897] r7 : 000003da r6 : 000003d9 r5 : 7f03a2c8 r4 : 88b397a0
[ 60.781428] r3 : c09200f0 r2 : 00000000 r1 : 000000f0 r0 : 00000000
[ 60.787959] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none
[ 60.795100] Control: 10c5387d Table: 15d10059 DAC: 00000051
[ 60.800848] Register r0 information: NULL pointer
[ 60.805564] Register r1 information: non-paged memory
[ 60.810620] Register r2 information: NULL pointer
Thanks &Regards
Danny
root@imx6solosabresd:~/8822CE# ./insmod.sh [ 60.541840] rtw_8822ce 0000:01:00.0: enabling device (0000 -> 0003) [ 60.558145] rtw_8822ce 0000:01:00.0: Firmware version 9.9.4, H2C version 15 [ 60.567135] rtw_8822ce 0000:01:00.0: Firmware version 9.9.15, H2C version 15 [ 60.706697] 8<--- cut here --- [ 60.709775] Unhandled fault: imprecise external abort (0x1406) at 0x01b77740 [ 60.716832] [01b77740] *pgd=00000000 [ 60.720421] Internal error: : 1406 [#1] PREEMPT SMP ARM [ 60.725653] Modules linked in: rtw88_8822ce(+) rtw88_8822c rtw88_pci rtw88_core [ 60.732991] CPU: 0 PID: 796 Comm: insmod Not tainted 6.1.22-g9c59b15a9e72 #1 [ 60.740049] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree) [ 60.746580] PC is at rtw_pci_read32+0x14/0x18 [rtw88_pci] [ 60.752015] LR is at rtw_chip_info_setup+0x48/0x588 [rtw88_core] [ 60.758170] pc : [<7f026048>] lr : [<7f0001c0>] psr: 60010013 [ 60.764442] sp : c1d0dd28 ip : 00000201 fp : 89344040 [ 60.769670] r10: 88b397a0 r9 : 88b3f890 r8 : 00000200 [ 60.774897] r7 : 000003da r6 : 000003d9 r5 : 7f03a2c8 r4 : 88b397a0 [ 60.781428] r3 : c09200f0 r2 : 00000000 r1 : 000000f0 r0 : 00000000 [ 60.787959] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none [ 60.795100] Control: 10c5387d Table: 15d10059 DAC: 00000051 [ 60.800848] Register r0 information: NULL pointer [ 60.805564] Register r1 information: non-paged memory [ 60.810620] Register r2 information: NULL pointer [ 60.815329] Register r3 information: 0-page vmalloc region starting at 0xc0920000 allocated at rtw_pci_probe+0x13c/0xf34 [rtw88_pci] [ 60.827275] Register r4 information: non-slab/vmalloc memory [ 60.832946] Register r5 information: 114-page vmalloc region starting at 0x7f02d000 allocated at load_module+0x9ac/0x1c84 [ 60.843934] Register r6 information: non-paged memory [ 60.848991] Register r7 information: non-paged memory [ 60.854048] Register r8 information: non-paged memory [ 60.859105] Register r9 information: non-slab/vmalloc memory [ 60.864772] Register r10 information: non-slab/vmalloc memory [ 60.870523] Register r11 information: non-slab/vmalloc memory [ 60.876274] Register r12 information: non-paged memory [ 60.881418] Process insmod (pid: 796, stack limit = 0x31176f19) [ 60.887346] Stack: (0xc1d0dd28 to 0xc1d0e000) [ 60.891711] dd20: 88b3e624 88b3e0a4 81435b0c 809e2360 88b3f88c dd4c78f1 [ 60.899897] dd40: 00000001 8401c000 88b3e0a4 88b3e624 00000200 88b3f890 88b397a0 7f02867c [ 60.908081] dd60: 00000002 00000000 c0a0003c 804ad030 88b397a0 88b3e624 00000008 88b38580 [ 60.916265] dd80: 8401c000 88b3d7a0 00000008 00000000 8401b800 88b3f7a0 00000001 a805b000 [ 60.924449] dda0: 00001000 8401c088 00000016 60050013 3805b000 dd4c78f1 8401c000 8401c088 [ 60.932633] ddc0: 7f0a1054 7f0a2000 8401c000 85ba3db8 88f46900 0000017b 00457db4 804bc338 [ 60.940817] dde0: 8401c088 00000000 7f0a203c 00000000 85ba3db8 805ec2ec 8401c088 7f0a203c [ 60.949001] de00: 8401c088 00000036 85ba3db8 805ec594 8206bfd8 7f0a203c 8401c088 805ec624 [ 60.957185] de20: 8401c088 7f0a203c 8401c0cc 813e7540 85ba3db8 805ecd18 00000000 7f0a203c [ 60.965369] de40: 805ecc88 805ea4a0 c1d0de68 84167758 84416ab4 dd4c78f1 7f0a203c 85ba3d80 [ 60.973553] de60: 00000000 805eb834 7f0a10c4 00454e10 7f0a203c 00000000 88075dc0 00000000 [ 60.981737] de80: 8143f000 805ed7f8 7f0a5000 88f46900 88075dc0 80101844 00000008 8024f70c [ 60.989920] dea0: 00000008 00001740 00000000 00000000 00000000 84001180 00000000 80250fbc [ 60.998104] dec0: 00000008 00000000 ffffffff 80100c08 7f0a20c0 7f0a20c0 00000003 00454e10 [ 61.006288] dee0: 0000017b dd4c78f1 88f46900 7f0a20c0 00000003 88075dc0 0000017b 801002e4 [ 61.014472] df00: 88f46900 801982e0 8019a42c 8019829c 00000000 00000003 00454e10 8019a42c [ 61.022655] df20: c1d0df34 7fffffff 00000000 00000002 00000000 c0809000 c0809249 c08095c0 [ 61.030839] df40: c0809000 00001740 c080a1a0 c080a03c c0809ca8 00003000 00003140 00003764 [ 61.039023] df60: 0000322b 00000000 00000000 00000000 00000000 00000000 00003754 00000021 [ 61.047207] df80: 00000022 0000001a 00000013 00000012 00000000 dd4c78f1 00000000 016c6190 [ 61.055390] dfa0: 00000000 80100060 00000000 016c6190 00000003 00454e10 00000000 00000000 [ 61.063574] dfc0: 00000000 016c6190 00000000 0000017b 00000000 00452b48 00000002 00457db4 [ 61.071759] dfe0: 7e8b2bd0 7e8b2bc0 0044dc75 76be91f2 40050030 00000003 00000000 00000000 [ 61.079944] rtw_pci_read32 [rtw88_pci] from rtw_chip_info_setup+0x48/0x588 [rtw88_core] [ 61.088186] rtw_chip_info_setup [rtw88_core] from rtw_pci_probe+0x5b0/0xf34 [rtw88_pci] [ 61.096407] rtw_pci_probe [rtw88_pci] from pci_device_probe+0x90/0x128 [ 61.103064] pci_device_probe from really_probe+0xc8/0x2ec [ 61.108572] really_probe from __driver_probe_device+0x84/0xe4 [ 61.114418] __driver_probe_device from driver_probe_device+0x30/0x104 [ 61.120958] driver_probe_device from __driver_attach+0x90/0x174 [ 61.126977] __driver_attach from bus_for_each_dev+0x74/0xbc [ 61.132659] bus_for_each_dev from bus_add_driver+0x164/0x1f0 [ 61.138425] bus_add_driver from driver_register+0x88/0x11c [ 61.144010] driver_register from do_one_initcall+0x44/0x228 [ 61.149689] do_one_initcall from do_init_module+0x44/0x1d8 [ 61.155287] do_init_module from sys_finit_module+0xc0/0x10c [ 61.160973] sys_finit_module from ret_fast_syscall+0x0/0x64 [ 61.166650] Exception stack(0xc1d0dfa8 to 0xc1d0dff0) [ 61.171709] dfa0: 00000000 016c6190 00000003 00454e10 00000000 00000000 [ 61.179894] dfc0: 00000000 016c6190 00000000 0000017b 00000000 00452b48 00000002 00457db4 [ 61.188076] dfe0: 7e8b2bd0 7e8b2bc0 0044dc75 76be91f2 [ 61.193135] Code: e5903104 e0833001 e5930000 f57ff04f (e12fff1e) [ 61.199234] ---[ end trace 0000000000000000 ]--- [ 61.203855] note: insmod[796] exited with irqs disabled Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:02 2024 ... kernel: Internal error: : 1406 [#1] PREEMPT SMP ARM Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:02 2024 ... kernel: Process insmod (pid: 796, stack limit = 0x31176f19) Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:02 2024 ... kernel: Stack: (0xc1d0dd28 to 0xc1d0e000) Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:02 2024 ... kernel: dd20: 88b3e624 88b3e0a4 81435b0c 809e2360 88b3f88c dd4c78f1 Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:02 2024 ... kernel: dd40: 00000001 8401c000 88b3e0a4 88b3e624 00000200 88b3f890 88b397a0 7f02867c Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:02 2024 ... kernel: dd60: 00000002 00000000 c0a0003c 804ad030 88b397a0 88b3e624 00000008 88b38580 Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:02 2024 ... kernel: dd80: 8401c000 88b3d7a0 00000008 00000000 8401b800 88b3f7a0 00000001 a805b000 Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:02 2024 ... kernel: ddc0: 7f0a1054 7f0a2000 8401c000 85ba3db8 88f46900 0000017b 00457db4 804bc338 Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:02 2024 ... kernel: dda0: 00001000 8401c088 00000016 60050013 3805b000 dd4c78f1 8401c000 8401c088 Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:02 2024 ... kernel: de00: 8401c088 00000036 85ba3db8 805ec594 8206bfd8 7f0a203c 8401c088 805ec624 Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:02 2024 ... kernel: dde0: 8401c088 00000000 7f0a203c 00000000 85ba3db8 805ec2ec 8401c088 7f0a203c Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:02 2024 ... kernel: de20: 8401c088 7f0a203c 8401c0cc 813e7540 85ba3db8 805ecd18 00000000 7f0a203c Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:02 2024 ... kernel: de40: 805ecc88 805ea4a0 c1d0de68 84167758 84416ab4 dd4c78f1 7f0a203c 85ba3d80 Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:02 2024 ... kernel: de60: 00000000 805eb834 7f0a10c4 00454e10 7f0a203c 00000000 88075dc0 00000000 Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:02 2024 ... kernel: de80: 8143f000 805ed7f8 7f0a5000 88f46900 88075dc0 80101844 00000008 8024f70c Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:02 2024 ... kernel: dea0: 00000008 00001740 00000000 00000000 00000000 84001180 00000000 80250fbc Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:02 2024 ... kernel: dec0: 00000008 00000000 ffffffff 80100c08 7f0a20c0 7f0a20c0 00000003 00454e10 Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:02 2024 ... kernel: dee0: 0000017b dd4c78f1 88f46900 7f0a20c0 00000003 88075dc0 0000017b 801002e4 Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:02 2024 ... kernel: df20: c1d0df34 7fffffff 00000000 00000002 00000000 c0809000 c0809249 c08095c0 Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:02 2024 ... kernel: df00: 88f46900 801982e0 8019a42c 8019829c 00000000 00000003 00454e10 8019a42c Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:02 2024 ... kernel: df40: c0809000 00001740 c080a1a0 c080a03c c0809ca8 00003000 00003140 00003764 Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:02 2024 ... kernel: df60: 0000322b 00000000 00000000 00000000 00000000 00000000 00003754 00000021 Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:02 2024 ... kernel: dfa0: 00000000 80100060 00000000 016c6190 00000003 00454e10 00000000 00000000 Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:02 2024 ... kernel: df80: 00000022 0000001a 00000013 00000012 00000000 dd4c78f1 00000000 016c6190 Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:02 2024 ... kernel: dfc0: 00000000 016c6190 00000000 0000017b 00000000 00452b48 00000002 00457db4 Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:02 2024 ... kernel: dfe0: 7e8b2bd0 7e8b2bc0 0044dc75 76be91f2 40050030 00000003 00000000 00000000 Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:02 2024 ... kernel: rtw_pci_read32 [rtw88_pci] from rtw_chip_info_setup+0x48/0x588 [rtw88_core] Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:02 2024 ... kernel: rtw_chip_info_setup [rtw88_core] from rtw_pci_probe+0x5b0/0xf34 [rtw88_pci] Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:02 2024 ... kernel: rtw_pci_probe [rtw88_pci] from pci_device_probe+0x90/0x128 Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:02 2024 ... kernel: really_probe from __driver_probe_device+0x84/0xe4 Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:02 2024 ... kernel: pci_device_probe from really_probe+0xc8/0x2ec Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:02 2024 ... kernel: __driver_probe_device from driver_probe_device+0x30/0x104 Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:02 2024 ... kernel: driver_probe_device from __driver_attach+0x90/0x174 Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:02 2024 ... kernel: __driver_attach from bus_for_each_dev+0x74/0xbc Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:02 2024 ... kernel: bus_add_driver from driver_register+0x88/0x11c Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:02 2024 ... kernel: bus_for_each_dev from bus_add_driver+0x164/0x1f0 Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:02 2024 ... kernel: driver_register from do_one_initcall+0x44/0x228 Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:03 2024 ... kernel: do_one_initcall from do_init_module+0x44/0x1d8 Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:03 2024 ... kernel: do_init_module from sys_finit_module+0xc0/0x10c Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:03 2024 ... kernel: Exception stack(0xc1d0dfa8 to 0xc1d0dff0) Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:03 2024 ... kernel: sys_finit_module from ret_fast_syscall+0x0/0x64 Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:03 2024 ... kernel: dfa0: 00000000 016c6190 00000003 00454e10 00000000 00000000 Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:03 2024 ... kernel: dfe0: 7e8b2bd0 7e8b2bc0 0044dc75 76be91f2 Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:03 2024 ... kernel: dfc0: 00000000 016c6190 00000000 0000017b 00000000 00452b48 00000002 00457db4 Message from syslogd@imx6solosabresd at Thu Mar 21 17:59:03 2024 ... kernel: Code: e5903104 e0833001 e5930000 f57ff04f (e12fff1e) Segmentation fault insmod rtw88_8822ce.ko