<?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>NFCのトピックRe: NxpNfcRdLib Linux timespec bugs (and proposed patch)</title>
    <link>https://community.nxp.com/t5/NFC/NxpNfcRdLib-Linux-timespec-bugs-and-proposed-patch/m-p/823793#M4324</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&amp;nbsp;&lt;/P&gt;&lt;P&gt;The R &amp;amp; D&amp;nbsp; has this report since you reported, they are working to fix them on the next release.&lt;/P&gt;&lt;P&gt;Thanks for the information&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vicente Gomez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Mar 2019 17:38:32 GMT</pubDate>
    <dc:creator>vicentegomez</dc:creator>
    <dc:date>2019-03-20T17:38:32Z</dc:date>
    <item>
      <title>NxpNfcRdLib Linux timespec bugs (and proposed patch)</title>
      <link>https://community.nxp.com/t5/NFC/NxpNfcRdLib-Linux-timespec-bugs-and-proposed-patch/m-p/823789#M4320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have just attempted to upgrade to v05.19.00 of the reader library (using SW369319). We had been using v05.02.00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are a number of simple bugs we have discovered in the Linux abstraction layer, some of which have been introduced since previous versions by the&amp;nbsp;someone just blindly changing all the uses of timespec and not testing them. In some cases the timespec needs to be an absolute time and in others it needs to be a relative time. They have all been changed to assume a relative time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;phOsal_EventPend() has had a bug introduced by removing the code adding the wait time required and supplying the timespec structure as just the time. This means pthread_cond_timewait returns immediately. This was fine in v05.02.00 but was introduced somewhere along the way to v05.19.00. Without a public repo I'm unable to pinpoint where or why or do a pull request or similar. What is the best process to submit bug fixes and improvements?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly&amp;nbsp;phOsal_SemPend() needs an absolute time rather than a relative time as does&amp;nbsp;phOsal_MutexLock&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With these bugs, the library would hang almost immediately in phacDiscLoop_Run and was very unreliable. Is the library ever tested because it appears it couldn't have been with such glaring issues?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Patch attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2018 04:18:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NxpNfcRdLib-Linux-timespec-bugs-and-proposed-patch/m-p/823789#M4320</guid>
      <dc:creator>christianhack</dc:creator>
      <dc:date>2018-09-14T04:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: NxpNfcRdLib Linux timespec bugs (and proposed patch)</title>
      <link>https://community.nxp.com/t5/NFC/NxpNfcRdLib-Linux-timespec-bugs-and-proposed-patch/m-p/823790#M4321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone? I find it hard to believe no else is seeing this problem. Is no one using this latest library (or recent versions)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any response from NXP?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2018 00:39:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NxpNfcRdLib-Linux-timespec-bugs-and-proposed-patch/m-p/823790#M4321</guid>
      <dc:creator>christianhack</dc:creator>
      <dc:date>2018-11-01T00:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: NxpNfcRdLib Linux timespec bugs (and proposed patch)</title>
      <link>https://community.nxp.com/t5/NFC/NxpNfcRdLib-Linux-timespec-bugs-and-proposed-patch/m-p/823791#M4322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I see 5.21.00 released in December 2018 still has this problem. The OS abstraction layer for Linux is &lt;STRONG&gt;fundamentally broken&lt;/STRONG&gt;&amp;nbsp;and was broken sometime between 5.02.00 and 5.19.00 - no version control is accessible to tell when or why it was changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pthread_cond_timedwait() requires an &lt;STRONG&gt;absolute&lt;/STRONG&gt;&amp;nbsp;timespec passed to it. There is even code to read the current system time which is then overwritten with the timeout i.e. the system time read is mostly pointless. Because a relative time is supplied, the timed waits all expire immediately as they end up being epoch + x seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same for&amp;nbsp;sem_timedwait(),&amp;nbsp;pthread_mutex_timedlock().&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone at NXP read these posts? Does anyone use the library on Linux? It would seem not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2019 23:49:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NxpNfcRdLib-Linux-timespec-bugs-and-proposed-patch/m-p/823791#M4322</guid>
      <dc:creator>christianhack</dc:creator>
      <dc:date>2019-02-11T23:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: NxpNfcRdLib Linux timespec bugs (and proposed patch)</title>
      <link>https://community.nxp.com/t5/NFC/NxpNfcRdLib-Linux-timespec-bugs-and-proposed-patch/m-p/823792#M4323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/christianhack"&gt;christianhack&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can assure you that we at NXP read the posts and try to take care of all of them. Sorry that you haven't gotten an&amp;nbsp; answer yet. I am also not the one who can answer that, but I will maker sure that the correct person is informed and we will update you on this :-)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Alexander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2019 11:10:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NxpNfcRdLib-Linux-timespec-bugs-and-proposed-patch/m-p/823792#M4323</guid>
      <dc:creator>AlexanderB</dc:creator>
      <dc:date>2019-03-15T11:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: NxpNfcRdLib Linux timespec bugs (and proposed patch)</title>
      <link>https://community.nxp.com/t5/NFC/NxpNfcRdLib-Linux-timespec-bugs-and-proposed-patch/m-p/823793#M4324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&amp;nbsp;&lt;/P&gt;&lt;P&gt;The R &amp;amp; D&amp;nbsp; has this report since you reported, they are working to fix them on the next release.&lt;/P&gt;&lt;P&gt;Thanks for the information&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vicente Gomez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2019 17:38:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NxpNfcRdLib-Linux-timespec-bugs-and-proposed-patch/m-p/823793#M4324</guid>
      <dc:creator>vicentegomez</dc:creator>
      <dc:date>2019-03-20T17:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: NxpNfcRdLib Linux timespec bugs (and proposed patch)</title>
      <link>https://community.nxp.com/t5/NFC/NxpNfcRdLib-Linux-timespec-bugs-and-proposed-patch/m-p/823794#M4325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/christianhack"&gt;christianhack&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you very much for reporting the issue and also for the proposed patch.&lt;/P&gt;&lt;P&gt;R&amp;amp;D has delivered a fix and this will be in the next NXP NFC Reader Library release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Alexander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2019 09:51:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NxpNfcRdLib-Linux-timespec-bugs-and-proposed-patch/m-p/823794#M4325</guid>
      <dc:creator>AlexanderB</dc:creator>
      <dc:date>2019-05-23T09:51:28Z</dc:date>
    </item>
  </channel>
</rss>

