This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[DM8168] When run program, get kernel panic message, how to fix it

Other Parts Discussed in Thread: TVP7002

Hi all

   When i run my program, got the following meesage from console, how to fix the problem.

  

[m3video] ENCLINK:HEAPID:0 USED:29968
[m3video] ENCLINK:HEAPID:2 USED:16588800
[m3video] ENCLINK:HEAPID:3 USED:14352384
[m3video] 28589: ENCODE: Create ... DONE !!!
[m3video] 28589: IPC_BITS_OUT : Create in progress !!!
[m3video] 28591: IPC_BITS_OUT : Create Done !!!

[host] Get 1 Alg buffer
Kernel panic - not syncing: Attempted to kill init!
Backtrace:
[<c004efac>] (dump_backtrace+0x0/0x110) from [<c03b438c>] (dump_stack+0x18/0x1c)
r6:ce428000 r5:0000000b r4:c055e698 r3:60000113
[<c03b4374>] (dump_stack+0x0/0x1c) from [<c03b43ec>] (panic+0x5c/0x178)
[<c03b4390>] (panic+0x0/0x178) from [<c00777e8>] (do_exit+0x68/0x5d0)
r3:c0527664 r2:ce42be00 r1:00000001 r0:c048f722
r7:ce42c000
[<c0077780>] (do_exit+0x0/0x5d0) from [<c0078000>] (do_group_exit+0x84/0xb4)
r7:ce42c000
[<c0077f7c>] (do_group_exit+0x0/0xb4) from [<c0081e68>] (get_signal_to_deliver+0x2b8/0x2ec)
r4:00106001 r3:80000113
[<c0081bb0>] (get_signal_to_deliver+0x0/0x2ec) from [<c004dfd8>] (do_signal+0x58/0x5dc)
[<c004df80>] (do_signal+0x0/0x5dc) from [<c004eb00>] (do_notify_resume+0x20/0x64)
[<c004eae0>] (do_notify_resume+0x0/0x64) from [<c004b418>] (work_pending+0x24/0x28)
r4:ffffffff r3:00000000

  • Hello,

    What is the software release that you are using here?

    Best Regards,

    Margarita

  • I use dvrrdk_4.1.   when the ipcbitsinhost link get data , then report the error.

  • Are you passing any buffer other than allocated from SR1 to ipcBitsInLink ? If you just get the buffer from ipcBitsInLink and free it back without processing so you still see hang ?

    Can you print the siginfo.It may give some additional info. It looks like invalid memory access but but weirdly doesn't cause page fault.

    kernel/signal.c

    get_signal_to_deliver

    add

     print_fatal_signal(info->si_signo);

    before call to

     do_group_exit(info->si_signo);

  • The problem just occur one time. so i can got anymore information now.

      But i find another problem, seems still have bug in dvrrdk4.1.  

      I write a custom demo my self with cap, enc, dis.   type 'e' can exit the demo.  

       I stop the demo, If i wait sevaral seconds, then restart the demo,. do stop,wait, restart several times. everything is ok.

       buf if i restart the demo immediately, 3 or 4 times later, the demo will report exception. 

     

       

  • What is the exception reported. Share the console logs

  • [m3vpss ] Unhandled Exception:
    [m3vpss ] Exception occurred in ThreadType_Task
    [m3vpss ] handle: 0x3b0b5a18.
    [m3vpss ] stack base: 0x3b14b980.
    [m3vpss ] stack size: 0x8000.
    [m3vpss ] R0 = 0x4802a000 R8 = 0x9a05ae4c
    [m3vpss ] R1 = 0x00000050 R9 = 0x3b153790
    [m3vpss ] R2 = 0x00001388 R10 = 0x000392d0
    [m3vpss ] R3 = 0x00000001 R11 = 0x00000001
    [m3vpss ] R4 = 0x9a05adfc R12 = 0x3b1536c0
    [m3vpss ] R5 = 0x3b1c0138 SP(R13) = 0x3b153758
    [m3vpss ] R6 = 0x0000ffff LR(R14) = 0x99dbbceb
    [m3vpss ] R7 = 0x00000021 PC(R15) = 0x99e13aba
    [m3vpss ] PSR = 0x01000000
    [m3vpss ] ICSR = 0x00400803
    [m3vpss ] MMFSR = 0x00
    [m3vpss ] BFSR = 0x04
    [m3vpss ] UFSR = 0x0000
    [m3vpss ] HFSR = 0x40000000
    [m3vpss ] DFSR = 0x00000000
    [m3vpss ] MMAR = 0xe000ed34
    [m3vpss ] BFAR = 0xe000ed38
    [m3vpss ] AFSR = 0x00000000
    [m3vpss ] Terminating Execution...

  • Share full console logs. Also get the CCS CRASH DUMP file and attach your .xem3 for m3vpss.

  • =========
    Main Menu
    =========

    1: FILE + VENC + ALG + VDIS - 1Ch Read 1080P YUV file,Encode + DSP Alg + Display
    2: FILE + VENC + ALG + VDIS - 2Ch Read 1080P YUV file,Encode + DSP Alg + Display
    3: VCAP + VENC + ALG + VDIS -1Ch Cap + Encode + DSP Alg + Display
    4: VCAP + VENC + ALG + VDIS -2Ch Cap + Encode + DSP Alg + Display
    5: VCAP + VENC + VDIS - SD Encode ONLY
    6: VCAP + VDIS - HD Encode ONLY

    e: Exit

    Enter Choice: 6
    --------------- CHANNEL DETAILS-------------
    Capture Channels => 16
    Disp Channels => 16
    -------------------------------------------
    0: SYSTEM: System Common Init in progress !!!
    0: SYSTEM: IPC init in progress !!!
    11: SYSTEM: CPU [DSP] syslink proc ID is [0] !!!
    11: SYSTEM: CPU [VIDEO-M3] syslink proc ID is [1] !!!
    11: SYSTEM: CPU [VPSS-M3] syslink proc ID is [2] !!!
    11: SYSTEM: CPU [HOST] syslink proc ID is [3] !!!
    12: SYSTEM: Creating MsgQ Heap [IPC_MSGQ_MSG_HEAP_3] ...
    14: SYSTEM: Creating MsgQ [HOST_MSGQ] ...
    16: SYSTEM: Creating MsgQ [HOST_ACK_MSGQ] ...
    18: SYSTEM: Opening MsgQ [DSP_MSGQ] ...
    18: SYSTEM: Opening MsgQ [VIDEO-M3_MSGQ] ...
    19: SYSTEM: Opening MsgQ [VPSS-M3_MSGQ] ...
    19: SYSTEM: Notify register to [DSP] line 0, event 15 ...
    20: SYSTEM: Notify register to [VIDEO-M3] line 0, event 15 ...
    21: SYSTEM: Notify register to [VPSS-M3] line 0, event 15 ...
    21: SYSTEM: IPC init DONE !!!
    23: SYSTEM: Creating ListMP [HOST_IPC_OUT_24] in region 0 ...
    25: SYSTEM: Creating ListMP [HOST_IPC_IN_24] in region 0 ...
    26: SYSTEM: ListElem Shared Addr = 0x406c2680
    27: SYSTEM: Creating ListMP [HOST_IPC_OUT_25] in region 0 ...
    29: SYSTEM: Creating ListMP [HOST_IPC_IN_25] in region 0 ...
    31: SYSTEM: ListElem Shared Addr = 0x406f9480
    32: SYSTEM: Creating ListMP [HOST_IPC_OUT_19] in region 0 ...
    35: SYSTEM: Creating ListMP [HOST_IPC_IN_19] in region 0 ...
    36: SYSTEM: ListElem Shared Addr = 0x40730280
    37: SYSTEM: Creating ListMP [HOST_IPC_OUT_20] in region 0 ...
    39: SYSTEM: Creating ListMP [HOST_IPC_IN_20] in region 0 ...
    41: SYSTEM: ListElem Shared Addr = 0x40773580
    42: SYSTEM: Creating ListMP [HOST_IPC_OUT_21] in region 0 ...
    44: SYSTEM: Creating ListMP [HOST_IPC_IN_21] in region 0 ...
    46: SYSTEM: ListElem Shared Addr = 0x407b6880
    62: SYSTEM: System Common Init Done !!!
    omap_i2c omap_i2c.2: controller timed out
    [host] HDMI Ctrl :Initializing
    [HOST]
    ThreadName:Vdis_hdmiControlThread_0,ThreadID:649
    [host] HDMI Ctrl :Initialized
    [host] HDMI Ctrl :Sink Connected
    [FBDEV]
    [FBDEV] FB: Starting !!!
    [FBDEV] ERROR: FB: Could not open device [/dev/fb0] !!!
    1066: MCFW : CPU Revision [ES2.0] !!!
    [m3vpss ] 8602: CAPTURE: Create in progress !!!
    [m3vpss ] 8632: CAPTURE: VIP0 PortA capture mode is [16-bit, Non-mux Embedded Sync] !!!
    [m3vpss ] Vps_captAllocPath passed
    [m3vpss ] Vps_captCreateChObj passed
    [m3vpss ] Vps_captCreateVip passed
    [m3vpss ] Vps_captCreateQueues passed
    [m3vpss ] Vps_captSubFrameInitArgs passed
    [m3vpss ] Vps_captInitTimeStamp passed
    [m3vpss ] EricDebug:pInst->createStatus.retVal = 0
    [m3vpss ] EricDebug: will get Vps_platformSelectVideoDecoder
    [m3vpss ] Unhandled Exception:
    [m3vpss ] Exception occurred in ThreadType_Task
    [m3vpss ] handle: 0x3b0b5a18.
    [m3vpss ] stack base: 0x3b14b980.
    [m3vpss ] stack size: 0x8000.
    [m3vpss ] R0 = 0x4802a000 R8 = 0x9a05ae4c
    [m3vpss ] R1 = 0x00000050 R9 = 0x3b153790
    [m3vpss ] R2 = 0x00001388 R10 = 0x000392f0
    [m3vpss ] R3 = 0x00000001 R11 = 0x3a85c30c
    [m3vpss ] R4 = 0x9a05adfc R12 = 0x3b1536c0
    [m3vpss ] R5 = 0x3b1c0138 SP(R13) = 0x3b153758
    [m3vpss ] R6 = 0x0000ffff LR(R14) = 0x99dbbceb
    [m3vpss ] R7 = 0x00000021 PC(R15) = 0x99e13aba
    [m3vpss ] PSR = 0x01000000
    [m3vpss ] ICSR = 0x00400803
    [m3vpss ] MMFSR = 0x00
    [m3vpss ] BFSR = 0x04
    [m3vpss ] UFSR = 0x0000
    [m3vpss ] HFSR = 0x40000000
    [m3vpss ] DFSR = 0x00000000
    [m3vpss ] MMAR = 0xe000ed34
    [m3vpss ] BFAR = 0xe000ed38
    [m3vpss ] AFSR = 0x00000000
    [m3vpss ] Terminating Execution...

    The .xem3 file is in a  development computer, I don't have competence to copy data from that computer.

  • This looks like issue with TVP7002 configuration from M3. As mentioned before do the configuration from A8 and don't configure external video decoder from M3.