<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic imx_rproc_kick: failed (0, err:-62) - Need help debugging in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx-rproc-kick-failed-0-err-62-Need-help-debugging/m-p/1753468#M215366</link>
    <description>&lt;P&gt;Hi, I am trying to run a cortex M4 firmware elf image using remoteproc from the A53 linux host. When I start the firmware, I am getting the following output:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[ 1623.070177] remoteproc remoteproc0: powering up imx-rproc
[ 1623.077293] remoteproc remoteproc0: Booting fw image cortexM4Firmware, size 540896
[ 1623.085112] imx-rproc imx8mm-cm4-rpmsg: map memory: 00000000df531f64+8000
[ 1623.085137] imx-rproc imx8mm-cm4-rpmsg: map memory: 0000000028a98c74+8000
[ 1623.085145] imx-rproc imx8mm-cm4-rpmsg: map memory: 00000000108c3336+100000
[ 1623.085175] remoteproc remoteproc0: da = 0x1ffe0000 len = 0x240 va = 0x00000000ae39690e
[ 1623.085185] remoteproc remoteproc0: da = 0x1ffe0240 len = 0xadfc va = 0x000000009b9f4a9b
[ 1623.085524] remoteproc remoteproc0: da = 0x1ffeb03c len = 0x7078 va = 0x0000000087b1bf82
[ 1623.085642] remoteproc remoteproc0: da = 0x1ffe0240 len = 0x58 va = 0x000000009b9f4a9b
[ 1623.143451] virtio_rpmsg_bus virtio0: buffers: va 0000000082316732, dma 0x000000005b8c0000
[ 1623.244621] imx-rproc imx8mm-cm4-rpmsg: imx_rproc_kick: failed (0, err:-62)
[ 1623.251783] virtio_rpmsg_bus virtio0: rpmsg host is online
[ 1623.262662]  remoteproc0#vdev0buffer: registered virtio0 (type 7)
[ 1623.269264] remoteproc remoteproc0: remote processor imx-rproc is now up&lt;/LI-CODE&gt;&lt;P&gt;The error&amp;nbsp;&lt;STRONG&gt;imx-rproc imx8mm-cm4-rpmsg: imx_rproc_kick: failed (0, err:-62)&amp;nbsp;&lt;/STRONG&gt;indicates a return value &lt;STRONG&gt;-ETIME (-62)&lt;/STRONG&gt; which I don't know how to debug further.&lt;/P&gt;&lt;P&gt;I checked the trace so far:&lt;/P&gt;&lt;P&gt;thrown in&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;drivers/remoteproc/imx_rproc.c&lt;/STRONG&gt; in&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;static void imx_rproc_kick(struct rproc *rproc, int vqid)&lt;/STRONG&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;err = mbox_send_message(priv-&amp;gt;tx_ch, (void *)&amp;amp;mmsg);
	if (err &amp;lt; 0)
		dev_err(priv-&amp;gt;dev, "%s: failed (%d, err:%d)\n",
			__func__, vqid, err);&lt;/LI-CODE&gt;&lt;P&gt;It seems like the mailbox send message handler returns with a timeout. Why is that? How can I analyze the cause?&lt;/P&gt;&lt;P&gt;Thanks for any suggestions!&lt;/P&gt;</description>
    <pubDate>Tue, 07 Nov 2023 11:11:14 GMT</pubDate>
    <dc:creator>user2327934</dc:creator>
    <dc:date>2023-11-07T11:11:14Z</dc:date>
    <item>
      <title>imx_rproc_kick: failed (0, err:-62) - Need help debugging</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx-rproc-kick-failed-0-err-62-Need-help-debugging/m-p/1753468#M215366</link>
      <description>&lt;P&gt;Hi, I am trying to run a cortex M4 firmware elf image using remoteproc from the A53 linux host. When I start the firmware, I am getting the following output:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[ 1623.070177] remoteproc remoteproc0: powering up imx-rproc
[ 1623.077293] remoteproc remoteproc0: Booting fw image cortexM4Firmware, size 540896
[ 1623.085112] imx-rproc imx8mm-cm4-rpmsg: map memory: 00000000df531f64+8000
[ 1623.085137] imx-rproc imx8mm-cm4-rpmsg: map memory: 0000000028a98c74+8000
[ 1623.085145] imx-rproc imx8mm-cm4-rpmsg: map memory: 00000000108c3336+100000
[ 1623.085175] remoteproc remoteproc0: da = 0x1ffe0000 len = 0x240 va = 0x00000000ae39690e
[ 1623.085185] remoteproc remoteproc0: da = 0x1ffe0240 len = 0xadfc va = 0x000000009b9f4a9b
[ 1623.085524] remoteproc remoteproc0: da = 0x1ffeb03c len = 0x7078 va = 0x0000000087b1bf82
[ 1623.085642] remoteproc remoteproc0: da = 0x1ffe0240 len = 0x58 va = 0x000000009b9f4a9b
[ 1623.143451] virtio_rpmsg_bus virtio0: buffers: va 0000000082316732, dma 0x000000005b8c0000
[ 1623.244621] imx-rproc imx8mm-cm4-rpmsg: imx_rproc_kick: failed (0, err:-62)
[ 1623.251783] virtio_rpmsg_bus virtio0: rpmsg host is online
[ 1623.262662]  remoteproc0#vdev0buffer: registered virtio0 (type 7)
[ 1623.269264] remoteproc remoteproc0: remote processor imx-rproc is now up&lt;/LI-CODE&gt;&lt;P&gt;The error&amp;nbsp;&lt;STRONG&gt;imx-rproc imx8mm-cm4-rpmsg: imx_rproc_kick: failed (0, err:-62)&amp;nbsp;&lt;/STRONG&gt;indicates a return value &lt;STRONG&gt;-ETIME (-62)&lt;/STRONG&gt; which I don't know how to debug further.&lt;/P&gt;&lt;P&gt;I checked the trace so far:&lt;/P&gt;&lt;P&gt;thrown in&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;drivers/remoteproc/imx_rproc.c&lt;/STRONG&gt; in&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;static void imx_rproc_kick(struct rproc *rproc, int vqid)&lt;/STRONG&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;err = mbox_send_message(priv-&amp;gt;tx_ch, (void *)&amp;amp;mmsg);
	if (err &amp;lt; 0)
		dev_err(priv-&amp;gt;dev, "%s: failed (%d, err:%d)\n",
			__func__, vqid, err);&lt;/LI-CODE&gt;&lt;P&gt;It seems like the mailbox send message handler returns with a timeout. Why is that? How can I analyze the cause?&lt;/P&gt;&lt;P&gt;Thanks for any suggestions!&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 11:11:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx-rproc-kick-failed-0-err-62-Need-help-debugging/m-p/1753468#M215366</guid>
      <dc:creator>user2327934</dc:creator>
      <dc:date>2023-11-07T11:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: imx_rproc_kick: failed (0, err:-62) - Need help debugging</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx-rproc-kick-failed-0-err-62-Need-help-debugging/m-p/1754206#M215447</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/225416"&gt;@user2327934&lt;/a&gt;,&lt;/P&gt;
&lt;DIV&gt;I hope you are doing well&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Are you getting the issue while loading the M4 binary from U-boot? Please check the same.&lt;BR /&gt;&lt;BR /&gt;For the RPMSG on cortex M, one can refer to the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;U&gt;Chapter 9 Linux Remote Processor (RPROC) framework&lt;/U&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;from the document&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN5317.pdf" target="_blank" rel="noopener" data-saferedirecturl="https://www.google.com/url?q=https://www.nxp.com/docs/en/application-note/AN5317.pdf&amp;amp;source=gmail&amp;amp;ust=1699525730757000&amp;amp;usg=AOvVaw1HQrzjK3-aACrLyjQM-FNQ"&gt;https://www.nxp.com/docs/en/&lt;WBR /&gt;application-note/AN5317.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Further, it is mentioned in the above document that,&lt;BR /&gt;"For i.MX 8M platforms, the root clock for M7/M4 must always be enabled by Linux to load the firmware&lt;BR /&gt;code and start Cortex M7/M4. By default, NXP Linux BSP keeps the root clock enabled for the M core when it is&lt;BR /&gt;started from U-Boot. Otherwise, if you need to first start the M core from the Linux booting phase, the clock driver&lt;BR /&gt;(drivers/clk/imx/clk-&lt;WBR /&gt;composite-8m.c) must be updated to always skip the gate registration to keep the root clock&lt;BR /&gt;always enabled for the M core."&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks &amp;amp; Regards,&lt;/DIV&gt;
&lt;DIV&gt;Dhruvit Vasavada&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Nov 2023 11:58:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx-rproc-kick-failed-0-err-62-Need-help-debugging/m-p/1754206#M215447</guid>
      <dc:creator>Dhruvit</dc:creator>
      <dc:date>2023-11-08T11:58:09Z</dc:date>
    </item>
  </channel>
</rss>

