Hi all,
It hard to reproduce.
While we run the tidl a while , sometimes kernel panic happened!!!
Our kernel version is 5.10.120, j721s2(08.04.00)
Do you know what cause this problem??
The message as follow .
==================first time ========================
=========================
Demo : Camera Demo
=========================
s: Save CSIx, VISS and LDC outputs
p: Print performance statistics
x: Exit
Enter Choice: [ 60.849899] Unable to handle kernel paging request at virtual address ffff400840040038
[ 60.855218] Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: __schedule+0x70c/0x710
[ 60.857813] Mem abort info:
[ 60.867699] SMP: stopping secondary CPUs
[ 60.870477] ESR = 0x96000005
[ 60.877422] EC = 0x25: DABT (current EL), IL = 32 bits
[ 60.882718] SET = 0, FnV = 0
[ 60.885758] EA = 0, S1PTW = 0
[ 60.888885] Data abort info:
[ 60.891751] ISV = 0, ISS = 0x00000005
[ 60.895571] CM = 0, WnR = 0
[ 60.898526] swapper pgtable: 64k pages, 48-bit VAs, pgdp=0000000082f50000
[ 60.905293] [ffff400840040038] pgd=0000000000000000, p4d=0000000000000000, pud=0000000000000000
[ 60.913974] Internal error: Oops: 96000005 [#1] PREEMPT SMP
[ 60.919529] Modules linked in: bluetooth ecdh_generic ecc rfkill xhci_plat_hcd xhci_hcd cdns3 udc_core roles rpmsg_char usbcore usb_common crct10dif_ce pvrsrvkm(O) phy_can_transceiver cdns_mhdp8546 ti_k3_r5_remoteproc ti_k3_dsp_remoteproc virtio_rpmsg_bus wave5(C) sa2ul v4l2_mem2mem videobuf2_dma_contig videobuf2_memops cdns_dsi sha512_generic videobuf2_v4l2 authenc videobuf2_common m_can_platform m_can cdns_dphy cdns3_ti can_dev sch_fq_codel rpmsg_kdrv_switch ipv6
[ 60.960680] CPU: 0 PID: 983 Comm: vx_app_otobrite Tainted: G C O 5.10.120-g95b90aa828 #1
[ 60.969874] Hardware name: Texas Instruments J721S2 EVM (DT)
[ 60.975517] pstate: 60000085 (nZCv daIf -PAN -UAO -TCO BTYPE=--)
[ 60.981511] pc : select_task_rq_fair+0x170/0xf80
[ 60.986113] lr : select_task_rq_fair+0x114/0xf80
[ 60.990712] sp : ffff800015b2fa70
[ 60.994011] x29: ffff800015b2fa70 x28: 0000000000000000
[ 60.999307] x27: 0000000000000000 x26: 0000000000000000
[ 61.004603] x25: 0000000000000000 x24: 0000000000000000
[ 61.009899] x23: ffff400840040000 x22: ffff800011173c50
[ 61.015194] x21: ffff000846b9e000 x20: ffff000846326200
[ 61.020490] x19: 0000000000000008 x18: 0000000000000000
[ 61.025787] x17: 0000000000000000 x16: 0000000000000000
[ 61.031082] x15: 0000000000000000 x14: 0000000000000000
[ 61.036376] x13: 0000000000000000 x12: 0000000000000000
[ 61.041673] x11: 0000000000000000 x10: ffff00084152d100
[ 61.046968] x9 : 0000000000000000 x8 : 0000000000000000
[ 61.052263] x7 : ffff000846e70e00 x6 : ffff0008401aa4e8
[ 61.057557] x5 : 00000000ffff165e x4 : 0000000000000017
[ 61.062853] x3 : 0000000000000001 x2 : 0000000000000000
[ 61.068147] x1 : ffff80096ee10000 x0 : ffff00097fe0b0c0
[ 61.073443] Call trace:
[ 61.075878] select_task_rq_fair+0x170/0xf80
[ 61.080136] try_to_wake_up+0xf4/0x4e0
[ 61.083870] wake_up_state+0x14/0x20
[ 61.087432] signal_wake_up_state+0x5c/0x70
[ 61.091602] zap_process+0x88/0xd8
[ 61.094990] do_coredump+0x1e4/0x1318
[ 61.098638] get_signal+0x398/0x698
[ 61.102114] do_notify_resume+0x240/0x6f8
[ 61.106108] work_pending+0xc/0x618
[ 61.109585] Code: 6a00027f 9a97039c f94002f7 b4000117 (b9403ae0)
[ 61.115662] ---[ end trace a696979eca810aac ]---
[ 61.120263] note: vx_app_otobrite[983] exited with preempt_count 3
[ 61.941884] SMP: failed to stop secondary CPUs 0-1
[ 61.946662] Kernel Offset: disabled
[ 61.950137] CPU features: 0x8040022,20006008
[ 61.954390] Memory Limit: none
[ 61.957435] ---[ end Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: __schedule+0x70c/0x710 ]---
==================== second times =================================
another kernel panic !!!!!
[MPU1_0] 567.875921 s: | I | default | [algResultProc_BSIS]127 - LED_Warning=0, LED_Information=0
[ 561.787403] Unable to handle kernel paging request at virtual address fffff8097fe29750
[ 561.788999] Unable to handle kernel paging request at virtual address ffff8c00100b90f0
[ 561.795306] Mem abort info:
[ 561.803197] Mem abort info:
[ 561.805976] ESR = 0x96000006
[ 561.808755] ESR = 0x86000005
[ 561.811794] EC = 0x25: DABT (current EL), IL = 32 bits
[ 561.814834] EC = 0x21: IABT (current EL), IL = 32 bits
[ 561.820126] SET = 0, FnV = 0
[ 561.825417] SET = 0, FnV = 0
[ 561.828456] EA = 0, S1PTW = 0
[ 561.831495] EA = 0, S1PTW = 0
[ 561.834620] Data abort info:
[ 561.837746] swapper pgtable: 64k pages, 48-bit VAs, pgdp=0000000082f50000
[ 561.840611] ISV = 0, ISS = 0x00000006
[ 561.847376] [ffff8c00100b90f0] pgd=0000000000000000
[ 561.851194] CM = 0, WnR = 0
[ 561.851196] , p4d=0000000000000000
[ 561.856055] swapper pgtable: 64k pages, 48-bit VAs, pgdp=0000000082f50000
[ 561.859005] , pud=0000000000000000
[ 561.862392] [fffff8097fe29750] pgd=00000008c11e0003
[ 561.869157]
[ 561.872543] , p4d=00000008c11e0003
[ 561.877402] Internal error: Oops: 86000005 [#1] PREEMPT SMP
[ 561.878878] , pud=00000008c11e0003, pmd=0000000000000000
[ 561.882266] Modules linked in:
[ 561.887819]
[ 561.893112] xt_conntrack xt_MASQUERADE xt_addrtype iptable_filter iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c ip_tables x_tables bridge stp llc overlay xfrm_user xfrm_algo bluetooth ecdh_generic ecc rfkill xhci_plat_hcd xhci_hcd cdns3 rpmsg_char udc_core roles usbcore usb_common crct10dif_ce phy_can_transceiver ti_k3_r5_remoteproc wave5(C) cdns_mhdp8546 pvrsrvkm(O) v4l2_mem2mem videobuf2_dma_contig videobuf2_memops videobuf2_v4l2 videobuf2_common sa2ul m_can_platform ti_k3_dsp_remoteproc virtio_rpmsg_bus m_can sha512_generic cdns_dsi authenc can_dev cdns_dphy cdns3_ti sch_fq_codel rpmsg_kdrv_switch ipv6
[ 561.953540] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G C O 5.10.120-g95b90aa828 #1
[ 561.962041] Hardware name: Texas Instruments J721S2 EVM (DT)
[ 561.967683] pstate: a0000085 (NzCv daIf -PAN -UAO -TCO BTYPE=--)
[ 561.973673] pc : 0xffff8c00100b90f0
[ 561.977157] lr : generic_handle_irq+0x30/0x48
[ 561.981497] sp : ffff8000113aff90
[ 561.984797] x29: ffff8000113aff90 x28: ffff80001117b980
[ 561.990093] x27: 00000000ffee0504 x26: ffff8000113b0000
[ 561.995390] x25: ffff8000113a0000 x24: 00000000000000e0
[ 562.000686] x23: 0000000000000001 x22: 0000000000000000
[ 562.005982] x21: 0000000000000000 x20: ffff800010ff9bb0
[ 562.011278] x19: 000000000000001c x18: 0000000000000000
[ 562.016574] x17: 0000000000000000 x16: 0000000000000000
[ 562.021870] x15: 0000ffffa771e8d0 x14: 0000000000000221
[ 562.027166] x13: 0000000000000000 x12: 0000000000000001
[ 562.032463] x11: 0000000000000040 x10: ffff8000111fa450
[ 562.037759] x9 : ffff8000111fa448 x8 : ffff000880000270
[ 562.043055] x7 : 0000000000000000 x6 : 0000000000000000
[ 562.048350] x5 : ffff000880000248 x4 : ffff000880000350
[ 562.053647] x3 : 0000000000000000 x2 : 0000000000010001
[ 562.058942] x1 : ffff8c00100b90f0 x0 : ffff00084004a800
[ 562.064239] Call trace:
[ 562.066674] 0xffff8c00100b90f0
[ 562.069802] __handle_domain_irq+0x64/0xc0
[ 562.073886] gic_handle_irq+0x58/0x128
[ 562.077622] el1_irq+0xcc/0x180
[ 562.080753] arch_cpu_idle+0x18/0x28
[ 562.084314] default_idle_call+0x20/0x68
[ 562.088222] do_idle+0xc0/0x128
[ 562.091350] cpu_startup_entry+0x28/0x60
[ 562.095257] rest_init+0xd4/0xe4
[ 562.098474] arch_call_rest_init+0x10/0x1c
[ 562.102556] start_kernel+0x478/0x4b0
[ 562.106205] Code: bad PC value
[ 562.109252] ---[ end trace 7a7e81a335a44f80 ]---
[ 562.113854] Kernel panic - not syncing: Oops: Fatal exception in interrupt
[ 562.120709] SMP: stopping secondary CPUs
[ 563.192117] SMP: failed to stop secondary CPUs 0-1
[ 563.196894] Kernel Offset: disabled
[ 563.200368] CPU features: 0x8040022,20006008
[ 563.204622] Memory Limit: none
[ 563.207665] ---[ end Kernel panic - not syncing: Oops: Fatal exception in interrupt ]---
pvrsrvkm is gpu driver
wave5 is staging media driver
Do you know what is the root cause of kernel panic?
[ 561.953540] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G C O 5.10.120-g95b90aa828 #1
[ 60.960680] CPU: 0 PID: 983 Comm: vx_app_otobrite Tainted: G C O 5.10.120-g95b90aa828 #1
wave5(C)
pvrsrvkm(O)