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.

8168 multi instance of OMX.TI.VPSSM3.VFPC.INDTXSCWB

I'm developing NVR solution on 8168 platform.

I use "ti-ezsdk_dm816x-evm_5_05_02_00" SDK.

My base code is "decode_mosaicdisplay" which can 4 decode and display h264 file at the same-time.

 

I need 16 decode & display by mosaicdisplay, I modify max decoder 4->8... It was successful.

But I set max decoder to 9... program go to hang. on

"eError = OMX_GetHandle(&pAppData->pScHandle[i], (OMX_STRING)"OMX.TI.VPSSM3.VFPC.INDTXSCWB",

                pAppData->scILComp[i], &pAppData->pCbScaler)"

on the log.. OMX_GetHandle can make 8 instance. but over 8.. it goes to hang.

What is maximun instance of "OMX_GetHandle(OMX.TI.VPSSM3.VFPC.INDTXSCWB)" on 8169?

And How can I do ?

 

 

 

  • Hello,

    I will check .

    Could you attach the full debug log.

    (./loggerSMDump.out 0x9e400000 0x100000 all)

    Best Regards,

    Margarita

  • Gashova.

    I attached the full log... 

    at the end of log file.. you can see the "FATAL ERROR: ErrorCode:0x1. Unhandled Exception"

    Best Regards

    Larry C.H Lee

    ===============================================

    N:VPSS  P:2 #:01986 T:00000002e56f03f7 M:xdc.runtime.Main S:Calling RcmServer_addSymbol(OmxRpcTunnelRequest)

    N:VPSS  P:2 #:01987 T:00000002e56f8147 M:xdc.runtime.Main S:Module<ti.omx> @<omxrpc_rcm_server_start> @line<256> msg<Before RcmServer_start>

    N:VPSS  P:2 #:01988 T:00000002e57032c1 M:xdc.runtime.Main S:Module<ti.omx> @<omxrpc_rcm_server_start> @line<258> msg<After RcmServer_start>

    N:VPSS  P:2 #:01989 T:00000002e570a957 M:xdc.runtime.Main S:Instance Register with omxRpc Module.Cnt = 9

    N:VPSS  P:2 #:01990 T:00000002e57100bd M:xdc.runtime.Main S:L_create: OmxRpc create: Component:OMX.TI.VPSSM3.VFPC.INDTXSCWB, Layer:2

    N:VPSS  P:2 #:01991 T:00000002e5717b5b M:xdc.runtime.Main S:Component OMX.TI.VPSSM3.VFPC.INDTXSCWB In table OMX.TI.VPSSM3.VFCC idx 0

    N:VPSS  P:2 #:01992 T:00000002e571eaa9 M:xdc.runtime.Main S:Component OMX.TI.VPSSM3.VFPC.INDTXSCWB In table OMX.TI.VPSSM3.VFDC idx 1

    N:VPSS  P:2 #:01993 T:00000002e57253bb M:xdc.runtime.Main S:Component OMX.TI.VPSSM3.VFPC.INDTXSCWB In table OMX.TI.VPSSM3.VFPC.DEIHDUALOUT idx 2

    N:VPSS  P:2 #:01994 T:00000002e572c71b M:xdc.runtime.Main S:Component OMX.TI.VPSSM3.VFPC.INDTXSCWB In table OMX.TI.VPSSM3.VFPC.DEIMDUALOUT idx 3

    N:VPSS  P:2 #:01995 T:00000002e5736391 M:xdc.runtime.Main S:Component OMX.TI.VPSSM3.VFPC.INDTXSCWB In table OMX.TI.VPSSM3.VFPC.NF idx 4

    N:VPSS  P:2 #:01996 T:00000002e573d245 M:xdc.runtime.Main S:Component OMX.TI.VPSSM3.VFPC.INDTXSCWB In table OMX.TI.VPSSM3.VFPC.INDTXSCWB idx 5

    N:VPSS  P:2 #:01997 T:00000002e5744e21 M:xdc.runtime.Main S:Component OMX.TI.VPSSM3.VFPC.INDTXSCWB found idx: 5

    N:VPSS  P:2 #:01998 T:00000002e574caf1 M:xdc.runtime.Main S:In OMX_GetHandle, component OMX.TI.VPSSM3.VFPC.INDTXSCWB, omxhandle 0x9f3a4b80

    N:VPSS  P:2 #:01999 T:00000002e57829cb M:xdc.runtime.Main S: OMX Error in OMX_TI_VFPC_ComponentInit :: line 269

    N:VPSS  P:2 #:02000 T:00000002e57890dd M:xdc.runtime.Main S:VFPC Component Initialization Failed...!

    N:VPSS  P:2 #:02001 T:00000002e57cdddb M:xdc.runtime.Main S:FATAL ERROR: ErrorCode:0x1. Unhandled Exception:

    N:VPSS  P:2 #:02002 T:00000002e57d3e77 M:xdc.runtime.Main S:Exception occurred in ThreadType_Task

    N:VPSS  P:2 #:02003 T:00000002e57d8f89 M:xdc.runtime.Main S:handle: 0x9f244618.

    N:VPSS  P:2 #:02004 T:00000002e57ddb33 M:xdc.runtime.Main S:stack base: 0x9f244660.

    N:VPSS  P:2 #:02005 T:00000002e57e275b M:xdc.runtime.Main S:stack size: 0x2000.

    N:VPSS  P:2 #:02006 T:00000002e57e7301 M:xdc.runtime.Main S:R0 = 0x9f3a4b80  R8  = 0x9f22d8d4

    N:VPSS  P:2 #:02007 T:00000002e57ec88f M:xdc.runtime.Main S:R1 = 0x00000000  R9  = 0x9f5e8440

    N:VPSS  P:2 #:02008 T:00000002e57f1e65 M:xdc.runtime.Main S:R2 = 0x9f5e833f  R10 = 0x9f679174

    N:VPSS  P:2 #:02009 T:00000002e57f7453 M:xdc.runtime.Main S:R3 = 0x9f66fa14  R11 = 0x9f5e83ac

    N:VPSS  P:2 #:02010 T:00000002e57fcb9b M:xdc.runtime.Main S:R4 = 0x9f22d8d8  R12 = 0x9f2363de

    N:VPSS  P:2 #:02011 T:00000002e580201b M:xdc.runtime.Main S:R5 = 0x80001000  SP(R13) = 0x9f246368

    N:VPSS  P:2 #:02012 T:00000002e5807939 M:xdc.runtime.Main S:R6 = 0x9f3a4b80  LR(R14) = 0x9f5e8345

    N:VPSS  P:2 #:02013 T:00000002e580d083 M:xdc.runtime.Main S:R7 = 0x9f3a4b80  PC(R15) = 0x00000000

    N:VPSS  P:2 #:02014 T:00000002e5812853 M:xdc.runtime.Main S:PSR = 0x20000000

    N:VPSS  P:2 #:02015 T:00000002e5817169 M:xdc.runtime.Main S:ICSR = 0x0440f803

    N:VPSS  P:2 #:02016 T:00000002e581baa9 M:xdc.runtime.Main S:MMFSR = 0x00

    N:VPSS  P:2 #:02017 T:00000002e5820191 M:xdc.runtime.Main S:BFSR = 0x00

    N:VPSS  P:2 #:02018 T:00000002e58247a9 M:xdc.runtime.Main S:UFSR = 0x0002

    N:VPSS  P:2 #:02019 T:00000002e5828d65 M:xdc.runtime.Main S:HFSR = 0x40000000

    N:VPSS  P:2 #:02020 T:00000002e582d815 M:xdc.runtime.Main S:DFSR = 0x00000000

    N:VPSS  P:2 #:02021 T:00000002e58320e3 M:xdc.runtime.Main S:MMAR = 0xe000ed34

    N:VPSS  P:2 #:02022 T:00000002e5836fa3 M:xdc.runtime.Main S:BFAR = 0xe000ed38

    N:VPSS  P:2 #:02023 T:00000002e583b96d M:xdc.runtime.Main S:AFSR = 0x00000000

    N:VPSS  P:2 #:02024 T:00000002e5840293 M:xdc.runtime.Main S:FATAL ERROR: ErrorCode:0x1. Terminating Execution...

  • Hello,

    Could you attach it again. I do not see any attachment in the post, please.

    Best Regards,

    Margarita

  • Hello,

    Could you share the code for 8 decodes which is working here or on my email : mgashova@ti.com.

    We are checking it. 

    Best Regards,

    Margarita

  • Dear..

    I sent source code for 9 mosaic display to your email.

    I extend memory 

    IPC_SR_FRAME_BUFFERS = 188M + 64M, 

    VPSS_M3_INT_HEAP_CACHED = 27M + 32M

    VIDEO_M3_INT_HEAP_CACHED = 100M 

    by memsegdef_default.c also bootarg on booing.. "

    console=ttyO2,115200n8 mem=264M mem=256M@0x9FC00000 vmalloc=400M notifyk.vpssm3_sva=0xBF900000 vram=50M"

     

    source code is only run 720p FB mode and 720p H264 contents.

    I set 720p FB ...

    modprobe vpss sbufaddr=0xBFB00000 mode=hdmi:720p-60,dvo2:720p-60,hdcomp:

    modprobe ti81xxfb vram=0:24M,1:16M,2:6M                                 

    fbset -depth 32 -rgba 8/16,8/8,8/0,0/0

     

    Best Regards

    Larry.

     


  • Hello,

    It seems that the memory is not available for 9th scalar instance.

    This error is for not able to allocate memory from heap.

    Best Regards,

    Margarita

  • Dear..

    Which memory are not enough?

    I enlarge.. 

    IPC_SR_FRAME_BUFFERS, 

    VPSS_M3_INT_HEAP_CACHED, 

    VIDEO_M3_INT_HEAP_CACHED

     

    Best Regards

    Larry

  • Hello,

    We are checking this with our demo we met same problem for 9 decodes as you.

    We will let you know when we have something.

    Meanwhile could you try to increase the VPSS memory.

    Best Regards,

    Margarita

  • Dear Margarita

    I increased VPSS_M3_INT_HEAP_CACHED  from 27M to 27M + 32M.

    The result are the same, even if default value 27M. goes to hang.

     

    Which memory is you candidate?

    Best Regards

    Larry 

  • Hi Margarita and Larry,

    I'm experiencing exactly the same problem, and I would like to get more than eight scaler instances working. I already did the memory mapping modifications but without any success. I'm still trying to find what is causing this memory limitation. Did you find a solution to this problem?

    I'll be grateful for any suggestion or solution anyone could provide me,

    Regards,

    Carlos

  • Hello Carlos,

    If I remember right, I was able to run 8. You could try to check with sys_top the memory.

    BR
    Margarita
  • Carlos,

    The app is using shared region IL_CLIENT_SR with ID 2.
    Have you increase it?
    Check the memory map.

    BR
    Margarita
  • Hi Margarita,

    I'm not sure which shared region is that one exactly but I have increased IPC_SR_MC_HDVICP2_HDVPSS and IPC_SR_FRAME_BUFFERS Shared Regions but without any success, I still can't allocate more than eight instances.

    I have reviewed the code and I have suspicions that the memory segment that have to be enlarged is VIDEO_M3_DATA0 but it's part of the memory segments marked as Memory Reserved for Media Controller Executables. Do you know which is the right procedure in order to make modifications on these memory map segments?

    Thanks,

    Carlos