<?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 Re: Flush Cache in A5 Linux in Vybrid Processors</title>
    <link>https://community.nxp.com/t5/Vybrid-Processors/Flush-Cache-in-A5-Linux/m-p/436975#M4835</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Carlo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't believe this is possible from userspace; most discussion I can find along these lines suggest a kernel driver to flush cache, as userspace would not have permission to modify memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Timesys Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Dec 2015 14:15:59 GMT</pubDate>
    <dc:creator>timesyssupport</dc:creator>
    <dc:date>2015-12-08T14:15:59Z</dc:date>
    <item>
      <title>Flush Cache in A5 Linux</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Flush-Cache-in-A5-Linux/m-p/436968#M4828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I encountered some issues writing to a memory that we allocated to be shared both the A5 and M4.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;When I write to the shared memory in A5, not all data is being reflected immediately. It will only reflect when we tried to rewrite the data again.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Here is a scenario of what i am doing.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;1.&amp;nbsp; mmap the /dev/mem&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;2.&amp;nbsp; update data in the shared memory&lt;/P&gt;&lt;P&gt;3. read in the M4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Result: not all are reflected.&lt;/P&gt;&lt;P&gt;4. rewrite again in A5.&lt;/P&gt;&lt;P&gt;5.&amp;nbsp; read in the M4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Result:&amp;nbsp; all are reflected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;We have similar experience in M4 and we solve it by calling &lt;SPAN style="font-size: 12.8px;"&gt; _DCACHE_FLUSH_MLINES(). &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.8px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.8px;"&gt;to flush the data after writing. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Does anybody know &lt;SPAN style="font-size: 12.8px;"&gt; what would be the equivalent for flushing &lt;SPAN class="il"&gt;DCACHE in A5?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 09:45:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Flush-Cache-in-A5-Linux/m-p/436968#M4828</guid>
      <dc:creator>carlovalgocela</dc:creator>
      <dc:date>2015-11-24T09:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: Flush Cache in A5 Linux</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Flush-Cache-in-A5-Linux/m-p/436969#M4829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/timesyssupport"&gt;timesyssupport&lt;/A&gt;​ can you help&amp;nbsp; here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2015 17:22:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Flush-Cache-in-A5-Linux/m-p/436969#M4829</guid>
      <dc:creator>karina_valencia</dc:creator>
      <dc:date>2015-11-30T17:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Flush Cache in A5 Linux</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Flush-Cache-in-A5-Linux/m-p/436970#M4830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Carlo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As suggested in the ticket you have open with our Support Engineers, MCC_DECACHE_INVALIDATE_MLINES may be what you are looking for, you can refer to &lt;A href="https://linuxlink.timesys.com/system/files/Vybrid_mcc_design.pdf"&gt;https://linuxlink.timesys.com/system/files/Vybrid_mcc_design.pdf&lt;/A&gt; for further insight/examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, reviewing arch/arm/mm/cache-l2x0.c, you will see the 'l2x0_flush_all()' function, which will flush the entire L2 cache.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Timesys Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2015 18:45:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Flush-Cache-in-A5-Linux/m-p/436970#M4830</guid>
      <dc:creator>timesyssupport</dc:creator>
      <dc:date>2015-11-30T18:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: Flush Cache in A5 Linux</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Flush-Cache-in-A5-Linux/m-p/436971#M4831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/timesyssupport"&gt;timesyssupport&lt;/A&gt;​,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently I am not using the MCC and the A5 application is a userspace not in the kernel. &lt;/P&gt;&lt;P&gt;I used mmap to map the memory.&lt;/P&gt;&lt;P&gt;I found a site that calls a clear cache.&amp;nbsp; __clear_cache() to flush and invalidate the cache but still not working or I missed some prerequisite.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://minghuasweblog.wordpress.com/2013/03/29/arm-cache-flush-on-mmapd-buffers-with-clear-cache/" rel="nofollow"&gt;https://minghuasweblog.wordpress.com/2013/03/29/arm-cache-flush-on-mmapd-buffers-with-clear-cache/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2015 01:59:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Flush-Cache-in-A5-Linux/m-p/436971#M4831</guid>
      <dc:creator>carlovalgocela</dc:creator>
      <dc:date>2015-12-01T01:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Flush Cache in A5 Linux</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Flush-Cache-in-A5-Linux/m-p/436972#M4832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/timesyssupport"&gt;timesyssupport&lt;/A&gt;​ please continue with the follow up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2015 16:25:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Flush-Cache-in-A5-Linux/m-p/436972#M4832</guid>
      <dc:creator>karina_valencia</dc:creator>
      <dc:date>2015-12-07T16:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Flush Cache in A5 Linux</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Flush-Cache-in-A5-Linux/m-p/436973#M4833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Carlo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this function not satisfy your needs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;arch/arm/mm/cache-l2x0.c, 'l2x0_flush_all()' function&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;A href="http://lxr.free-electrons.com/source/arch/arm/mm/cache-l2x0.c?v=3.13#L149"&gt;http://lxr.free-electrons.com/source/arch/arm/mm/cache-l2x0.c?v=3.13#L149&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Timesys Support&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2015 17:08:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Flush-Cache-in-A5-Linux/m-p/436973#M4833</guid>
      <dc:creator>timesyssupport</dc:creator>
      <dc:date>2015-12-07T17:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Flush Cache in A5 Linux</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Flush-Cache-in-A5-Linux/m-p/436974#M4834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Timesys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for a userspace function to flush all cache.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 00:33:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Flush-Cache-in-A5-Linux/m-p/436974#M4834</guid>
      <dc:creator>carlovalgocela</dc:creator>
      <dc:date>2015-12-08T00:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Flush Cache in A5 Linux</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Flush-Cache-in-A5-Linux/m-p/436975#M4835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Carlo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't believe this is possible from userspace; most discussion I can find along these lines suggest a kernel driver to flush cache, as userspace would not have permission to modify memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Timesys Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 14:15:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Flush-Cache-in-A5-Linux/m-p/436975#M4835</guid>
      <dc:creator>timesyssupport</dc:creator>
      <dc:date>2015-12-08T14:15:59Z</dc:date>
    </item>
    <item>
      <title>This an automatic process.  We are marking this post as s...</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Flush-Cache-in-A5-Linux/m-p/1137663#M6113</link>
      <description>&lt;B&gt;This an automatic process.&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt;
We are marking this post as solved, due to the either low activity or any reply marked as correct.&lt;BR /&gt;&lt;BR /&gt;
If you have additional questions, please create a new post and reference to this closed post.&lt;BR /&gt;&lt;BR /&gt;
NXP Community!</description>
      <pubDate>Thu, 03 Sep 2020 17:23:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Flush-Cache-in-A5-Linux/m-p/1137663#M6113</guid>
      <dc:creator>CommunityBot</dc:creator>
      <dc:date>2020-09-03T17:23:43Z</dc:date>
    </item>
  </channel>
</rss>

