<?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>LayerscapeのトピックTWR-LS1021A High Resolution Timer Support &amp; RT-preempt</title>
    <link>https://community.nxp.com/t5/Layerscape/TWR-LS1021A-High-Resolution-Timer-Support-RT-preempt/m-p/352721#M41</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;I tried to figure out the realtime capability of the board using cyclictest. But I was not able to enable the High Resolution Timers with the QorIQ-SDK-V1.7-20141218-yocto. I enabled the kernel config for "High Resolution Timer Support" &amp;amp; "Fully Preemptible Kernel" support. Also I tried various other kernel settings, but every now kernel offers a resolution of 1ms, see below. Do you have a hint what to check next?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;root@ls1021atwr:~# cat /proc/timer_list&lt;/P&gt;&lt;P&gt;Timer List Version: v0.7&lt;/P&gt;&lt;P&gt;HRTIMER_MAX_CLOCK_BASES: 4&lt;/P&gt;&lt;P&gt;now at 349411724560 nsecs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cpu: 0&lt;/P&gt;&lt;P&gt; clock 0:&lt;/P&gt;&lt;P&gt;&amp;nbsp; .base:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 80d5b5a8&lt;/P&gt;&lt;P&gt;&amp;nbsp; .index:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;&amp;nbsp; .resolution: 1000000 nsecs&lt;/P&gt;&lt;P&gt;&amp;nbsp; .get_time:&amp;nbsp;&amp;nbsp; ktime_get&lt;/P&gt;&lt;P&gt;&amp;nbsp; .offset:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 nsecs&lt;/P&gt;&lt;P&gt;active timers:&lt;/P&gt;&lt;P&gt; #0: def_rt_bandwidth, sched_rt_period_timer, S:01, start_bandwidth_timer, ksoftirqd/0/3&lt;/P&gt;&lt;P&gt; # expires at 350000000000-350000000000 nsecs [in 588275440 to 588275440 nsecs]&lt;/P&gt;&lt;P&gt; #1: &amp;lt;bf87dac8&amp;gt;, hrtimer_wakeup, S:01, hrtimer_start_range_ns, init/1&lt;/P&gt;&lt;P&gt; # expires at 353437111520-353442111517 nsecs [in 4025386960 to 4030386957 nsecs]&lt;/P&gt;&lt;P&gt; #2: &amp;lt;b8c8c968&amp;gt;, it_real_fn, S:01, hrtimer_start, syslogd/1129&lt;/P&gt;&lt;P&gt; # expires at 357656081120-357656081120 nsecs [in 8244356560 to 8244356560 nsecs]&lt;/P&gt;&lt;P&gt; clock 1:&lt;/P&gt;&lt;P&gt;&amp;nbsp; .base:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 80d5b5e8&lt;/P&gt;&lt;P&gt;&amp;nbsp; .index:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; .resolution: 1000000 nsecs&lt;/P&gt;&lt;P&gt;&amp;nbsp; .get_time:&amp;nbsp;&amp;nbsp; ktime_get_real&lt;/P&gt;&lt;P&gt;&amp;nbsp; .offset:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 nsecs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Mar 2015 12:29:56 GMT</pubDate>
    <dc:creator>thomast</dc:creator>
    <dc:date>2015-03-03T12:29:56Z</dc:date>
    <item>
      <title>TWR-LS1021A High Resolution Timer Support &amp; RT-preempt</title>
      <link>https://community.nxp.com/t5/Layerscape/TWR-LS1021A-High-Resolution-Timer-Support-RT-preempt/m-p/352721#M41</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;I tried to figure out the realtime capability of the board using cyclictest. But I was not able to enable the High Resolution Timers with the QorIQ-SDK-V1.7-20141218-yocto. I enabled the kernel config for "High Resolution Timer Support" &amp;amp; "Fully Preemptible Kernel" support. Also I tried various other kernel settings, but every now kernel offers a resolution of 1ms, see below. Do you have a hint what to check next?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;root@ls1021atwr:~# cat /proc/timer_list&lt;/P&gt;&lt;P&gt;Timer List Version: v0.7&lt;/P&gt;&lt;P&gt;HRTIMER_MAX_CLOCK_BASES: 4&lt;/P&gt;&lt;P&gt;now at 349411724560 nsecs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cpu: 0&lt;/P&gt;&lt;P&gt; clock 0:&lt;/P&gt;&lt;P&gt;&amp;nbsp; .base:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 80d5b5a8&lt;/P&gt;&lt;P&gt;&amp;nbsp; .index:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;&amp;nbsp; .resolution: 1000000 nsecs&lt;/P&gt;&lt;P&gt;&amp;nbsp; .get_time:&amp;nbsp;&amp;nbsp; ktime_get&lt;/P&gt;&lt;P&gt;&amp;nbsp; .offset:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 nsecs&lt;/P&gt;&lt;P&gt;active timers:&lt;/P&gt;&lt;P&gt; #0: def_rt_bandwidth, sched_rt_period_timer, S:01, start_bandwidth_timer, ksoftirqd/0/3&lt;/P&gt;&lt;P&gt; # expires at 350000000000-350000000000 nsecs [in 588275440 to 588275440 nsecs]&lt;/P&gt;&lt;P&gt; #1: &amp;lt;bf87dac8&amp;gt;, hrtimer_wakeup, S:01, hrtimer_start_range_ns, init/1&lt;/P&gt;&lt;P&gt; # expires at 353437111520-353442111517 nsecs [in 4025386960 to 4030386957 nsecs]&lt;/P&gt;&lt;P&gt; #2: &amp;lt;b8c8c968&amp;gt;, it_real_fn, S:01, hrtimer_start, syslogd/1129&lt;/P&gt;&lt;P&gt; # expires at 357656081120-357656081120 nsecs [in 8244356560 to 8244356560 nsecs]&lt;/P&gt;&lt;P&gt; clock 1:&lt;/P&gt;&lt;P&gt;&amp;nbsp; .base:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 80d5b5e8&lt;/P&gt;&lt;P&gt;&amp;nbsp; .index:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; .resolution: 1000000 nsecs&lt;/P&gt;&lt;P&gt;&amp;nbsp; .get_time:&amp;nbsp;&amp;nbsp; ktime_get_real&lt;/P&gt;&lt;P&gt;&amp;nbsp; .offset:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 nsecs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 12:29:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/TWR-LS1021A-High-Resolution-Timer-Support-RT-preempt/m-p/352721#M41</guid>
      <dc:creator>thomast</dc:creator>
      <dc:date>2015-03-03T12:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-LS1021A High Resolution Timer Support &amp; RT-preempt</title>
      <link>https://community.nxp.com/t5/Layerscape/TWR-LS1021A-High-Resolution-Timer-Support-RT-preempt/m-p/352722#M42</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;For the PREEMPT_RT, this feature is not support in SDK v1.7 for LS1021A, see below, the part 1.6 Feature Support:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/infocenter/index.jsp?topic=%2FQORIQSDK%2F2880375.html" title="http://www.freescale.com/infocenter/index.jsp?topic=%2FQORIQSDK%2F2880375.html"&gt;Freescale Technical Information Center&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As some functions are still under test, the team will try to support this feature in SDK v1.8. (not for sure so far )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So please use default PREEMPT configuration for ls1021a, and enable 'High Resolution Timer' to have a test.&lt;/P&gt;&lt;P&gt;If still not work, please share the kernel .config file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Lunmin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Fri, 06 Mar 2015 08:57:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/TWR-LS1021A-High-Resolution-Timer-Support-RT-preempt/m-p/352722#M42</guid>
      <dc:creator>lunminliang</dc:creator>
      <dc:date>2015-03-06T08:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-LS1021A High Resolution Timer Support &amp; RT-preempt</title>
      <link>https://community.nxp.com/t5/Layerscape/TWR-LS1021A-High-Resolution-Timer-Support-RT-preempt/m-p/352723#M43</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lunmin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've run into a similar issue, albeit with the standard Linux 4.4.19-rt27 kernel, also patched to support the TQ Systems platform for the LS1021A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following &lt;A href="http://elinux.org/High_Resolution_Timers"&gt;http://elinux.org/High_Resolution_Timers&lt;/A&gt;&lt;A class="unlinked"&gt;,&lt;/A&gt; I'm not getting high-resolution timers and only ~10ms resolution (=jiffy period).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far I've tried PREEMPT_RT_FULL, PREEMPT__LL and PREEMPT_LAZY, each time cyclictest warns about unavailable high resolution timers and gives a 1-10ms result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any advice how this could be solved?&lt;/P&gt;&lt;P&gt;You mentioned that this is a work in progress, can you please provide an update?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you could also comment on the "sdk" situation in general. I'm aware of the git repositories at &lt;A class="jivelink11" href="http://git.freescale.com/git/cgit.cgi/" title="http://git.freescale.com/git/cgit.cgi/"&gt;http://git.freescale.com/git/cgit.cgi/&lt;/A&gt;, but according to the FAE the platform work by Freescale/NXP is now pushed to mainline instead, and the BSP by TQ Systems is also based on the standard kernel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2016 06:59:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/TWR-LS1021A-High-Resolution-Timer-Support-RT-preempt/m-p/352723#M43</guid>
      <dc:creator>stefannickl</dc:creator>
      <dc:date>2016-09-06T06:59:30Z</dc:date>
    </item>
  </channel>
</rss>

