<?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: iMX SEMA4 Linux driver improvements and fixes patch</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX-SEMA4-Linux-driver-improvements-and-fixes-patch/m-p/2342613#M244696</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/203368"&gt;@Manuel_Salas&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am sorry to having to bug you, but at this point I'm a bit confused with the complete lack of response by NXP, and total silence that I'm experiencing for weeks now. I'm wondering what's the reason for this silence.&lt;/P&gt;&lt;P&gt;Of course, I tried escalating the issue using the built-in feature of this forum, sending an inquiry to the provided email address of the NXP Linux team...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you could at least share that, I'd appreciate it.&lt;/P&gt;&lt;P&gt;Thank you and best regards,&lt;/P&gt;&lt;P&gt;Sava&lt;/P&gt;</description>
    <pubDate>Tue, 31 Mar 2026 08:05:53 GMT</pubDate>
    <dc:creator>savaj</dc:creator>
    <dc:date>2026-03-31T08:05:53Z</dc:date>
    <item>
      <title>iMX SEMA4 Linux driver improvements and fixes patch</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX-SEMA4-Linux-driver-improvements-and-fixes-patch/m-p/2296704#M243481</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure whether the pull-request mechanism for linux-imx on github works, so I am posting the patch here. If required, I can also open a PR on github.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For our purposes we tried using the SEMA4 driver found in linux-imx, but the driver was not serving our needs, and I believe it was essentially broken, both by design and by implementation.&lt;/P&gt;&lt;P&gt;Identified problems:&lt;/P&gt;&lt;P&gt;- if a remote core was holding a gate, and the driver attempted to lock the gate (and of course failed), there would be no ISR when the remote processor releases the gate. This bug is a consequence of OR-ing the SEMA4_Gaten register instead of a direct value write: driver would try to write 0b11 instead, which is treated as a "no-op".&lt;/P&gt;&lt;P&gt;- Using a spinlock in imx_sema4_mutex_lock can lead to a kernel bug if a caller is not aware that this call is basically converting the context into an atomic one. It also doesn't make sense to lock a global flag when a single gate is being locked.&lt;/P&gt;&lt;P&gt;- The lock/unlock dance in IRQ, followed by a wake_up call, is hard to follow. By the time the caller is woken up and has taken control there are no guarantees we have the gate locked. While this may be okay, I don't think it is a good design to have the caller do trylock or lock again when woken up. Instead, the mutex driver should behave as a standard mutex driver.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This patch ensures that only one user can hold a gate, and it improves IRQ handling from SEMA4 module. There is only a simple lock in the ISR,&amp;nbsp; The code is simplified and made more robust.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know whether the change is acceptable and whether I need to submit it as a pull request on your github repo.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sava&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jan 2026 13:31:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX-SEMA4-Linux-driver-improvements-and-fixes-patch/m-p/2296704#M243481</guid>
      <dc:creator>savaj</dc:creator>
      <dc:date>2026-01-20T13:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: iMX SEMA4 Linux driver improvements and fixes patch</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX-SEMA4-Linux-driver-improvements-and-fixes-patch/m-p/2296821#M243485</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/225700"&gt;@savaj&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope you are doing very well.&lt;/P&gt;
&lt;P&gt;Thank you very much for your contribution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I asked internally about the process to follow for review the patch. I will let you know any update.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Salas.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jan 2026 18:13:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX-SEMA4-Linux-driver-improvements-and-fixes-patch/m-p/2296821#M243485</guid>
      <dc:creator>Manuel_Salas</dc:creator>
      <dc:date>2026-01-20T18:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: iMX SEMA4 Linux driver improvements and fixes patch</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX-SEMA4-Linux-driver-improvements-and-fixes-patch/m-p/2302176#M243679</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/203368"&gt;@Manuel_Salas&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are there any updates on this issue, should I turn to github and open a PR there?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sava&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jan 2026 10:35:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX-SEMA4-Linux-driver-improvements-and-fixes-patch/m-p/2302176#M243679</guid>
      <dc:creator>savaj</dc:creator>
      <dc:date>2026-01-28T10:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: iMX SEMA4 Linux driver improvements and fixes patch</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX-SEMA4-Linux-driver-improvements-and-fixes-patch/m-p/2303167#M243710</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/225700"&gt;@savaj&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope you are doing very well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just received an update from the team:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please confirm which branch the patch was based on and send the patch to nxp imx maintainer team to review. The email is as below.&lt;/P&gt;
&lt;P&gt;NXP Linux Team &amp;lt;linux-imx@nxp.com&amp;gt; (reviewer:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Salas.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2026 17:15:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX-SEMA4-Linux-driver-improvements-and-fixes-patch/m-p/2303167#M243710</guid>
      <dc:creator>Manuel_Salas</dc:creator>
      <dc:date>2026-01-29T17:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: iMX SEMA4 Linux driver improvements and fixes patch</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX-SEMA4-Linux-driver-improvements-and-fixes-patch/m-p/2314209#M243912</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/203368"&gt;@Manuel_Salas&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for a bit of the delay.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The kernel branch is&amp;nbsp;lf-6.12.y (yocto walnascar).&lt;/P&gt;&lt;P&gt;I'll send the patch to the specified address.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sava&lt;/P&gt;</description>
      <pubDate>Sun, 08 Feb 2026 23:09:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX-SEMA4-Linux-driver-improvements-and-fixes-patch/m-p/2314209#M243912</guid>
      <dc:creator>savaj</dc:creator>
      <dc:date>2026-02-08T23:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: iMX SEMA4 Linux driver improvements and fixes patch</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX-SEMA4-Linux-driver-improvements-and-fixes-patch/m-p/2321027#M244125</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/203368"&gt;@Manuel_Salas&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope you're doing well.&lt;/P&gt;&lt;P&gt;I sent the patch to the specified email address couple of weeks ago, but got no feedback since then.&lt;/P&gt;&lt;P&gt;Is it expected for the process to take a bit longer or did the email somehow got missed?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sava&lt;/P&gt;</description>
      <pubDate>Sun, 22 Feb 2026 00:26:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX-SEMA4-Linux-driver-improvements-and-fixes-patch/m-p/2321027#M244125</guid>
      <dc:creator>savaj</dc:creator>
      <dc:date>2026-02-22T00:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: iMX SEMA4 Linux driver improvements and fixes patch</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX-SEMA4-Linux-driver-improvements-and-fixes-patch/m-p/2342613#M244696</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/203368"&gt;@Manuel_Salas&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am sorry to having to bug you, but at this point I'm a bit confused with the complete lack of response by NXP, and total silence that I'm experiencing for weeks now. I'm wondering what's the reason for this silence.&lt;/P&gt;&lt;P&gt;Of course, I tried escalating the issue using the built-in feature of this forum, sending an inquiry to the provided email address of the NXP Linux team...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you could at least share that, I'd appreciate it.&lt;/P&gt;&lt;P&gt;Thank you and best regards,&lt;/P&gt;&lt;P&gt;Sava&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2026 08:05:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX-SEMA4-Linux-driver-improvements-and-fixes-patch/m-p/2342613#M244696</guid>
      <dc:creator>savaj</dc:creator>
      <dc:date>2026-03-31T08:05:53Z</dc:date>
    </item>
  </channel>
</rss>

