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.

AM5728: Whole DSP (TI RTOS App) execution stops after kernel log: omap_hwmod: mmu0_dsp1: _wait_target_disable failed

Part Number: AM5728

Hi,

     We are working on an application that employs both DSP (TI RTOS App) and A15 (Linux) with IPC communication. For few seconds both DSP (TI RTOS App) and A15 (Linux App) executes fine, but as soon as we see this log:

omap_hwmod: mmu0_dsp1: _wait_target_disable failed

on the debug console of Linux kernel, the DSP (TI RTOS App) gets halted. The DSP employs DCAN and Timer, and all the tasks get halted indefinitely as soon as the message appears. Even we tried commenting out all the IPC APIs, running only the DCAN related task, but whole DSP App stops after the above mentioned kernel log.

Please let us know how to overcome this issue and make the DSP (TI RTOS App) run continuously without any interruption.

Thanks and Regards

Raj Johri

  • Hi Raj,

    Can you please share the complete logs from linux?

    Regards,
    Parth

  • Hi Parth,

               Here is the log:

    [ 130.455241] omap-rproc 40800000.dsp: ignoring dependency for device, assuming no driver
    [ 130.463624] omap-rproc 40800000.dsp: ignoring dependency for device, assuming no driver
    [ 130.471730] omap-rproc 40800000.dsp: assigned reserved memory node dsp1-memory@99000000
    [ 130.479966] remoteproc remoteproc2: 40800000.dsp is available
    [ 130.493493] remoteproc remoteproc2: powering up 40800000.dsp
    [ 130.499230] remoteproc remoteproc2: Booting fw image dra7-dsp1-fw.xe66, size 4909232
    [ 130.513688] omap_hwmod: mmu0_dsp1: _wait_target_disable failed
    [ 130.519576] omap-iommu 40d01000.mmu: 40d01000.mmu: version 3.0
    [ 130.525498] omap-iommu 40d02000.mmu: 40d02000.mmu: version 3.0
    [ 130.537641] virtio_rpmsg_bus virtio2: rpmsg host is online
    [ 130.538942] virtio_rpmsg_bus virtio2: creating channel rpmsg-proto addr 0x3d
    [ 130.543197] remoteproc remoteproc2: registered virtio2 (type 7)
    [ 130.543204] remoteproc remoteproc2: remote processor 40800000.dsp is now up
    [ 141.283574] omap_hwmod: mmu0_dsp1: _wait_target_disable failed

    After the above highlighted log in bold, the DSP execution stops.

    Thanks and Regards

    Raj Johri

  • Hi Raj, 

    From the logs I don't see any reason for DSP to halt. Are you using the application from SDK or is it a custom application? Is there a way I can reproduce the issue on my end?

    Regards,

    Parth

  • Hi Parth,

               We are using a custom application. If you want to reproduce the same issue try following simple code:

    Diags_setMask("Server+F");

    /* enable some log events */
    Diags_setMask(MODULE_NAME"+EXF");

    while(1)
    {
    sprintf(sbuf, "Hello world %d", count++);
    Log_print0(Diags_INFO, sbuf);
    Task_sleep(500);
    }

    I tried printing "Hello world" with an incrementing count value for every 500 ms in an infinite loop. I loaded the application using remote proc from Linux and observed the /sys/kernel/debug/remoteproc/remoteproc2/trace0 buffer.

    The buffer contains last print as "Hello world 19", as soon as the message:  [ 141.283574] omap_hwmod: mmu0_dsp1: _wait_target_disable failed, appears on Linux kernel debug logs it gets halted. The prints should have been infinite but it runs almost for 9 to 10 seconds and stops the DSP execution.

    Please try the above code and help in this regard

    Thanks and Regards

    Raj Johri

  • Hi Parth,

              Did you get a chance to look into this issue? Please let me know if your were able to reproduce the issue. What could be blocking the continuous execution in DSP when loading the firmware from remoteproc?

    Thanks and Regards

    Raj Johri

  • Hi Raj,

    Apologies for not following up on this.
    Is this issue still open? If yes, can you please highlight the current status on the issue?

    Regards,
    Parth