<?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のトピック回复： IMX8MP PCIE Legacy Interrupt using uio</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-PCIE-Legacy-Interrupt-using-uio/m-p/1532421#M195974</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am porting i210 on the imx8mm board. Can you share me the dts arrange ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my problem.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/shorts/3jO6BhMUrl8" target="_blank"&gt;https://www.youtube.com/shorts/3jO6BhMUrl8&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can you give me a hand ?&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;tzeng015&lt;/P&gt;</description>
    <pubDate>Wed, 05 Oct 2022 02:37:55 GMT</pubDate>
    <dc:creator>tzeng015</dc:creator>
    <dc:date>2022-10-05T02:37:55Z</dc:date>
    <item>
      <title>IMX8MP PCIE Legacy Interrupt using uio</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-PCIE-Legacy-Interrupt-using-uio/m-p/1510390#M194181</link>
      <description>&lt;P&gt;I am using the uio_pci_generic driver to handle leagcy interrupts.&lt;/P&gt;&lt;P&gt;Issue: The interrupt&amp;nbsp;is seen in the driver, but not delivered to user space and&amp;nbsp;does not get reflected in cat /proc/interrupts; the resulting log for the interrupt is mentioned below:&lt;/P&gt;&lt;P&gt;#cat /proc/interrupts&lt;/P&gt;&lt;P&gt;233: 0 0 0 0 GICv3 158 Level uio_pci_generic&lt;/P&gt;&lt;P&gt;For the user space appication, have used the example code as available in the document:&lt;/P&gt;&lt;P&gt;&lt;A title="UIO_Document" href="https://01.org/linuxgraphics/gfx-docs/drm/driver-api/uio-howto.html" target="_self"&gt;Reference Document&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I verified the interrupt is triggered from the pcie card connected.&lt;/P&gt;&lt;P&gt;# lspci&lt;BR /&gt;00:00.0 PCI bridge: Synopsys, Inc. DWC_usb3 / PCIe bridge (rev 01)&lt;BR /&gt;01:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev 03)&lt;/P&gt;&lt;P&gt;Can anyone help me resolve the issue?&lt;/P&gt;&lt;P&gt;Hardware: Variscite's imx8mp board&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 19:50:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-PCIE-Legacy-Interrupt-using-uio/m-p/1510390#M194181</guid>
      <dc:creator>Samhitha_Kashyap</dc:creator>
      <dc:date>2022-08-23T19:50:29Z</dc:date>
    </item>
    <item>
      <title>回复： IMX8MP PCIE Legacy Interrupt using uio</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-PCIE-Legacy-Interrupt-using-uio/m-p/1532421#M195974</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am porting i210 on the imx8mm board. Can you share me the dts arrange ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my problem.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/shorts/3jO6BhMUrl8" target="_blank"&gt;https://www.youtube.com/shorts/3jO6BhMUrl8&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can you give me a hand ?&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;tzeng015&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 02:37:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-PCIE-Legacy-Interrupt-using-uio/m-p/1532421#M195974</guid>
      <dc:creator>tzeng015</dc:creator>
      <dc:date>2022-10-05T02:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8MP PCIE Legacy Interrupt using uio</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-PCIE-Legacy-Interrupt-using-uio/m-p/1534874#M196161</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201902"&gt;@Samhitha_Kashyap&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;One needs to register interrupt using &lt;EM&gt;request_irq() &lt;/EM&gt;to get the interrupt in the &lt;EM&gt;/proc/interrupts. &lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Could you please confirm if you have done that with the driver that you mentioned?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;BR /&gt;Best Regards,&lt;BR /&gt;Dhruvit.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 13:06:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-PCIE-Legacy-Interrupt-using-uio/m-p/1534874#M196161</guid>
      <dc:creator>Dhruvit</dc:creator>
      <dc:date>2022-10-10T13:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8MP PCIE Legacy Interrupt using uio</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-PCIE-Legacy-Interrupt-using-uio/m-p/1538615#M196446</link>
      <description>Hi Dhruvit,&lt;BR /&gt;&lt;BR /&gt;Thanks for the reply!&lt;BR /&gt;&lt;BR /&gt;Yes, I have used the request_irq() in the driver and can see the interrupt registered in /proc/interrupts.&lt;BR /&gt;Please find the interrupt registered in /proc/interrupts:&lt;BR /&gt;#cat /proc/interrupts&lt;BR /&gt;233: 0 0 0 0 GICv3 158 Level uio_pci_generic&lt;BR /&gt;&lt;BR /&gt;But when I wait for the interrupt in user application, I don't receive the interrupts and there is no change in /proc/interrupts.&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Samhitha Kashyap</description>
      <pubDate>Mon, 17 Oct 2022 14:07:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-PCIE-Legacy-Interrupt-using-uio/m-p/1538615#M196446</guid>
      <dc:creator>Samhitha_Kashyap</dc:creator>
      <dc:date>2022-10-17T14:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8MP PCIE Legacy Interrupt using uio</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-PCIE-Legacy-Interrupt-using-uio/m-p/1545460#M196960</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201902"&gt;@Samhitha_Kashyap&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Please note that the example code to which you are referring to doesn't clear the &lt;EM&gt;interrupt_disable bit[10].&lt;/EM&gt; It only reads the interrupt status bit.&lt;/P&gt;
&lt;P&gt;As described in uio-howto,&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;"On each interrupt, uio_pci_generic sets the Interrupt Disable bit.&lt;/EM&gt;&lt;EM&gt; This prevents the device from generating further interrupts until the&lt;/EM&gt;&lt;EM&gt; bit is cleared. The user-space driver should clear this bit before&lt;/EM&gt;&lt;EM&gt; blocking and waiting for more interrupts."&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;One should clear the &lt;EM&gt;interrupt_disable&lt;/EM&gt; bit before waiting for interrupts.&lt;/P&gt;
&lt;P&gt;Could you please try adding the above functionality in the user-space code?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Dhruvit.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 05:27:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-PCIE-Legacy-Interrupt-using-uio/m-p/1545460#M196960</guid>
      <dc:creator>Dhruvit</dc:creator>
      <dc:date>2022-10-28T05:27:44Z</dc:date>
    </item>
  </channel>
</rss>

