hello
We are using the IMX8MP core and encountered the following error while continuously recording DP video. I would like to inquire about the cause of the problem or the direction of the investigation.
[93531.847359] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000
[93531.856193] Mem abort info:
[93531.858988] ESR = 0x96000004
[93531.862044] EC = 0x25: DABT (current EL), IL = 32 bits
[93531.867355] SET = 0, FnV = 0
[93531.870409] EA = 0, S1PTW = 0
[93531.873547] Data abort info:
[93531.876426] ISV = 0, ISS = 0x00000004
[93531.880260] CM = 0, WnR = 0
[93531.883230] user pgtable: 4k pages, 48-bit VAs, pgdp=0000000048bf9000
[93531.889669] [0000000000000000] pgd=0000000000000000, p4d=0000000000000000
[93531.896464] Internal error: Oops: 96000004 [#1] PREEMPT SMP
[93531.902036] Modules linked in: tiger_ledctr(O) crct10dif_ce imx8_media_dev(C) flexcan can_dev
[93531.910584] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G WC O 5.10.9-1.0.0+g68232600d8b7 #194
[93531.919801] Hardware name: MYIR i.MX8MP BASE (DT)
[93531.924506] pstate: 60000085 (nZCv daIf -PAN -UAO -TCO BTYPE=--)
[93531.930524] pc : mxc_isi_channel_set_outbuf+0x194/0x200
[93531.935751] lr : mxc_isi_channel_set_outbuf+0x18c/0x200
[93531.940974] sp : ffff800011cabe20
[93531.944287] x29: ffff800011cabe20 x28: ffff800011ab2340
[93531.949602] x27: 0000000000000000 x26: ffff800011575ff8
[93531.954916] x25: ffff0000057a7738 x24: ffff0000057a7748
[93531.960231] x23: ffff000004430810 x22: 0000000000000008
[93531.965545] x21: ffff0000057a7768 x20: ffff000005788680
[93531.970859] x19: ffff0000057a73b0 x18: 0000000000000000
[93531.976172] x17: 0000000000000000 x16: 0000000000000000
[93531.981486] x15: 00006d54d4246770 x14: 000000000000013f
[93531.986800] x13: 0000000000000001 x12: 0000000000000040
[93531.992115] x11: ffff00000606eb58 x10: ffff00000606eb5a
[93531.997431] x9 : ffff800011b31700 x8 : ffff000006000270
[93532.002745] x7 : 0000000000000000 x6 : ffff000006000400
[93532.008059] x5 : ffff000006000248 x4 : 00000000000016c8
[93532.013373] x3 : ffff0000057a6f88 x2 : ffff0000057a73b0
[93532.018686] x1 : 0000000000000000 x0 : 0000000000000000
[93532.024000] Call trace:
[93532.026450] mxc_isi_channel_set_outbuf+0x194/0x200
[93532.031331] mxc_isi_cap_frame_write_done+0xf0/0x1fc
[93532.036296] mxc_isi_irq_handler+0x84/0x90
[93532.040396] __handle_irq_event_percpu+0x54/0x170
[93532.045100] handle_irq_event+0x68/0x150
[93532.049024] handle_fasteoi_irq+0xa4/0x1f4
[93532.053122] __handle_domain_irq+0x7c/0xe0
[93532.057221] gic_handle_irq+0xc0/0x140
[93532.060972] el1_irq+0xc4/0x180
[93532.064118] cpuidle_enter_state+0x12c/0x2f0
[93532.068388] cpuidle_enter+0x38/0x50
[93532.071967] do_idle+0x218/0x2a0
[93532.075196] cpu_startup_entry+0x28/0x70
[93532.079121] rest_init+0xd8/0xe8
[93532.082353] arch_call_rest_init+0x10/0x1c
[93532.086450] start_kernel+0x4bc/0x4f4
[93532.090117] Code: aa1303e0 97fcc3ae 910ee275 b9401661 (f9400000)
[93532.096213] ---[ end trace 425f6fdbc9117ec8 ]---
[93532.100832] Kernel panic - not syncing: Oops: Fatal exception in interrupt
[93532.107706] SMP: stopping secondary CPUs
[93532.111935] Kernel Offset: disabled
[93532.115424] CPU features: 0x0240002,2000200c
[93532.119691] Memory Limit: none
[93532.122754] ---[ end Kernel panic - not syncing: Oops: Fatal exception in interrupt ]---
Hi
Referring the crash log, the buffer address used in mxc_isi_channel_set_outbuf is NULL. Which version you are using? Can you try it with latest kernel?
Best Regards
Zhiming
可能是这个版本的驱动问题,也可能是操作问题,你先试试升级内核。