AM5726: am5726 linux prueth oops on boot

Part Number: AM5726

Hi, Experts

The SDK version we are using is 09_02_00_311, and the kernel version is 6.1.119. We have configured PRU2's prueth to be used as two independent network interface in Linux.

During boot, an oops occurred, and after the system starts, the network cannot be pinged. Below is the oops information. What could be the possible cause?

[   24.759216] 8<--- cut here ---
[   24.762359] Unable to handle kernel paging request at virtual address f12fe020
[   24.769775] [f12fe020] *pgd=80000080007003, *pmd=82b1d003, *pte=00000000
[   24.776672] Internal error: Oops: 207 [#1] PREEMPT SMP ARM
[   24.782226] Modules linked in: esp32_spi(O)
[   24.786529] CPU: 1 PID: 600 Comm: irq/163-eth2 Tainted: G           O       6.1.119-rt45 #1
[   24.795013] Hardware name: Generic DRA74X (Flattened Device Tree)
[   24.801177] PC is at mmiocpy+0xec/0x334
[   24.805114] LR is at emac_rx_packet+0x178/0x548
[   24.809753] pc : [<c0bad2ec>]    lr : [<c07ebd24>]    psr: 60000113
[   24.816101] sp : c4069e58  ip : 00000002  fp : c4069e58
[   24.821441] r10: c2e1bc40  r9 : 0000006f  r8 : c1dfc800
[   24.826721] r7 : c1dfcd80  r6 : c449fb40  r5 : c4069f00  r4 : 0000006f
[   24.833374] r3 : c44b6242  r2 : 0000006b  r1 : f12fe020  r0 : c44b6242
[   24.839965] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[   24.847198] Control: 30c5387d  Table: 83fee0c0  DAC: 55555555
[   24.853057] Register r0 information: slab kmalloc-512 start c44b6200 pointer offset 66 size 512
[   24.861877] Register r1 information: vmalloc memory
[   24.866851] Register r2 information: non-paged memory
[   24.871978] Register r3 information: slab kmalloc-512 start c44b6200 pointer offset 66 size 512
[   24.880828] Register r4 information: non-paged memory
[   24.885986] Register r5 information: non-slab/vmalloc memory
[   24.891723] Register r6 information: slab skbuff_head_cache start c449fb40 pointer offset 0 size 48
[   24.900939] Register r7 information: slab kmalloc-cg-2k start c1dfc800 pointer offset 1408 size 2048
[   24.910217] Register r8 information: slab kmalloc-cg-2k start c1dfc800 pointer offset 0 size 2048
[   24.919189] Register r9 information: non-paged memory
[   24.924346] Register r10 information: slab kmalloc-512 start c2e1bc00 pointer offset 64 size 512
[   24.933288] Register r11 information: non-slab/vmalloc memory
[   24.939117] Register r12 information: non-paged memory
[   24.944366] Process irq/163-eth2 (pid: 600, stack limit = 0xd05702d3)
[   24.950897] Stack: (0xc4069e58 to 0xc406a000)
[   24.955352] 9e40:                                                       c44b6242 0000006f
[   24.963623] 9e60: f12fe020 c07ebd24 c378db4c 00000001 000000c2 fffffe3f c0c8cdfc 00000000
[   24.971923] 9e80: f1300000 00000001 0000006f 00000000 00000000 c44b6240 eea429b0 c3ec7180
[   24.980224] 9ea0: eea42980 c0e66858 c4069f3c 1294e2c3 eea42940 f0230004 00000014 00000004
[   24.988494] 9ec0: 00000000 c2e1bc40 c1dfcd80 f0231c90 c1dfc800 c07ec250 f0230000 00000000
[   24.996795] 9ee0: c0c8cdfc 00000001 c1dfd580 00000001 00000000 c0c8d224 00000000 08340000
[   25.005126] 9f00: c0be0000 00000001 0000006f 00000000 00000000 1294e2c3 c4069f4c c4097e80
[   25.013427] 9f20: c3ec0000 c2dfe000 00000001 c2dfe000 c4097e80 c0299618 c12064b0 c0299634
[   25.021697] 9f40: 00000000 c3ec0000 c4097ea4 c0299a14 c133103c c0dba5ec 00000000 c0299418
[   25.029998] 9f60: 00000000 1294e2c3 c4069f7c c3ec0000 c4097fc0 c0299860 c4097e80 c3f4a000
[   25.038299] 9f80: c3c8fcb4 00000000 00000000 c02560c0 c4097fc0 c0255fd4 00000000 00000000
[   25.046600] 9fa0: 00000000 00000000 00000000 c020021c 00000000 00000000 00000000 00000000
[   25.054870] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   25.063171] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[   25.071502]  mmiocpy from emac_rx_packet+0x178/0x548
[   25.076538]  emac_rx_packet from emac_rx_thread+0x15c/0x248
[   25.082244]  emac_rx_thread from irq_thread_fn+0x1c/0x7c
[   25.087646]  irq_thread_fn from irq_thread+0x1b4/0x290
[   25.092895]  irq_thread from kthread+0xec/0x11c
[   25.097503]  kthread from ret_from_fork+0x14/0x38
[   25.102294] Exception stack(0xc4069fb0 to 0xc4069ff8)
[   25.107452] 9fa0:                                     00000000 00000000 00000000 00000000
[   25.115753] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   25.124023] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[   25.130767] Code: e8bd8811 e26cc004 e35c0002 c4d13001 (a4d14001) 
[   25.137084] ---[ end trace 0000000000000000 ]---