<?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:RDTSC only returns evenly numbered values on some chips in Mobile and Desktop Processors</title>
    <link>https://community.intel.com/t5/Mobile-and-Desktop-Processors/RDTSC-only-returns-evenly-numbered-values-on-some-chips/m-p/1231812#M47895</link>
    <description>&lt;P&gt;Hello rerickson,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;"CPU instructions themselves are considered software and *not* hardware related?"&lt;/B&gt;&lt;/P&gt;&lt;P&gt;I would like to clarify that this is not what I meant.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Depending on the inquiry you have, and since you are currently working on a software development project, a different support channel would be recommended.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In this scenario, our recommendation is that you submit your question to the Intel® Developer Zone to obtain additional support for this inquiry.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Wanner G.&lt;/P&gt;&lt;P&gt;Intel Server Specialist&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 26 Nov 2020 03:15:19 GMT</pubDate>
    <dc:creator>IntelSupport</dc:creator>
    <dc:date>2020-11-26T03:15:19Z</dc:date>
    <item>
      <title>RDTSC only returns evenly numbered values on some chips</title>
      <link>https://community.intel.com/t5/Mobile-and-Desktop-Processors/RDTSC-only-returns-evenly-numbered-values-on-some-chips/m-p/1230488#M47781</link>
      <description>&lt;P&gt;I've found that the RDTSC instruction only ever returns even values on several of the chips I have access to. &amp;nbsp;These include:&lt;/P&gt;&lt;P&gt;Intel(R) Xeon(R) CPU E5620&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;@ 2.40GHz&lt;/P&gt;&lt;P&gt;2.4 GHz 8-Core Intel Core i9&lt;/P&gt;&lt;P&gt;Intel(R) Xeon(R) CPU E3-1275 v6 @ 3.80GHz&lt;/P&gt;&lt;P&gt;Intel(R) Core(TM) i5-7500 CPU @ 3.40GHz&lt;/P&gt;&lt;P&gt;However, there are some chips that return both even and odd values:&lt;/P&gt;&lt;P&gt;Intel(R) Xeon(R) CPU E5-2690 0 @ 2.90GHz&lt;/P&gt;&lt;P&gt;Intel(R) Xeon(R) CPU E5-2667 0 @ 2.90GHz&lt;/P&gt;&lt;P&gt;I'm running on various versions of the linux kernel including 4.4.12, 4.4.111, 5.4.72.&lt;/P&gt;&lt;P&gt;This occurs both when calling rdtsc() from inside the kernel as well as the attached user-space program. &amp;nbsp;No matter when/where I call RDTSC and no matter how many times I do so and no matter what I put in-between those calls -- they are always even values.&lt;/P&gt;&lt;P&gt;This behavior seems broken. &amp;nbsp;Did something go wrong with all the various tweaks to TSC behavior that have occurred over the years? &amp;nbsp;Or is this just an expected side-effect of various CPU instruction processing optimizations?&lt;/P&gt;</description>
      <pubDate>Sat, 21 Nov 2020 15:50:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Mobile-and-Desktop-Processors/RDTSC-only-returns-evenly-numbered-values-on-some-chips/m-p/1230488#M47781</guid>
      <dc:creator>rerickson</dc:creator>
      <dc:date>2020-11-21T15:50:56Z</dc:date>
    </item>
    <item>
      <title>Re:RDTSC only returns evenly numbered values on some chips</title>
      <link>https://community.intel.com/t5/Mobile-and-Desktop-Processors/RDTSC-only-returns-evenly-numbered-values-on-some-chips/m-p/1231021#M47825</link>
      <description>&lt;P&gt;Hello rerickson,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you for posting your question on this Intel® Community.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;To better assist you, I would like to gather additional information about this behavior.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;What is the Linux distribution(s) you are using?&lt;/LI&gt;&lt;LI&gt;Are you currently developing software?&lt;/LI&gt;&lt;LI&gt;How is this behavior impacting your project/environment?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Wanner G.&lt;/P&gt;&lt;P&gt;Intel Server Specialist&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Nov 2020 01:08:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Mobile-and-Desktop-Processors/RDTSC-only-returns-evenly-numbered-values-on-some-chips/m-p/1231021#M47825</guid>
      <dc:creator>IntelSupport</dc:creator>
      <dc:date>2020-11-24T01:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: Re:RDTSC only returns evenly numbered values on some chips</title>
      <link>https://community.intel.com/t5/Mobile-and-Desktop-Processors/RDTSC-only-returns-evenly-numbered-values-on-some-chips/m-p/1231340#M47846</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Our linux distribution is “home-grown” (so difficult to quantify) but based on Debian.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;But behavior is the same on macOS Catalina and MacOS Big Sur.&lt;/SPAN&gt;&lt;BR /&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Versions of glibc on linux:&lt;/DIV&gt;&lt;DIV class=""&gt;- 2.19&lt;/DIV&gt;&lt;DIV class=""&gt;- 2.28&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Versions of gcc:&lt;/DIV&gt;&lt;DIV class=""&gt;- 4.9.2&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;- 8.3.0&lt;/DIV&gt;&lt;DIV class=""&gt;- 8.4.0&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Tried different optimization levels (-O0 -O1, O2, and O3), but no change in behavior.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Yes, I am developing SW. &amp;nbsp;This impacts our project as we are using “timestamp" deltas (based on output obtained from RDTSC) for entropy generation. &amp;nbsp;The least significant bits of these deltas are expected to contain the most entropy. &amp;nbsp;But in this case bit 0 is never set and so has no entropy.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;While there are workarounds (e.g. use CLOCK_MONOTONIC), there are lingering concerns about RDTSC not working as expected (and thus being able to rely on it at all for timestamps in any part of our code). &amp;nbsp;The idea of a CPU instruction apparently not working “as advertised” has created much concern — regardless of whether we end up using RDTSC or not.&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;The fact that changing compiler optimization levels have no impact suggests that the compiler isn’t involved (or am I not understanding that correctly?).&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;If this information isn’t sufficient, perhaps you could pose the question differently or perhaps ask me to try something different in order to better test some theory/hypothesis?&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Thanks&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 19:42:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Mobile-and-Desktop-Processors/RDTSC-only-returns-evenly-numbered-values-on-some-chips/m-p/1231340#M47846</guid>
      <dc:creator>rerickson</dc:creator>
      <dc:date>2020-11-24T19:42:20Z</dc:date>
    </item>
    <item>
      <title>Re:RDTSC only returns evenly numbered values on some chips</title>
      <link>https://community.intel.com/t5/Mobile-and-Desktop-Processors/RDTSC-only-returns-evenly-numbered-values-on-some-chips/m-p/1231460#M47862</link>
      <description>&lt;P&gt;Hello rerickson,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you for providing additional details about your project. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;For Software Development inquiries, our recommendation is that you submit your questions to the Intel® Developer Zone.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Intel® Developer Zone - Contact Page&lt;/P&gt;&lt;P&gt;&lt;A href="https://software.intel.com/en-us/support" target="_blank"&gt;https://software.intel.com/en-us/support&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;You can submit your ticket through the Online Service Center at &lt;A href="https://www.intel.com/supporttickets" target="_blank"&gt;https://www.intel.com/supporttickets&lt;/A&gt; for support.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;See How to Create a Support Request at the Online Service Center.&lt;/P&gt;&lt;P&gt;&lt;A href="https://software.intel.com/en-us/articles/how-to-create-a-support-request-at-online-service-center" target="_blank"&gt;https://software.intel.com/en-us/articles/how-to-create-a-support-request-at-online-service-center&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Wanner G.&lt;/P&gt;&lt;P&gt;Intel Server Specialist&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Nov 2020 02:26:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Mobile-and-Desktop-Processors/RDTSC-only-returns-evenly-numbered-values-on-some-chips/m-p/1231460#M47862</guid>
      <dc:creator>IntelSupport</dc:creator>
      <dc:date>2020-11-25T02:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Re:RDTSC only returns evenly numbered values on some chips</title>
      <link>https://community.intel.com/t5/Mobile-and-Desktop-Processors/RDTSC-only-returns-evenly-numbered-values-on-some-chips/m-p/1231632#M47877</link>
      <description>&lt;P&gt;I just want to make sure I'm understanding this. &amp;nbsp;CPU instructions themselves are considered software and *not* hardware related?&lt;/P&gt;&lt;P&gt;For example, if I were to call the CPUID instruction and the bits it returned didn't match the physical specs for that chip then it would be a software problem?&lt;/P&gt;&lt;P&gt;I understand that for a company like Intel that does such a wide range of hardware and software that the distinction between the two is different than what I might expect.&lt;/P&gt;&lt;P&gt;Are you assuming that this *must* be a problem with the assembler? &amp;nbsp;How come the exact same output works on some Intel chips but now others? &amp;nbsp;Given that we're talking about a CPU instruction (and not something "fancy") how is that not a HW issue?&lt;/P&gt;&lt;P&gt;Please help me to understand how you're making the HW vs SW distinction in this case.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:26:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Mobile-and-Desktop-Processors/RDTSC-only-returns-evenly-numbered-values-on-some-chips/m-p/1231632#M47877</guid>
      <dc:creator>rerickson</dc:creator>
      <dc:date>2020-11-25T16:26:55Z</dc:date>
    </item>
    <item>
      <title>Re:RDTSC only returns evenly numbered values on some chips</title>
      <link>https://community.intel.com/t5/Mobile-and-Desktop-Processors/RDTSC-only-returns-evenly-numbered-values-on-some-chips/m-p/1231812#M47895</link>
      <description>&lt;P&gt;Hello rerickson,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;"CPU instructions themselves are considered software and *not* hardware related?"&lt;/B&gt;&lt;/P&gt;&lt;P&gt;I would like to clarify that this is not what I meant.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Depending on the inquiry you have, and since you are currently working on a software development project, a different support channel would be recommended.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In this scenario, our recommendation is that you submit your question to the Intel® Developer Zone to obtain additional support for this inquiry.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Wanner G.&lt;/P&gt;&lt;P&gt;Intel Server Specialist&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Nov 2020 03:15:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Mobile-and-Desktop-Processors/RDTSC-only-returns-evenly-numbered-values-on-some-chips/m-p/1231812#M47895</guid>
      <dc:creator>IntelSupport</dc:creator>
      <dc:date>2020-11-26T03:15:19Z</dc:date>
    </item>
  </channel>
</rss>

