<?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中的主题 i.MX6/7 Pcie legacy interrupt</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-7-Pcie-legacy-interrupt/m-p/730464#M113607</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I get some trouble with the PCIe, problem occur with Pcie legacy interrupt, interrupt never fire.&lt;/P&gt;&lt;P&gt;i.MX6 with Apalis Evaluation Board&lt;/P&gt;&lt;P&gt;i.MX7 with Sabre RevD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tested with Linux rel_imx_4.1.15_2.1.0_ga:&lt;/P&gt;&lt;P&gt;In this release all works also pcie legacy interrupt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Linux rel_imx_4.9.x_1.0.0_ga:&lt;/P&gt;&lt;P&gt;In this release legacy interrupt is broken, and not working.&lt;/P&gt;&lt;P&gt;MSI interrupt working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Pcie endpoint is a Ath9K and Ath10k.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Consideration over Linux Pcie Host driver.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The pci Host code in linux is hardly-changed from 4.1 to 4.9, so i think some change break, imx6/7 initialization.&lt;/P&gt;&lt;P&gt;A big change of Designware host drivers is example ATU support added.&lt;/P&gt;&lt;P&gt;In i.MX6/7 Manual is not described how PCIe RootComplex is connected i.MX6/7 platform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Other Pcie Host drivers&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Other Soc with "i suppose" same Pcie silicon implementations, initialize legacy interrupt, and handle it.&lt;/P&gt;&lt;P&gt;I'm referring to: &lt;SPAN style="font-family: courier\ new, courier, monospace;"&gt;pci-exynos.c&lt;/SPAN&gt; and &lt;SPAN style="font-family: courier\ new, courier, monospace;"&gt;pci-keystone-dw.c&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;It also write some register, called IRQ_INTA_ASSERT and friends.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, i think a help from NXP is required for let this works in Linux 4.9 and later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 May 2018 15:38:25 GMT</pubDate>
    <dc:creator>andreagreco</dc:creator>
    <dc:date>2018-05-07T15:38:25Z</dc:date>
    <item>
      <title>i.MX6/7 Pcie legacy interrupt</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-7-Pcie-legacy-interrupt/m-p/730464#M113607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I get some trouble with the PCIe, problem occur with Pcie legacy interrupt, interrupt never fire.&lt;/P&gt;&lt;P&gt;i.MX6 with Apalis Evaluation Board&lt;/P&gt;&lt;P&gt;i.MX7 with Sabre RevD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tested with Linux rel_imx_4.1.15_2.1.0_ga:&lt;/P&gt;&lt;P&gt;In this release all works also pcie legacy interrupt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Linux rel_imx_4.9.x_1.0.0_ga:&lt;/P&gt;&lt;P&gt;In this release legacy interrupt is broken, and not working.&lt;/P&gt;&lt;P&gt;MSI interrupt working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Pcie endpoint is a Ath9K and Ath10k.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Consideration over Linux Pcie Host driver.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The pci Host code in linux is hardly-changed from 4.1 to 4.9, so i think some change break, imx6/7 initialization.&lt;/P&gt;&lt;P&gt;A big change of Designware host drivers is example ATU support added.&lt;/P&gt;&lt;P&gt;In i.MX6/7 Manual is not described how PCIe RootComplex is connected i.MX6/7 platform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Other Pcie Host drivers&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Other Soc with "i suppose" same Pcie silicon implementations, initialize legacy interrupt, and handle it.&lt;/P&gt;&lt;P&gt;I'm referring to: &lt;SPAN style="font-family: courier\ new, courier, monospace;"&gt;pci-exynos.c&lt;/SPAN&gt; and &lt;SPAN style="font-family: courier\ new, courier, monospace;"&gt;pci-keystone-dw.c&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;It also write some register, called IRQ_INTA_ASSERT and friends.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, i think a help from NXP is required for let this works in Linux 4.9 and later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2018 15:38:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-7-Pcie-legacy-interrupt/m-p/730464#M113607</guid>
      <dc:creator>andreagreco</dc:creator>
      <dc:date>2018-05-07T15:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6/7 Pcie legacy interrupt</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-7-Pcie-legacy-interrupt/m-p/730465#M113608</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 do not know if this could help. It seems that I am facing the similar issue with the legacy interrupt (imx8 kernel 4.9). I think the below test could prove that. I changed the ath10k driver to legacy mode(see patch below). after that the wlan driver failed to bring up. However in default mode the wlan driver works fine. In default it uses MSI interrupt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;diff -uNr kernel-source-patched/drivers/net/wireless/ath/ath10k/pci.c kernel-source-debug/drivers/net/wireless/ath/ath10k/pci.c&lt;BR /&gt;--- kernel-source-patched/drivers/net/wireless/ath/ath10k/pci.c 2018-04-16 10:57:55.504484324 +0100&lt;BR /&gt;+++ kernel-source-debug/drivers/net/wireless/ath/ath10k/pci.c 2018-05-23 13:43:48.270960913 +0100&lt;BR /&gt;@@ -38,11 +38,11 @@&lt;BR /&gt; ATH10K_PCI_RESET_WARM_ONLY = 1,&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;-static unsigned int ath10k_pci_irq_mode = ATH10K_PCI_IRQ_AUTO;&lt;BR /&gt;+static unsigned int ath10k_pci_irq_mode = ATH10K_PCI_IRQ_LEGACY;&lt;BR /&gt; static unsigned int ath10k_pci_reset_mode = ATH10K_PCI_RESET_AUTO;&lt;/P&gt;&lt;P&gt;module_param_named(irq_mode, ath10k_pci_irq_mode, uint, 0644);&lt;BR /&gt;-MODULE_PARM_DESC(irq_mode, "0: auto, 1: legacy, 2: msi (default: 0)");&lt;BR /&gt;+MODULE_PARM_DESC(irq_mode, "0: auto, 1: legacy, 2: msi (default: 1)");&lt;/P&gt;&lt;P&gt;module_param_named(reset_mode, ath10k_pci_reset_mode, uint, 0644);&lt;BR /&gt; MODULE_PARM_DESC(reset_mode, "0: auto, 1: warm only (default: 0)");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;==dmesg legacy==&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;[&amp;nbsp; &amp;nbsp; 2.362793] ath10k_pci 0000:01:00.0: pci irq legacy oper_irq_mode 1 irq_mode 1 reset_mode 0&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;[&amp;nbsp; &amp;nbsp;10.271765] ath10k_pci 0000:01:00.0: failed to connect htt (-110)&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2018 13:38:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-7-Pcie-legacy-interrupt/m-p/730465#M113608</guid>
      <dc:creator>garyjiang</dc:creator>
      <dc:date>2018-05-23T13:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6/7 Pcie legacy interrupt</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-7-Pcie-legacy-interrupt/m-p/730466#M113609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solution is to disable MSI:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u-boot&lt;/P&gt;&lt;P&gt;setenv mmcargs setenv bootargs console=${console} root=${mmcroot} &lt;SPAN style="color: red;"&gt;pci=nomsi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;saveenv&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 06:37:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-7-Pcie-legacy-interrupt/m-p/730466#M113609</guid>
      <dc:creator>MT</dc:creator>
      <dc:date>2018-06-06T06:37:25Z</dc:date>
    </item>
  </channel>
</rss>

