<?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>i.MX ProcessorsのトピックRe: Changing RPMsg Buffer Size</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Changing-RPMsg-Buffer-Size/m-p/1068695#M157010</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to change RPMsg Buffer Size? If yes, how? Toradex says its NXP Implementation so only they can help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Jul 2020 16:36:51 GMT</pubDate>
    <dc:creator>kashyap_gada</dc:creator>
    <dc:date>2020-07-01T16:36:51Z</dc:date>
    <item>
      <title>Changing RPMsg Buffer Size</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Changing-RPMsg-Buffer-Size/m-p/1068692#M157007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #333333; background-color: #ffffff; font-size: 14px; margin: 0px 0px 10px;"&gt;Dear All,&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-size: 14px; margin: 0px 0px 10px;"&gt;I'd like to thanks the team and community for being supportive. I hope each one of you is safe. I am using Toradex iMX7D EMMC Model.&amp;nbsp;&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-size: 14px; margin: 0px 0px 10px;"&gt;I've successfully implemented and tested RPMsg on imx7 with default size of 512. I get about 5 KBytes/Sec of transfer rate from M4 to A7 (Python Serial script) with the default settings. Anything beyond this creates buffer full warnings on Linux. I have a requirement of around 100KBytes/Sec.&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-size: 14px; margin: 0px 0px 10px;"&gt;As per my previous post at&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.toradex.com/community/questions/43578/imx7-remoteproc-communication-speed.html?childToView=43597#answer-43597" style="color: #00508c; text-decoration: none;"&gt;https://www.toradex.com/community/questions/43578/imx7-remoteproc-communication-speed.html?childToView=43597#answer-43597&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and a reference to the following post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.toradex.com/community/questions/35761/how-to-change-the-size-of-rpmsg-buffer.html?childToView=50535#comment-50535" style="color: #00508c; text-decoration: none;"&gt;https://www.toradex.com/community/questions/35761/how-to-change-the-size-of-rpmsg-buffer.html?childToView=50535#comment-50535&lt;/A&gt;&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-size: 14px; margin: 0px 0px 10px;"&gt;I am trying to set RPMsg Buffer size to 8192 Bytes.&lt;/P&gt;&lt;OL style="color: #333333; background-color: #ffffff; font-size: 14px; margin: 0px 0px 10px 25px;"&gt;&lt;LI&gt;&lt;P style="margin: 0px 0px 10px;"&gt;imx_rpmsg.c file location has changed to drivers/rpmsg/imx_rpmsg.c (different from 2nd post).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P style="margin: 0px 0px 10px;"&gt;I changed the buffer size to 8192 at that file and compiled kernel, also rpmsg_core.h in FreeRTOS rpmsg buffer size is changed to 8192. Yet buffer size allocated by rpmsg on m4 side is 496 Bytes only.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P style="margin: 0px 0px 10px;"&gt;Could I get a right method to change RPMsg Buffer Size?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P style="margin: 0px 0px 10px;"&gt;Is the Buffer size right amount for 100KBytes/Sec Transfer Rate.?&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P style="color: #333333; background-color: #ffffff; font-size: 14px; margin: 0px 0px 10px;"&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2020 13:08:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Changing-RPMsg-Buffer-Size/m-p/1068692#M157007</guid>
      <dc:creator>kashyap_gada</dc:creator>
      <dc:date>2020-05-11T13:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: Changing RPMsg Buffer Size</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Changing-RPMsg-Buffer-Size/m-p/1068693#M157008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kashyap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first one can try to rebuild all images from scratch, to verify that changes took effect.&lt;/P&gt;&lt;P&gt;Also one can try to debug it, use toradex sources&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://git.toradex.com/cgit/linux-toradex.git/tree/drivers/rpmsg/imx_rpmsg.c?h=toradex_4.14-2.3.x-imx" title="http://git.toradex.com/cgit/linux-toradex.git/tree/drivers/rpmsg/imx_rpmsg.c?h=toradex_4.14-2.3.x-imx"&gt;imx_rpmsg.c\rpmsg\drivers - linux-toradex.git - Linux kernel for Apalis and Colibri modules&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;be aware of some restrictions:&lt;/P&gt;&lt;P&gt;#define RPMSG_NUM_BUFS&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;(512)&lt;BR /&gt;#define RPMSG_BUF_SIZE&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;(512)&lt;BR /&gt;#define RPMSG_BUFS_SPACE&amp;nbsp;&amp;nbsp; &amp;nbsp;(RPMSG_NUM_BUFS * RPMSG_BUF_SIZE)&lt;/P&gt;&lt;P&gt;rpmsg available memory defined in dts&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://git.toradex.com/cgit/linux-toradex.git/tree/arch/arm/boot/dts/imx7d-sdb-m4.dtsi?h=toradex_4.14-2.3.x-imx" title="http://git.toradex.com/cgit/linux-toradex.git/tree/arch/arm/boot/dts/imx7d-sdb-m4.dtsi?h=toradex_4.14-2.3.x-imx"&gt;imx7d-sdb-m4.dtsi\dts\boot\arm\arch - linux-toradex.git - Linux kernel for Apalis and Colibri modules&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN4553.pdf" target="_blank"&gt;&lt;STRONG&gt;Using Open Source Debugging Tools for Linux on i.MX Processors&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2020 01:25:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Changing-RPMsg-Buffer-Size/m-p/1068693#M157008</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-05-12T01:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Changing RPMsg Buffer Size</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Changing-RPMsg-Buffer-Size/m-p/1068694#M157009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;F&lt;SPAN style="font-family: inherit;"&gt;irst one can try to rebuild all images from scratch, to verify that changes took effect.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I just did that yesterday, built a new Linux image, but it didn't make any difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Also one can try to debug it, use toradex sources&lt;/P&gt;&lt;P&gt;&lt;A data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fgit.toradex.com%2Fcgit%2Flinux-toradex.git%2Ftree%2Fdrivers%2Frpmsg%2Fimx_rpmsg.c%3Fh%3Dtoradex_4.14-2.3.x-imx" rel="nofollow" target="_blank"&gt;imx_rpmsg.c\rpmsg\drivers - linux-toradex.git - Linux kernel for Apalis and Colibri modules&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;be aware of some restrictions:&lt;/P&gt;&lt;P&gt;#define RPMSG_NUM_BUFS&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;(512)&lt;BR /&gt;#define RPMSG_BUF_SIZE&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;(512)&lt;BR /&gt;#define RPMSG_BUFS_SPACE&amp;nbsp;&amp;nbsp; &amp;nbsp;(RPMSG_NUM_BUFS * RPMSG_BUF_SIZE)&lt;/P&gt;&lt;P&gt;&lt;A data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fapplication-note%2FAN4553.pdf" rel="nofollow" target="_blank"&gt;&lt;STRONG&gt;Using Open Source Debugging Tools for Linux on i.MX Processors&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I'll check out this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2020 06:30:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Changing-RPMsg-Buffer-Size/m-p/1068694#M157009</guid>
      <dc:creator>kashyap_gada</dc:creator>
      <dc:date>2020-05-12T06:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Changing RPMsg Buffer Size</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Changing-RPMsg-Buffer-Size/m-p/1068695#M157010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to change RPMsg Buffer Size? If yes, how? Toradex says its NXP Implementation so only they can help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2020 16:36:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Changing-RPMsg-Buffer-Size/m-p/1068695#M157010</guid>
      <dc:creator>kashyap_gada</dc:creator>
      <dc:date>2020-07-01T16:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Changing RPMsg Buffer Size</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Changing-RPMsg-Buffer-Size/m-p/1221466#M168448</link>
      <description>&lt;P&gt;Have you changed the&amp;nbsp;MAX_RPMSG_NUM_BUFS and&amp;nbsp;MAX_RPMSG_BUF_SIZE in virtio_rpmsg_bus.c for memory allocation? However, that doesn't solve the problem. I suppose the&amp;nbsp;RPMSG_BUFS_SPACE should be less or equal at the memory space&amp;nbsp;reserved in device tree. I tried to set&amp;nbsp;&amp;nbsp;MAX_RPMSG_NUM_BUFS to 128 and&amp;nbsp;MAX_RPMSG_BUF_SIZE to 2048 to keep the same amount of memory than 512*512 but when I load imx_rpmsg_tty with modprobe the "hello word" message was not send. Of course, I have changed defines in the freertos libs and the m4 program was launch before. Does anyone have an idea?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 21:05:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Changing-RPMsg-Buffer-Size/m-p/1221466#M168448</guid>
      <dc:creator>pdubois</dc:creator>
      <dc:date>2021-01-26T21:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Changing RPMsg Buffer Size</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Changing-RPMsg-Buffer-Size/m-p/1252505#M171521</link>
      <description>&lt;P&gt;When examining the RPMSG transport speed I found the biggest thing affecting performance was diagnostics printed in the kernel modules. Disabling these helped the most. Attached is the patch I *believe* is what we used to improve performance. You may need to review dmesg to ensure no other virtio/rpmsg logging is occurring.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 03:05:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Changing-RPMsg-Buffer-Size/m-p/1252505#M171521</guid>
      <dc:creator>dogisfat</dc:creator>
      <dc:date>2021-03-26T03:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Changing RPMsg Buffer Size</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Changing-RPMsg-Buffer-Size/m-p/1252507#M171522</link>
      <description>&lt;P&gt;Here are the patches, attachments aren't working:&lt;/P&gt;&lt;P&gt;&lt;A href="https://pastebin.com/daUne427" target="_blank"&gt;https://pastebin.com/daUne427&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pastebin.com/RctQ9Yfw" target="_blank"&gt;https://pastebin.com/RctQ9Yfw&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 03:07:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Changing-RPMsg-Buffer-Size/m-p/1252507#M171522</guid>
      <dc:creator>dogisfat</dc:creator>
      <dc:date>2021-03-26T03:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Changing RPMsg Buffer Size</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Changing-RPMsg-Buffer-Size/m-p/1567416#M198563</link>
      <description>&lt;P&gt;Hi, sorry for jumping in this late, but I am finding myself right now in the same position as you, trying to go from 512x512 to 128x2048 and I'm facing same issues (hello world not sent). Did you manage to solve this issue in the end? Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 09:20:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Changing-RPMsg-Buffer-Size/m-p/1567416#M198563</guid>
      <dc:creator>Swiss2</dc:creator>
      <dc:date>2022-12-09T09:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Changing RPMsg Buffer Size</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Changing-RPMsg-Buffer-Size/m-p/1567586#M198583</link>
      <description>No only do you need to change the virtio_rpmsg_bus.c you'll also need to change the m4 code to have matching sizes and possibly modify the dts for the board if you are allocating more memory for the virtual queues. I don't remember which files in the m4 BSP need to change other than they live in the openamp implementation.</description>
      <pubDate>Fri, 09 Dec 2022 16:12:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Changing-RPMsg-Buffer-Size/m-p/1567586#M198583</guid>
      <dc:creator>dogisfat</dc:creator>
      <dc:date>2022-12-09T16:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Changing RPMsg Buffer Size</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Changing-RPMsg-Buffer-Size/m-p/1567667#M198588</link>
      <description>&lt;P&gt;Yes, I was able to change the buffer size and the buffer count. For linux, in the folder drivers/rpmsg/, change RPMSG_NUM_BUFS to 128 and RPMSG_BUF_SIZE to 2048 in the file imx_rpmsg.c. In the file virtio_rpmsg_bus.c, change MAX_RPMSG_NUM_BUFS to 128 and MAX_RPMSG_BUF_SIZE to 2048. Recompile your kernel.&lt;/P&gt;&lt;P&gt;For freeRtos, you have to modifiy the file rpmsg_default_config.h in \middleware\multicore\rpmsg_lite\lib\include. Set RL_BUFERR_PAYLOAD_SIZE to 2032 (you have to subtract the header size) and I also changed RL_BUFFER_COUNT to 64 (First, I tried to set to 128 but the driver didn't work, I found out you have to divide by 2 your buffer count. If I remember correctly, there are half the number of buffers in each direction).&lt;/P&gt;&lt;P&gt;Pay attention to the define&amp;nbsp;RL_BUFERR_PAYLOAD_SIZE because it is also defined in rpmsg_config.h (\middleware\multicore\rpmsg_lite\template_application\)&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Make sure your rpmsg is enabled in your device tree.&lt;/P&gt;&lt;P&gt;If everythink is correct, you should have a log like that "&lt;SPAN&gt;virtio_rpmsg_bus virtio0: creating channel rpmsg-virtual-tty-channel-1 addr 0x1e"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I hope it will help you.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 20:13:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Changing-RPMsg-Buffer-Size/m-p/1567667#M198588</guid>
      <dc:creator>pdubois</dc:creator>
      <dc:date>2022-12-09T20:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Changing RPMsg Buffer Size</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Changing-RPMsg-Buffer-Size/m-p/1568310#M198632</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/155607"&gt;@pdubois&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/157615"&gt;@dogisfat&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Thank you both for your answers!&lt;BR /&gt;Looks like I am just having problems recompiling the rpmsg linux kernel module.&lt;BR /&gt;I am using the torizoncore builder provided by Toradex instead of building a custom linux image, which you probably weren't using.&lt;BR /&gt;Could you still share your Makefile or KConfig file that you used for this, if you still have them.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 12:25:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Changing-RPMsg-Buffer-Size/m-p/1568310#M198632</guid>
      <dc:creator>Swiss2</dc:creator>
      <dc:date>2022-12-12T12:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Changing RPMsg Buffer Size</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Changing-RPMsg-Buffer-Size/m-p/1568387#M198639</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I used the makefile and kconfig provided for rpmsg driver. You can take a look at&amp;nbsp;&lt;A href="https://github.com/varigit/linux-imx/tree/imx_4.9.11_1.0.0_ga/drivers/rpmsg" target="_blank"&gt;https://github.com/varigit/linux-imx/tree/imx_4.9.11_1.0.0_ga/drivers/rpmsg&lt;/A&gt;&amp;nbsp;. I have never used&amp;nbsp;&lt;SPAN&gt;the torizoncore builder so I can't help you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 14:42:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Changing-RPMsg-Buffer-Size/m-p/1568387#M198639</guid>
      <dc:creator>pdubois</dc:creator>
      <dc:date>2022-12-12T14:42:08Z</dc:date>
    </item>
  </channel>
</rss>

