<?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: Enable Hardware Counters on PL310 L2 Cache</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Enable-Hardware-Counters-on-PL310-L2-Cache/m-p/280000#M32065</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt;"&gt;I am facing the same issue than you on my SabreLite IMX6Q board. Did you finally succeed to use event counters on PL310 ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt;"&gt;So far, the only L2 cache statistics that I could get are L2 data cache read and write access, using PMU events 0x50 and 0x51. (it sounds that c&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt;"&gt;ommon microarchitectural event numbers related to L2 don’t work &lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Calibri','sans-serif';"&gt;(events 0x16, 0x17, 0x18&lt;/SPAN&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt;"&gt;Thanks&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Jul 2014 14:20:27 GMT</pubDate>
    <dc:creator>nicochato</dc:creator>
    <dc:date>2014-07-11T14:20:27Z</dc:date>
    <item>
      <title>Enable Hardware Counters on PL310 L2 Cache</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Enable-Hardware-Counters-on-PL310-L2-Cache/m-p/279997#M32062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;I'm trying to enable PL310 L2 Cache event monitoring on i.MX6 sabrelite and i get zeroed out PMU counters. The "CoreLink Level 2 Cache Controller L2C-310 Technical Reference Manual" part "2.5.8 Cache event monitoring" says "When the signal on the SPNIDEN pin is LOW the event bus and event counters only output or count non-secure events.". I'm reading SPNIDEN value using Debug Control Register and i get zero.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;The &lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;Cortex -A9 &lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;Technical Reference Manual (&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;Revision: r4p1) in part "&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;10.8.3 &lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;Changing the authentication signals" says "&lt;/SPAN&gt;&lt;/SPAN&gt;The NIDEN, DBGEN, SPIDEN, and SPNIDEN input signals are either tied off to some fixed value or controlled by some external device.".&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;I find no reference for these signals in the "&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;i.MX 6Dual/6Quad Applications &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Processor Reference Manual".&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;It is there any way to enable&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt; input signals&lt;/SPAN&gt; on the board?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 12:41:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Enable-Hardware-Counters-on-PL310-L2-Cache/m-p/279997#M32062</guid>
      <dc:creator>tarteauxfraises</dc:creator>
      <dc:date>2013-08-28T12:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Enable Hardware Counters on PL310 L2 Cache</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Enable-Hardware-Counters-on-PL310-L2-Cache/m-p/279998#M32063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 13px; font-family: inherit;"&gt;You may try to configure security level register bits for ARM DAP in CSU of the i.MX6.&lt;BR /&gt;Please refer to Security Reference Manual for i.MX6.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 13px; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 13px; font-family: inherit;"&gt;&lt;A href="https://www.freescale.com/webapp/Download?colCode=IMX6DQ6SDLSRM&amp;amp;appType=moderatedWithoutFAE&amp;amp;fpsp=1&amp;amp;Parent_nodeId=1337637154535695831062&amp;amp;Parent_pageType=product&amp;amp;Parent_nodeId=1337637154535695831062&amp;amp;Parent_pageType=product" title="https://www.freescale.com/webapp/Download?colCode=IMX6DQ6SDLSRM&amp;amp;appType=moderatedWithoutFAE&amp;amp;fpsp=1&amp;amp;Parent_nodeId=1337637154535695831062&amp;amp;Parent_pageType=product&amp;amp;Parent_nodeId=1337637154535695831062&amp;amp;Parent_pageType=product"&gt;https://www.freescale.com/webapp/Download?colCode=IMX6DQ6SDLSRM&amp;amp;appType=moderatedWithoutFAE&amp;amp;fpsp=1&amp;amp;Parent_nodeId=1337637…&lt;/A&gt; &lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 13px; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 13px; font-family: inherit;"&gt;Please take a look at the next thread. &lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 13px; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 13px; font-family: inherit;"&gt;"&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;Set SPNIDEN from fuse?&lt;/SPAN&gt;"&lt;/P&gt;&lt;H1 style="font-weight: bold; font-style: normal; font-size: 26px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-align: left; text-indent: 0px;"&gt;&lt;/H1&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 13px; font-family: inherit;"&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/message/368527#368527"&gt;https://community.freescale.com/message/368527#368527&lt;/A&gt;&lt;/P&gt;&lt;P class="jive-thread-reply-btn" style="margin: 26px 0px -10px; font-weight: normal; font-style: normal; font-size: 0.9em; font-family: 'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif; color: #3d3d3d; text-align: left; text-indent: 0px;"&gt;&lt;/P&gt;&lt;DIV class="jive-thread-reply-btn-correct" style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/message/368527" style="margin: 0 20px 0 0; padding: 2px 14px 4px 28px; font-weight: bold; font-style: inherit; font-size: 12px; font-family: inherit; color: #6a737b; background-color: #f3f3f3;"&gt;Set SPNIDEN from fuse?&lt;/A&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Dec 2013 03:12:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Enable-Hardware-Counters-on-PL310-L2-Cache/m-p/279998#M32063</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2013-12-24T03:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Enable Hardware Counters on PL310 L2 Cache</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Enable-Hardware-Counters-on-PL310-L2-Cache/m-p/279999#M32064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;I tried,&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;as you said&lt;/SPAN&gt;,&lt;/SPAN&gt; to configure the security level register bits for arm DAP. I set to 1 the b23-b16 and the bits b7-b0 of the Config security level register 29 but it does not change&lt;SPAN&gt; anything.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Does&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;someone&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;have&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;already&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;enabled&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;L2&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;counters&lt;/SPAN&gt; on &lt;SPAN class="hps"&gt;imx6 sabrelite&lt;/SPAN&gt;?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 14:26:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Enable-Hardware-Counters-on-PL310-L2-Cache/m-p/279999#M32064</guid>
      <dc:creator>tarteauxfraises</dc:creator>
      <dc:date>2014-03-24T14:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: Enable Hardware Counters on PL310 L2 Cache</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Enable-Hardware-Counters-on-PL310-L2-Cache/m-p/280000#M32065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt;"&gt;I am facing the same issue than you on my SabreLite IMX6Q board. Did you finally succeed to use event counters on PL310 ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt;"&gt;So far, the only L2 cache statistics that I could get are L2 data cache read and write access, using PMU events 0x50 and 0x51. (it sounds that c&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt;"&gt;ommon microarchitectural event numbers related to L2 don’t work &lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Calibri','sans-serif';"&gt;(events 0x16, 0x17, 0x18&lt;/SPAN&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt;"&gt;Thanks&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2014 14:20:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Enable-Hardware-Counters-on-PL310-L2-Cache/m-p/280000#M32065</guid>
      <dc:creator>nicochato</dc:creator>
      <dc:date>2014-07-11T14:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: Enable Hardware Counters on PL310 L2 Cache</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Enable-Hardware-Counters-on-PL310-L2-Cache/m-p/280001#M32066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Same problem here.&lt;/P&gt;&lt;P&gt;I am working on a i.MX6Q, have performed the setup of the event counter registers, enabled the events and enabled the "Event monitor bus enable" bit in the Auxiliary Control Register (bit 20).&lt;/P&gt;&lt;P&gt;Nonetheless, the counters (DAT1 and DAT0) are always zeroed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any workaround for the issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Dec 2016 02:52:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Enable-Hardware-Counters-on-PL310-L2-Cache/m-p/280001#M32066</guid>
      <dc:creator>renatomancuso</dc:creator>
      <dc:date>2016-12-10T02:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Enable Hardware Counters on PL310 L2 Cache</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Enable-Hardware-Counters-on-PL310-L2-Cache/m-p/280002#M32067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also had zero values for the PL310 performance counters, while the other counters worked fine. After I stepped through the gator.ko module with the DS-5 kernel debugger and a DSTREAM unit to make sure the PL310 counters are programmed correctly, the PL310 event counters accidently came to life.&lt;/P&gt;&lt;P&gt;It looks like the PL310 PMU counters are affected by i.MX6 errata ERR006259 (while the Cortex-A9 counters are not):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6;" width="100%"&gt;&lt;THEAD&gt;&lt;TR style="background-color: #efefef;"&gt;&lt;TH&gt;i.MX6 Errata nr&lt;/TH&gt;&lt;TH&gt;Title&lt;/TH&gt;&lt;TH&gt;Description&lt;/TH&gt;&lt;TH&gt;Workarounds&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;6259&lt;/TD&gt;&lt;TD&gt;ARM: Debug/trace functions (PMU, PTM and ETB) are disabled with&lt;BR /&gt;absence of JTAG_TCK clock after POR&lt;/TD&gt;&lt;TD&gt;When JTAG_TCK is not toggling after power-on reset (POR), the ARM PMU, PTM, and ETB stay&lt;BR /&gt;in their disabled states so various debug and trace functions are not available.&lt;/TD&gt;&lt;TD&gt;Provide at least 4 JTAG_TCK clock cycles following POR if the PMU, PTM and ETB functions&lt;BR /&gt;will be used. A free-running JTAG_TCK can also be used.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you shortly connect DS-5 via a DSTREAM unit to your target and then disconnect again, the PL310 counters will work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 22:08:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Enable-Hardware-Counters-on-PL310-L2-Cache/m-p/280002#M32067</guid>
      <dc:creator>winfrieddobbe</dc:creator>
      <dc:date>2017-06-29T22:08:21Z</dc:date>
    </item>
  </channel>
</rss>

