<?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: PCIe Serial Controller in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/PCIe-Serial-Controller/m-p/491195#M78824</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suggestions for the first round of checks:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Use the BSP kernel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Make sure i.MX6 PCIe support is correctly enabled in the kernel configuration. See i.MX Linux Reference Manual,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Section 41.2.2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Check that the kernel recognizes your PCIe card, use `lspci' or `cat /proc/bus/pci/devices&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Check that the interrupt is owned by your driver: `cat /proc/interrupts`&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NXP i.MX Linux BSP and accompanying documentation can be obtained from here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/i.mx-applications-processors-based-on-arm-cores/i.mx53-processors/embedded-linux-for-i.mx-applications-processors:IMXLINUX?code=IMXLINUX&amp;amp;nodeId=0150522FC8ZrDR988D" title="http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/i.mx-applications-processors-based-on-arm-cores/i.mx53-processors/embedded-linux-for-i.mx-applications-processors:IMXLINUX?code=IMXLINUX&amp;amp;nodeId=0150522FC8ZrDR988D"&gt;Embedded Linux for i.MX Applications Processo|NXP&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Platon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jan 2016 11:09:09 GMT</pubDate>
    <dc:creator>bpe</dc:creator>
    <dc:date>2016-01-19T11:09:09Z</dc:date>
    <item>
      <title>PCIe Serial Controller</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/PCIe-Serial-Controller/m-p/491194#M78823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working with a custom carrier board for the congatec i.mx6 SOM.&amp;nbsp; The carrier board has a Exar Corp. Serial Controller XR17V358 connected through PCIe.&amp;nbsp; I have enabled support for the serial controller through the following menuconfig options:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Device Drivers --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Character devices --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Serial drivers --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8250/16550 and compatible serial support (CONFIG_SERIAL_8250)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8250/16550 PCI device support (CONFIG_SERIAL_8250_PCI)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (8) Maximum number of 8250/16550 serial ports (CONFIG_SERIAL_8250_NR_UARTS)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (8) Maximum number of 8250/16550 serial ports to register at runtime (CONFIG_SERIAL_8250_RUNTIME_UARTS)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Extended 8250/16550 serial driver options (CONFIG_SERIAL_8250_EXTENDED)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Support more than 4 legacy serial ports (CONFIG_SERIAL_8250_MANY_PORTS)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Support for sharing serial interrupts (CONFIG_SERIAL_8250_SHARE_IRQ)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The module seems to load correctly and in dev I have ttyS0 through ttys7.&amp;nbsp; Using stty on the dev devices original caused and error and I fixed that by following this post &lt;A href="https://community.nxp.com/thread/305881"&gt;Nobody Cared issue&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when I try to read or write to the serial device the kernel prints out the following messages about an irq issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;irq 155: nobody cared (try booting with the "irqpoll" option)&lt;/P&gt;&lt;P&gt;CPU: 0 PID: 651 Comm: sh Not tainted 3.14.28-1.0.0_qmx6+g644b035 #1&lt;/P&gt;&lt;P&gt;[&amp;lt;800155f0&amp;gt;] (unwind_backtrace) from [&amp;lt;800116d4&amp;gt;] (show_stack+0x10/0x14)&lt;/P&gt;&lt;P&gt;[&amp;lt;800116d4&amp;gt;] (show_stack) from [&amp;lt;806ad1d8&amp;gt;] (dump_stack+0x7c/0xbc)&lt;/P&gt;&lt;P&gt;[&amp;lt;806ad1d8&amp;gt;] (dump_stack) from [&amp;lt;8006a0b8&amp;gt;] (__report_bad_irq+0x28/0xc4)&lt;/P&gt;&lt;P&gt;[&amp;lt;8006a0b8&amp;gt;] (__report_bad_irq) from [&amp;lt;8006a628&amp;gt;] (note_interrupt+0x260/0x2b0)&lt;/P&gt;&lt;P&gt;[&amp;lt;8006a628&amp;gt;] (note_interrupt) from [&amp;lt;8006834c&amp;gt;] (handle_irq_event_percpu+0x118/0x180)&lt;/P&gt;&lt;P&gt;[&amp;lt;8006834c&amp;gt;] (handle_irq_event_percpu) from [&amp;lt;800683f0&amp;gt;] (handle_irq_event+0x3c/0x5c)&lt;/P&gt;&lt;P&gt;[&amp;lt;800683f0&amp;gt;] (handle_irq_event) from [&amp;lt;8006b234&amp;gt;] (handle_fasteoi_irq+0x84/0x14c)&lt;/P&gt;&lt;P&gt;[&amp;lt;8006b234&amp;gt;] (handle_fasteoi_irq) from [&amp;lt;80067a48&amp;gt;] (generic_handle_irq+0x2c/0x3c)&lt;/P&gt;&lt;P&gt;[&amp;lt;80067a48&amp;gt;] (generic_handle_irq) from [&amp;lt;8000ed4c&amp;gt;] (handle_IRQ+0x40/0x90)&lt;/P&gt;&lt;P&gt;[&amp;lt;8000ed4c&amp;gt;] (handle_IRQ) from [&amp;lt;8000856c&amp;gt;] (gic_handle_irq+0x2c/0x5c)&lt;/P&gt;&lt;P&gt;[&amp;lt;8000856c&amp;gt;] (gic_handle_irq) from [&amp;lt;800121c0&amp;gt;] (__irq_svc+0x40/0x70)&lt;/P&gt;&lt;P&gt;Exception stack(0xd8867b38 to 0xd8867b80)&lt;/P&gt;&lt;P&gt;7b20:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00000000 00404100&lt;/P&gt;&lt;P&gt;7b40: 80d84e40 00000000 00000282 0000c080 00007458 00005398 d8866000 000080d0&lt;/P&gt;&lt;P&gt;7b60: 00000000 00000000 80014cd0 d8867b80 80031684 80031694 20080113 ffffffff&lt;/P&gt;&lt;P&gt;[&amp;lt;800121c0&amp;gt;] (__irq_svc) from [&amp;lt;80031694&amp;gt;] (__do_softirq+0xc8/0x248)&lt;/P&gt;&lt;P&gt;[&amp;lt;80031694&amp;gt;] (__do_softirq) from [&amp;lt;80031a9c&amp;gt;] (irq_exit+0xb8/0xf4)&lt;/P&gt;&lt;P&gt;[&amp;lt;80031a9c&amp;gt;] (irq_exit) from [&amp;lt;8000ed50&amp;gt;] (handle_IRQ+0x44/0x90)&lt;/P&gt;&lt;P&gt;[&amp;lt;8000ed50&amp;gt;] (handle_IRQ) from [&amp;lt;8000856c&amp;gt;] (gic_handle_irq+0x2c/0x5c)&lt;/P&gt;&lt;P&gt;[&amp;lt;8000856c&amp;gt;] (gic_handle_irq) from [&amp;lt;800121c0&amp;gt;] (__irq_svc+0x40/0x70)&lt;/P&gt;&lt;P&gt;Exception stack(0xd8867c08 to 0xd8867c50)&lt;/P&gt;&lt;P&gt;7c00:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 80d82184 00000001 00000000 d8867ca4 00000000 80d82180&lt;/P&gt;&lt;P&gt;7c20: 00000000 00000141 00000001 000080d0 00000000 00000000 00000000 d8867c50&lt;/P&gt;&lt;P&gt;7c40: 80d81080 800a0720 60080013 ffffffff&lt;/P&gt;&lt;P&gt;[&amp;lt;800121c0&amp;gt;] (__irq_svc) from [&amp;lt;800a0720&amp;gt;] (get_page_from_freelist+0x38/0x5b0)&lt;/P&gt;&lt;P&gt;[&amp;lt;800a0720&amp;gt;] (get_page_from_freelist) from [&amp;lt;800a1808&amp;gt;] (__alloc_pages_nodemask+0x128/0x978)&lt;/P&gt;&lt;P&gt;[&amp;lt;800a1808&amp;gt;] (__alloc_pages_nodemask) from [&amp;lt;800a2068&amp;gt;] (__get_free_pages+0x10/0x24)&lt;/P&gt;&lt;P&gt;[&amp;lt;800a2068&amp;gt;] (__get_free_pages) from [&amp;lt;8031fb78&amp;gt;] (uart_startup.part.13+0x148/0x19c)&lt;/P&gt;&lt;P&gt;[&amp;lt;8031fb78&amp;gt;] (uart_startup.part.13) from [&amp;lt;80320504&amp;gt;] (uart_open+0xe8/0x15c)&lt;/P&gt;&lt;P&gt;[&amp;lt;80320504&amp;gt;] (uart_open) from [&amp;lt;80305d80&amp;gt;] (tty_open+0x164/0x60c)&lt;/P&gt;&lt;P&gt;[&amp;lt;80305d80&amp;gt;] (tty_open) from [&amp;lt;800d976c&amp;gt;] (chrdev_open+0xa4/0x178)&lt;/P&gt;&lt;P&gt;[&amp;lt;800d976c&amp;gt;] (chrdev_open) from [&amp;lt;800d4000&amp;gt;] (do_dentry_open.isra.17+0x110/0x294)&lt;/P&gt;&lt;P&gt;[&amp;lt;800d4000&amp;gt;] (do_dentry_open.isra.17) from [&amp;lt;800d4254&amp;gt;] (finish_open+0x20/0x38)&lt;/P&gt;&lt;P&gt;[&amp;lt;800d4254&amp;gt;] (finish_open) from [&amp;lt;800e1f10&amp;gt;] (do_last.isra.58+0x6dc/0xc34)&lt;/P&gt;&lt;P&gt;[&amp;lt;800e1f10&amp;gt;] (do_last.isra.58) from [&amp;lt;800e251c&amp;gt;] (path_openat+0xb4/0x5c8)&lt;/P&gt;&lt;P&gt;[&amp;lt;800e251c&amp;gt;] (path_openat) from [&amp;lt;800e3938&amp;gt;] (do_filp_open+0x2c/0x88)&lt;/P&gt;&lt;P&gt;[&amp;lt;800e3938&amp;gt;] (do_filp_open) from [&amp;lt;800d51c4&amp;gt;] (do_sys_open+0x104/0x1c8)&lt;/P&gt;&lt;P&gt;[&amp;lt;800d51c4&amp;gt;] (do_sys_open) from [&amp;lt;8000e460&amp;gt;] (ret_fast_syscall+0x0/0x30)&lt;/P&gt;&lt;P&gt;handlers:&lt;/P&gt;&lt;P&gt;[&amp;lt;802cbe08&amp;gt;] pcie_pme_irq&lt;/P&gt;&lt;P&gt;Disabling IRQ #155&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at the i.mx6 datasheet irq 155 is a pcie interrupt.&amp;nbsp; I am not sure what to look at from this point.&amp;nbsp; Could the serial controller driver not be handling the interrupt correctly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2016 15:50:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/PCIe-Serial-Controller/m-p/491194#M78823</guid>
      <dc:creator>gjohnson</dc:creator>
      <dc:date>2016-01-14T15:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: PCIe Serial Controller</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/PCIe-Serial-Controller/m-p/491195#M78824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suggestions for the first round of checks:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Use the BSP kernel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Make sure i.MX6 PCIe support is correctly enabled in the kernel configuration. See i.MX Linux Reference Manual,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Section 41.2.2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Check that the kernel recognizes your PCIe card, use `lspci' or `cat /proc/bus/pci/devices&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Check that the interrupt is owned by your driver: `cat /proc/interrupts`&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NXP i.MX Linux BSP and accompanying documentation can be obtained from here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/i.mx-applications-processors-based-on-arm-cores/i.mx53-processors/embedded-linux-for-i.mx-applications-processors:IMXLINUX?code=IMXLINUX&amp;amp;nodeId=0150522FC8ZrDR988D" title="http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/i.mx-applications-processors-based-on-arm-cores/i.mx53-processors/embedded-linux-for-i.mx-applications-processors:IMXLINUX?code=IMXLINUX&amp;amp;nodeId=0150522FC8ZrDR988D"&gt;Embedded Linux for i.MX Applications Processo|NXP&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Platon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 11:09:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/PCIe-Serial-Controller/m-p/491195#M78824</guid>
      <dc:creator>bpe</dc:creator>
      <dc:date>2016-01-19T11:09:09Z</dc:date>
    </item>
  </channel>
</rss>

