<?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: How to disable L2-cache on P1022DS in P-Series</title>
    <link>https://community.nxp.com/t5/P-Series/How-to-disable-L2-cache-on-P1022DS/m-p/251460#M510</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am afraid there is no option to do this except modify the source code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 07 Apr 2013 07:37:09 GMT</pubDate>
    <dc:creator>lunminliang</dc:creator>
    <dc:date>2013-04-07T07:37:09Z</dc:date>
    <item>
      <title>How to disable L2-cache on P1022DS</title>
      <link>https://community.nxp.com/t5/P-Series/How-to-disable-L2-cache-on-P1022DS/m-p/251459#M509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are now utilizing our P1022 developent systems (P1022DS) for software component testing (unit/module testing).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We would like to extend these tests to include execution time measurements. The L2-cache is disabled in our target system, so in order to get comparable values we need to disable it for the Linux system running on the P1022DS as well. How do we proceed to achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(We use a proprietary OS for our target system, so - apparently - we lack the necessary expertise in Linux.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 15:41:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/How-to-disable-L2-cache-on-P1022DS/m-p/251459#M509</guid>
      <dc:creator>perrub</dc:creator>
      <dc:date>2013-04-04T15:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable L2-cache on P1022DS</title>
      <link>https://community.nxp.com/t5/P-Series/How-to-disable-L2-cache-on-P1022DS/m-p/251460#M510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am afraid there is no option to do this except modify the source code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Apr 2013 07:37:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/How-to-disable-L2-cache-on-P1022DS/m-p/251460#M510</guid>
      <dc:creator>lunminliang</dc:creator>
      <dc:date>2013-04-07T07:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable L2-cache on P1022DS</title>
      <link>https://community.nxp.com/t5/P-Series/How-to-disable-L2-cache-on-P1022DS/m-p/251461#M511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I was hoping for a more convenient way, but I didn't really expect it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the reference manual: The L2 cache is disabled by setting L2 enable (L2E, bit 0) of the L2 Control Register (L2CTL) to 0. L2CTL is memory mapped at an offset of 0x20000 from the Configuration, Control, and Status Register Base Address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;How do we find out which Base Address our system use?&lt;/LI&gt;&lt;LI&gt;How do we actually access the L2CTL register? I suspect we need user privileges of some kind, and perhaps some kind of address processing (remapping)...?&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 05:49:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/How-to-disable-L2-cache-on-P1022DS/m-p/251461#M511</guid>
      <dc:creator>perrub</dc:creator>
      <dc:date>2013-04-15T05:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable L2-cache on P1022DS</title>
      <link>https://community.nxp.com/t5/P-Series/How-to-disable-L2-cache-on-P1022DS/m-p/251462#M512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We ended up writing a loadable kernel module, with the core part being these rows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;phys_addr_t L2CTL = get_immrbase() + 0x20000;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;void* L2_controller = ioremap_nocache(L2CTL, 4);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;iowrite8(0x50, L2_controller);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;This seems to do the trick for us.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 09:07:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/How-to-disable-L2-cache-on-P1022DS/m-p/251462#M512</guid>
      <dc:creator>perrub</dc:creator>
      <dc:date>2013-04-17T09:07:54Z</dc:date>
    </item>
  </channel>
</rss>

