<?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: Getting zeros on i.MX6 PMU counters using Device Tree Kernel</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Getting-zeros-on-i-MX6-PMU-counters-using-Device-Tree-Kernel/m-p/327690#M44099</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&gt;After checking the problem it seems that the solution shown in the discussion you mentioned.&lt;/P&gt;&lt;P&gt;I doubt there is a solution that can be performed from the DTS, the dts is only for configuration description but I did not find anything for the PMU.&amp;nbsp; I suggest you to stikc with this solution,&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/309495"&gt;Getting zeros on i.MX6 PMU counters&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alejandro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Oct 2014 14:53:55 GMT</pubDate>
    <dc:creator>alejandrolozan1</dc:creator>
    <dc:date>2014-10-27T14:53:55Z</dc:date>
    <item>
      <title>Getting zeros on i.MX6 PMU counters using Device Tree Kernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Getting-zeros-on-i-MX6-PMU-counters-using-Device-Tree-Kernel/m-p/327689#M44098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having the exact problem that was nicely described in an earlier post regarding pre-DT kernels: &lt;A href="https://community.nxp.com/message/309495"&gt;Getting zeros on i.MX6 PMU counters&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My kernel is 3.10.17. I can "fix" this by somewhat blindly pasting the suggested assembly snippet into the cpu_pmu_device_probe function in arch/arm/kernel/perf_event_cpu.c:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;u32 val = 0b11;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;asm volatile("mcr p15, 0, %0, c1, c1, 1" : : "r" (val));&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm hoping that there is a more elegant way of doing this. Device tree item perhaps? Has anyone else run into this problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 17:19:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Getting-zeros-on-i-MX6-PMU-counters-using-Device-Tree-Kernel/m-p/327689#M44098</guid>
      <dc:creator>rathben</dc:creator>
      <dc:date>2014-10-15T17:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Getting zeros on i.MX6 PMU counters using Device Tree Kernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Getting-zeros-on-i-MX6-PMU-counters-using-Device-Tree-Kernel/m-p/327690#M44099</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&gt;After checking the problem it seems that the solution shown in the discussion you mentioned.&lt;/P&gt;&lt;P&gt;I doubt there is a solution that can be performed from the DTS, the dts is only for configuration description but I did not find anything for the PMU.&amp;nbsp; I suggest you to stikc with this solution,&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/309495"&gt;Getting zeros on i.MX6 PMU counters&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alejandro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 14:53:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Getting-zeros-on-i-MX6-PMU-counters-using-Device-Tree-Kernel/m-p/327690#M44099</guid>
      <dc:creator>alejandrolozan1</dc:creator>
      <dc:date>2014-10-27T14:53:55Z</dc:date>
    </item>
  </channel>
</rss>

