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.

DSP application fail in AM5xx

Other Parts Discussed in Thread: TMP102

Hi experts,

Please help on this URL  https://e2e.ti.com/support/arm/sitara_arm/f/791/t/482852

Thanks

  • DSP firmware dra7-dsp1-fw.xe66 is not loaded here hence this error.
    check if lib/firmware/ has this firmware.

    You should get some trace logs if it is loaded from
    cat /sys/kernel/debug/remoteproc/remoteproc2/trace0

    After boot-up, you can check if it is loaded or not with

    dmesg | grep remoteproc
    It should show the size of firmware.

    Ram
  • Hi Ram,
    thanks for your response.

    DSP firmware dra7-dsp1-fw.xe66 is not loaded here hence this error.
    check if lib/firmware/ has this firmware.
    You should get some trace logs if it is loaded from
    cat /sys/kernel/debug/remoteproc/remoteproc2/trace0
    ==> See below for the message

    root@am57xx-evm:/lib/firmware# pwd
    /lib/firmware
    root@am57xx-evm:/lib/firmware# ls -l
    ...
    lrwxrwxrwx 1 root root 21 Oct 7 19:58 dra7-dsp1-fw.xe66 -> dra7-dsp1-fw.xe66.ocl
    -rw-r--r-- 1 root root 870888 Oct 7 18:49 dra7-dsp1-fw.xe66.dce
    -rw-r--r-- 1 root root 21306292 Oct 7 19:08 dra7-dsp1-fw.xe66.ocl
    -rwxr-xr-x 1 root root 6937149 Oct 7 17:53 dra7-dsp1-fw.xe66.test
    lrwxrwxrwx 1 root root 21 Oct 7 19:58 dra7-dsp2-fw.xe66 -> dra7-dsp2-fw.xe66.ocl
    -rw-r--r-- 1 root root 21306292 Oct 7 19:08 dra7-dsp2-fw.xe66.ocl
    -rwxr-xr-x 1 root root 6937149 Oct 7 17:53 dra7-dsp2-fw.xe66.test
    ...
    root@am57xx-evm:/lib/firmware# cat /sys/kernel/debug/remoteproc/remoteproc2/trace0
    [ 0.000] 16 Resource entries at 0xfe800000
    [ 0.000] registering rpmsg-proto:rpmsg-proto service on 61 with HOST
    root@am57xx-evm:/lib/firmware#


    dmesg | grep remoteproc
    It should show the size of firmware.
    ==> See below for the message

    root@am57xx-evm:/lib/firmware# dmesg | grep remoteproc
    [69323.653357] Modules linked in: usb_storage ipv6 gdbserverproxy(O) cryptodev(O) cmemk(O) xhci_plat_hcd xhci_hcd usbcore rpmsg_rpc dwc3 joydev evdev virtio_rpmsg_bus udc_core snd_soc_simple_card ti_vip palmas_pwrbutton g pio_keys cpufreq_voltdm tmp102 snd_soc_omap_hdmi_audio leds_gpio extcon_usb_gpio rtc_palmas extcon_palmas phy_omap_usb2 snd_soc_tlv320aic3x mt9t11x pixcir_i2c_ts rtc_ds1307 ahci_platform libahci_platform omapdrm_pvr(O) om ap_wdt libahci ti_vpe videobuf2_dma_contig ti_vpdma libata v4l2_mem2mem videobuf2_memops videobuf2_core v4l2_common videodev ti_soc_thermal thermal_sys hwmon dwc3_omap media extcon rtc_omap omap_rng rng_core debugss_kmodu le(O) omap_remoteproc remoteproc virtio virtio_ring
    ...
    [86193.276408] Modules linked in: usb_storage ipv6 gdbserverproxy(O) cryptodev(O) cmemk(O) xhci_plat_hcd xhci_hcd usbcore rpmsg_rpc dwc3 joydev evdev virtio_rpmsg_bus udc_core snd_soc_simple_card ti_vip palmas_pwrbutton g pio_keys cpufreq_voltdm tmp102 snd_soc_omap_hdmi_audio leds_gpio extcon_usb_gpio rtc_palmas extcon_palmas phy_omap_usb2 snd_soc_tlv320aic3x mt9t11x pixcir_i2c_ts rtc_ds1307 ahci_platform libahci_platform omapdrm_pvr(O) om ap_wdt libahci ti_vpe videobuf2_dma_contig ti_vpdma libata v4l2_mem2mem videobuf2_memops videobuf2_core v4l2_common videodev ti_soc_thermal thermal_sys hwmon dwc3_omap media extcon rtc_omap omap_rng rng_core debugss_kmodu le(O) omap_remoteproc remoteproc virtio virtio_ring
    root@am57xx-evm:/lib/firmware#

  • By confirm with DSP firmware inside AM57xx, it looks unready.
    Here under is normal messages as using other DSP firmware

    root@am57xx-evm:~# cat /sys/kernel/debug/remoteproc/remoteproc2/trace0
    [ 0.000] 18 Resource entries at 0x95000000
    [ 0.000] DSP1 starting..
    [ 0.000]
    [ 0.000]
    [ 0.000] **** DSPMM VERSION INFO ****
    [ 0.000]
    [ 0.000] Compile DATE Oct 20 2014 TIME 13:18:47
    [ 0.000]
    [ 0.000] ** DSPMM VERSION INFO END **
    [ 0.000] OMAPRPC: registered channel: rpmsg-dce-dsp
    [ 0.000] [t=0x006add32] ti.ipc.rpmsg.RPMessage: RPMessage_create: endPt created: 59
    [ 0.000] OMAPRPC: Returning Object @954095a8
    [ 0.000] copyTask 54: Entered...:
    [ 0.000] [t=0x006e6869] ti.ipc.rpmsg.RPMessage: RPMessage_create: endPt created: 54
    [ 0.000] registering rpmsg-client-sample:sample-desc service on 54 with HOST
    [ 0.000] copyTask 55: Entered...:
    [ 0.000] [t=0x006fe1c7] ti.ipc.rpmsg.RPMessage: RPMessage_create: endPt created: 55
    [ 0.000] registering rpmsg-client-sample:sample-desc service on 55 with HOST
    [ 0.000] OMAPRPC: connecting from local endpoint 59 to port 59
    [ 0.000] registering rpmsg-rpc:rpmsg-dce-dsp service on 59 with HOST
    [ 0.000] OMAPRPC: started channel on port: 59
    [ 0.000] OMAPRPC: received msg type: 0 len: 8 from addr: 1024
    [ 0.000] OMAPRPC: channel info query - name rpmsg-dce-dsp fxns 8
    [ 0.000] OMAPRPC: Replying with msg type: 1 to addr: 1024 from: 59 len: 12
    [ 0.000] OMAPRPC: received msg type: 2 len: 216 from addr: 1024
    [ 0.000] OMAPRPC: function query of type 1
    [ 0.000] OMAPRPC: Replying with msg type: 3 to addr: 1024 from: 59 len: 216
    [ 0.000] OMAPRPC: received msg type: 2 len: 216 from addr: 1024
    ...
    [ 0.000] OMAPRPC: Replying with msg type: 3 to addr: 1024 from: 59 len: 216
    [ 0.000] OMAPRPC: received msg type: 6 len: 56 from addr: 1025
    [ 0.000] [t=0x0000001e:42330a4b] ti.sdo.rcm.RcmServer: RcmServer_create: instance create: 0x9540c1c8
    [ 0.000] [t=0x0000001e:42344b59] ti.ipc.rpmsg.RPMessage: RPMessage_create: endPt created: 101
    [ 0.000] createService: new OMX Service at endpoint: 101
    [ 0.000] OMAPRPC: created service instance named: rpmsg-dce-dsp (status=0) addr: 101
    [ 0.000] OMAPRPC: Replying with msg type: 8 to addr: 1025 from: 59 len: 16
    [ 0.000] OMAPRPC: received msg type: 4 len: 12 from addr: 1025
    [ 0.000] OMAPRPC: destroying instance addr: 101
    [ 0.000] RcmServer_serverThrFxn_P: Exiting thread.
    [ 0.000] [t=0x0000001e:42c4e346] ti.ipc.rpmsg.RPMessage: RPMessage_delete: endPt deleted: 101
    [ 0.000] [t=0x0000001e:42c59982] ti.sdo.rcm.RcmServer: RcmServer_delete: instance delete: 0x9540c1c8
    [ 0.000] deleteService: removed RcmServer at endpoint: 101
    [ 0.000] OMAPRPC: Replying with msg type: 7 to addr: 1025 from: 59 len: 16
    root@am57xx-evm:~#


    and now I got the same messages as processors.wiki.ti.com/.../Processor_Training:_Multimedia

    root@am57xx-evm:~# copycodectest 123
    0x22070: Opening Engine..
    Created dsp_universalCopy

    Fill input buffer with pattern 123

    Verifing the UniversalCopy algorithm

    copycodectest executed successfully

    root@am57xx-evm:~#

    Thanks