All of lore.kernel.org
 help / color / mirror / Atom feed
* Is RTL8822CE with Kernel 6.1 for imx6
@ 2024-03-21 13:13 施小丰(医用制品产业集团-医用制品集团本部)
  2024-03-21 17:00 ` Larry Finger
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: 施小丰(医用制品产业集团-医用制品集团本部) @ 2024-03-21 13:13 UTC (permalink / raw)
  To: linux-wireless


[-- Attachment #1.1: Type: text/plain, Size: 2377 bytes --]



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 boardbuild RTL8822CE as M in kernel 6.1 menuconfigEach 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
 
 
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
 


 
Thanks &Regards
Danny










[-- Attachment #1.2: Type: text/html, Size: 19252 bytes --]

[-- Attachment #2: RTL8822CEerrorlog.txt --]
[-- Type: text/plain, Size: 12496 bytes --]


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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Is RTL8822CE with Kernel 6.1 for imx6
  2024-03-21 13:13 Is RTL8822CE with Kernel 6.1 for imx6 施小丰(医用制品产业集团-医用制品集团本部)
@ 2024-03-21 17:00 ` Larry Finger
  2024-03-21 17:34 ` Larry Finger
  2024-03-22  7:30 ` Ping-Ke Shih
  2 siblings, 0 replies; 9+ messages in thread
From: Larry Finger @ 2024-03-21 17:00 UTC (permalink / raw)
  To: 施小丰(医用制品产业集团-医用制品集团本部),
	linux-wireless

On 3/21/24 08:13, 施小丰(医用制品产业集团-医用制品集团本部) wrote:
> 
> 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:
> 
>  1. imx6 board
>  2. build RTL8822CE as M in kernel 6.1 menuconfig
>  3. 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
> 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

Danny,

The RTL8822CE certainly works with kernel 6.1 on X86_64 hardware. Routine 
rtw_pci_read32() where the unhandled fault happens has not been changed since 
kernel 5.2.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Is RTL8822CE with Kernel 6.1 for imx6
  2024-03-21 13:13 Is RTL8822CE with Kernel 6.1 for imx6 施小丰(医用制品产业集团-医用制品集团本部)
  2024-03-21 17:00 ` Larry Finger
@ 2024-03-21 17:34 ` Larry Finger
       [not found]   ` <AGUAKADXHiG7jCbFWYcjOqqy.3.1711649471074.Hmail.shixiaofeng@weigaogroup.com>
  2024-03-22  7:30 ` Ping-Ke Shih
  2 siblings, 1 reply; 9+ messages in thread
From: Larry Finger @ 2024-03-21 17:34 UTC (permalink / raw)
  To: 施小丰(医用制品产业集团-医用制品集团本部),
	linux-wireless

On 3/21/24 08:13, 施小丰(医用制品产业集团-医用制品集团本部) wrote:
> 
> 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:
> 
>  1. imx6 board
>  2. build RTL8822CE as M in kernel 6.1 menuconfig
>  3. 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
> 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

Danny,

Sorry, the previous message was sent too early and incomplete.

The RTL8822CE certainly works with kernel 6.1 on X86_64 hardware. Routine 
rtw_pci_read32() where the unhandled fault happens has not been changed since 
kernel 5.2.

That "imprecise external abort" is ARM specific. I have not yet found the reason 
for it, nor what the value 0x1406 means.

The range of kernels (5.4 to 6.1) is pretty broad. Are there any intermediate 
kernels for you to test?

Larry






^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: Is RTL8822CE with Kernel 6.1 for imx6
  2024-03-21 13:13 Is RTL8822CE with Kernel 6.1 for imx6 施小丰(医用制品产业集团-医用制品集团本部)
  2024-03-21 17:00 ` Larry Finger
  2024-03-21 17:34 ` Larry Finger
@ 2024-03-22  7:30 ` Ping-Ke Shih
       [not found]   ` <AHYA5ACwHqi71yYpWUIbQ4qs.3.1711649408218.Hmail.shixiaofeng@weigaogroup.com>
  2 siblings, 1 reply; 9+ messages in thread
From: Ping-Ke Shih @ 2024-03-22  7:30 UTC (permalink / raw)
  To: 施小丰(医用制品产业集团-医用制品集团本部),
	linux-wireless



From: 施小丰(医用制品产业集团-医用制品集团本部) <shixiaofeng@weigaogroup.com> 
Sent: Thursday, March 21, 2024 9:13 PM
To: linux-wireless <linux-wireless@vger.kernel.org>
Subject: Is RTL8822CE with Kernel 6.1 for imx6

> 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

The rtw_pci_read32() is very simple that just use 'rtwpci->mmap' as address,
so I wonder this exception is caused by NULL of rtwpci->mmap.

But, rtw_pci_io_mapping() has handled the NULL case:

static int rtw_pci_io_mapping(struct rtw_dev *rtwdev,
			      struct pci_dev *pdev)
{
	...

	rtwpci->mmap = pci_iomap(pdev, bar_id, len);
	if (!rtwpci->mmap) {
		pci_release_regions(pdev);
		rtw_err(rtwdev, "failed to map pci memory\n");
		return -ENOMEM;
	}
	...
}

So, did you change something for your board? 

Ping-Ke


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Is RTL8822CE with Kernel 6.1 for imx6
       [not found]   ` <AGUAKADXHiG7jCbFWYcjOqqy.3.1711649471074.Hmail.shixiaofeng@weigaogroup.com>
@ 2024-03-28 21:29     ` Larry Finger
  0 siblings, 0 replies; 9+ messages in thread
From: Larry Finger @ 2024-03-28 21:29 UTC (permalink / raw)
  To: 施小丰(医用制品产业集团-医用制品集团本部)
  Cc: linux-wireless

On 3/28/24 1:11 PM, 施小丰(医用制品产业集团-医用制品集团本部) wrote:
> Hi Larry:
> This week, I tried 5.4,  5.15 and 6.1
> 
> Only 5.4 works for 8822CE module.

Without any error messages, there is little I can do to fix it.

Larry


> 
> 
> 


^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: Is RTL8822CE with Kernel 6.1 for imx6
       [not found]   ` <AHYA5ACwHqi71yYpWUIbQ4qs.3.1711649408218.Hmail.shixiaofeng@weigaogroup.com>
@ 2024-03-29  0:17     ` Ping-Ke Shih
       [not found]     ` <AFkA2ADXHpG7WCaaWed4PapF.3.1711650179911.Hmail.shixiaofeng@weigaogroup.com>
  1 sibling, 0 replies; 9+ messages in thread
From: Ping-Ke Shih @ 2024-03-29  0:17 UTC (permalink / raw)
  To: 施小丰(医用制品产业集团-医用制品集团本部)
  Cc: linux-wireless


(use plain text and no top posting for wireless mailing list)

>  With kernel 5.4, it works fine, but with kernel 6.1, it doesn't work.

If you suspect rtw88 of kernel 6.1 gets wrong, pick it back to kernel 5.4
to see if it works. Or oppositely put old driver to new kernel. 



^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: Is RTL8822CE with Kernel 6.1 for imx6
       [not found]     ` <AFkA2ADXHpG7WCaaWed4PapF.3.1711650179911.Hmail.shixiaofeng@weigaogroup.com>
@ 2024-03-29  0:24       ` Ping-Ke Shih
       [not found]         ` <ABMAEQA-Hji8SdfUpl4fK4pZ.3.1711691249214.Hmail.shixiaofeng@weigaogroup.com>
  0 siblings, 1 reply; 9+ messages in thread
From: Ping-Ke Shih @ 2024-03-29  0:24 UTC (permalink / raw)
  To: 施小丰(医用制品产业集团-医用制品集团本部)
  Cc: linux-wireless


> Shall we try some other firmware for the 8822CE?
> Is it possible that some confliction between 8822CE driver and firmware? 

No. As your log, it has not yet tried to download firmware. 

> [   55.184350] r10: 83c797a0  r9 : 83c7f890  r8 : 00000200
> [   55.189578] r7 : 000003da  r6 : 000003d9  r5 : 7f048418  r4 : 83c797a0
> [   55.196109] r3 : c09200f0  r2 : 00000000  r1 : 000000f0  r0 : 00000000

Since first rtw_pci_read32() from rtw_chip_info_setup() is 
   hal->chip_version = rtw_read32(rtwdev, REG_SYS_CFG1); // REG_SYS_CFG1 is 0xf0

So, I guess r1 is to store arg2 (REG_SYS_CFG1), and r3 is rtwpci->mmap + addr.

> [   55.230013] Register r3 information: 0-page vmalloc region starting at 0xc0920000 allocated at rtw_pci_probe+0x164/0xf1c [rtw88_pci]

But weird. It says that is a vmalloc region. 

I'm not familiar with the trace. Just point out some suspicious points for
reference. 



^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: Is RTL8822CE with Kernel 6.1 for imx6
       [not found]         ` <ABMAEQA-Hji8SdfUpl4fK4pZ.3.1711691249214.Hmail.shixiaofeng@weigaogroup.com>
@ 2024-03-29  5:52           ` Ping-Ke Shih
  2024-03-29  5:53             ` Ping-Ke Shih
  0 siblings, 1 reply; 9+ messages in thread
From: Ping-Ke Shih @ 2024-03-29  5:52 UTC (permalink / raw)
  To: 施小丰(医用制品产业集团-医用制品集团本部)
  Cc: linux-wireless


> So, i would like to check to you, is there any successful case that a 8822CE WIFI module works well with Kernel 6.1?

I suggest you install Ubuntu or other distro on your x86 PC, and update 
(upgrade or downgrade) the kernel to 6.1. Have you tried that?



^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: Is RTL8822CE with Kernel 6.1 for imx6
  2024-03-29  5:52           ` Ping-Ke Shih
@ 2024-03-29  5:53             ` Ping-Ke Shih
  0 siblings, 0 replies; 9+ messages in thread
From: Ping-Ke Shih @ 2024-03-29  5:53 UTC (permalink / raw)
  To: 施小丰(医用制品产业集团-医用制品集团本部)
  Cc: linux-wireless



> > So, i would like to check to you, is there any successful case that a 8822CE WIFI module works well with
> Kernel 6.1?
> 
> I suggest you install Ubuntu or other distro on your x86 PC, and update
> (upgrade or downgrade) the kernel to 6.1. Have you tried that?

By the way, please use plain text mode and no top posting, which is convention 
of this mailing list. 



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-03-29  5:53 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-21 13:13 Is RTL8822CE with Kernel 6.1 for imx6 施小丰(医用制品产业集团-医用制品集团本部)
2024-03-21 17:00 ` Larry Finger
2024-03-21 17:34 ` Larry Finger
     [not found]   ` <AGUAKADXHiG7jCbFWYcjOqqy.3.1711649471074.Hmail.shixiaofeng@weigaogroup.com>
2024-03-28 21:29     ` Larry Finger
2024-03-22  7:30 ` Ping-Ke Shih
     [not found]   ` <AHYA5ACwHqi71yYpWUIbQ4qs.3.1711649408218.Hmail.shixiaofeng@weigaogroup.com>
2024-03-29  0:17     ` Ping-Ke Shih
     [not found]     ` <AFkA2ADXHpG7WCaaWed4PapF.3.1711650179911.Hmail.shixiaofeng@weigaogroup.com>
2024-03-29  0:24       ` Ping-Ke Shih
     [not found]         ` <ABMAEQA-Hji8SdfUpl4fK4pZ.3.1711691249214.Hmail.shixiaofeng@weigaogroup.com>
2024-03-29  5:52           ` Ping-Ke Shih
2024-03-29  5:53             ` Ping-Ke Shih

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.