<?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: i.mx6ull uart dma issue</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6ull-uart-dma-issue/m-p/1542869#M196782</link>
    <description>&lt;P&gt;Hi, using firmware 3.6, on latest 6.0.3 kernel from mainline, on imx6ull, makes me encounter exactly the same issue.&lt;/P&gt;&lt;P&gt;I have sdma as a module, and no firmware loading error.&lt;/P&gt;&lt;P&gt;# echo a &amp;gt; /dev/ttymxc1&lt;BR /&gt;[ 192.666219] imx_uart_dma_init...&lt;/P&gt;&lt;P&gt;Hangs during about 30 seconds since I have enabled DMA on uart in device tree&lt;/P&gt;&lt;P&gt;Any clues ?&lt;/P&gt;</description>
    <pubDate>Mon, 24 Oct 2022 17:58:28 GMT</pubDate>
    <dc:creator>tbultel</dc:creator>
    <dc:date>2022-10-24T17:58:28Z</dc:date>
    <item>
      <title>i.mx6ull uart dma issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6ull-uart-dma-issue/m-p/1190223#M165641</link>
      <description>&lt;P&gt;&lt;SPAN&gt;i use the kernel pulled from NXP's&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://source.codeaurora.org/external/imx/linux-imx" target="_blank" rel="nofollow noopener noreferrer"&gt;https://source.codeaurora.org/external/imx/linux-imx&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;branch imx_5.4.24_2.1.0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Default in that kernel's device tree , uart do not use DMA . &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And i need to enable uart dma in my product, so i modify:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;arch/arm/boot/dts/imx6ull-myboard.dts&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;amp;uart3 {&lt;BR /&gt;pinctrl-names = "default";&lt;BR /&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_uart3&amp;gt;;&lt;BR /&gt;+dmas = &amp;lt;&amp;amp;sdma 29 4 0&amp;gt;, &amp;lt;&amp;amp;sdma 30 4 0&amp;gt;;&lt;BR /&gt;+dma-names = "rx", "tx";&lt;BR /&gt;status = "okay";&lt;BR /&gt;};&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;drivers/tty/serial/imx.c&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;@@ -1315,6 +1315,7 @@ static int imx_uart_dma_init(struct imx_port *sport)&lt;BR /&gt;goto err;&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;+printk("imx_uart_dma_init: sport=%p done.\n", sport); // for make sure dma is enable&lt;BR /&gt;return 0;&lt;BR /&gt;err:&lt;BR /&gt;imx_uart_dma_exit(sport);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;it take 5 seconds to finish:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;root@Router:~# echo a &amp;gt; /dev/ttymxc2&lt;BR /&gt;[ 3795.288472] imx_uart_dma_init: sport=f416546c done.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="mailto:root@Router:~" target="_blank"&gt;root@Router:~#&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;why hang 5 seconds when uart send?&lt;/P&gt;&lt;P&gt;and tx num increate a lot even only send one data:&lt;/P&gt;&lt;P&gt;2: uart:IMX mmio:0x021EC000 irq:53 tx:28693 rx:28672 DSR|CD&lt;/P&gt;&lt;P&gt;2: uart:IMX mmio:0x021EC000 irq:53 tx:32790 rx:32768 DSR|CD&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 10:04:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6ull-uart-dma-issue/m-p/1190223#M165641</guid>
      <dc:creator>changbaoma</dc:creator>
      <dc:date>2020-11-27T10:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6ull uart dma issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6ull-uart-dma-issue/m-p/1190413#M165657</link>
      <description>&lt;P&gt;Hi changbaoma,&lt;/P&gt;&lt;P&gt;I also use an i.MX6ULL (with latest 5.4-rt kernel). Your device tree setup looks correct for me. Please check the following:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Does your UART work normally without DMA?&lt;/LI&gt;&lt;LI&gt;Do you get SDMA related messages in &lt;FONT face="courier new,courier"&gt;dmesg&lt;/FONT&gt;?&lt;/LI&gt;&lt;LI&gt;Do you use a SDMA firmware image?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Please post the full output of the dmesg command.&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;Christian&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 19:49:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6ull-uart-dma-issue/m-p/1190413#M165657</guid>
      <dc:creator>ceggers</dc:creator>
      <dc:date>2020-11-27T19:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6ull uart dma issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6ull-uart-dma-issue/m-p/1190472#M165660</link>
      <description>&lt;P&gt;Hi changbaoma&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;one can test this use case using i.MX6ULL EVK reference board with Demo&lt;/P&gt;
&lt;P&gt;images from link:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applications-processors:IMXLINUX?tab=In-Depth_Tab" target="_blank"&gt;https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applications-processors:IMXLINUX?tab=In-Depth_Tab&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
      <pubDate>Sat, 28 Nov 2020 04:36:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6ull-uart-dma-issue/m-p/1190472#M165660</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-11-28T04:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6ull uart dma issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6ull-uart-dma-issue/m-p/1190590#M165675</link>
      <description>&lt;P&gt;Thank you very much, ceggers&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Does your UART work normally without DMA?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Yes, witout DMA my&amp;nbsp;UART work well.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Do you get SDMA related messages in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;dmesg&lt;/FONT&gt;?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;root@Router:~# dmesg | grep dma -i&lt;BR /&gt;[ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool&lt;BR /&gt;[ 0.177471] DMA: preallocated 256 KiB pool for atomic coherent allocations&lt;BR /&gt;[ 0.560509] imx-sdma 20ec000.sdma: Direct firmware load for imx/sdma/sdma-imx6q.bin failed with error -2&lt;BR /&gt;[ 0.560552] imx-sdma 20ec000.sdma: Falling back to sysfs fallback for: imx/sdma/sdma-imx6q.bin&lt;BR /&gt;[ 0.564939] mxs-dma 1804000.dma-apbh: initialized&lt;BR /&gt;[ 2.341980] mmc1: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMA&lt;BR /&gt;&lt;STRONG&gt;[ 11.919465] imx-sdma 20ec000.sdma: loaded firmware 3.3&lt;/STRONG&gt;&lt;BR /&gt;[ 40.519523] imx_uart_dma_init: sport=f416546c iobase=0 done.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Do you use a SDMA firmware image?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;root@Router:~# ls /lib/firmware/imx/sdma/&lt;BR /&gt;.sdma-imx6q.bin.gen.o.cmd sdma-imx6q.bin.ihex&lt;BR /&gt;.sdma-imx7d.bin.gen.o.cmd sdma-imx7d.bin&lt;BR /&gt;sdma-imx6q.bin sdma-imx7d.bin.gen.S&lt;BR /&gt;sdma-imx6q.bin.gen.S sdma-imx7d.bin.gen.o&lt;BR /&gt;sdma-imx6q.bin.gen.o sdma-imx7d.bin.ihex&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attachment is my board dmesg info.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 00:09:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6ull-uart-dma-issue/m-p/1190590#M165675</guid>
      <dc:creator>changbaoma</dc:creator>
      <dc:date>2020-11-30T00:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6ull uart dma issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6ull-uart-dma-issue/m-p/1190838#M165705</link>
      <description>&lt;P&gt;Hi changbaoma,&lt;/P&gt;&lt;P&gt;it looks like initial loading of the SDMA firmware fails. This usually happens when the imx-sdma driver is built into the kernel. Please try building it as a kernel module.&lt;/P&gt;&lt;P&gt;Additionally, your SDMA firmware is outdated. Please git the latest version from here:&lt;BR /&gt;&lt;A href="https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/imx/sdma" target="_blank"&gt;https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/imx/sdma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;regards&lt;BR /&gt;Christian&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 09:47:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6ull-uart-dma-issue/m-p/1190838#M165705</guid>
      <dc:creator>ceggers</dc:creator>
      <dc:date>2020-11-30T09:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6ull uart dma issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6ull-uart-dma-issue/m-p/1190935#M165719</link>
      <description>&lt;P&gt;Thank you，&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/167087"&gt;@ceggers&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try your advise and respone back.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/37066"&gt;@igorpadykov&lt;/a&gt;&amp;nbsp; any idea?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 12:53:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6ull-uart-dma-issue/m-p/1190935#M165719</guid>
      <dc:creator>changbaoma</dc:creator>
      <dc:date>2020-11-30T12:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6ull uart dma issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6ull-uart-dma-issue/m-p/1193622#M165960</link>
      <description>&lt;P&gt;Thank you very much,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/167087"&gt;@ceggers&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You help me a lot. since update&amp;nbsp;&lt;SPAN&gt;SDMA firmware version form 3.3 to 3.5, the uarts work well in DMA mode.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you all the same&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/37066"&gt;@igorpadykov&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 02:56:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6ull-uart-dma-issue/m-p/1193622#M165960</guid>
      <dc:creator>changbaoma</dc:creator>
      <dc:date>2020-12-04T02:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6ull uart dma issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6ull-uart-dma-issue/m-p/1542869#M196782</link>
      <description>&lt;P&gt;Hi, using firmware 3.6, on latest 6.0.3 kernel from mainline, on imx6ull, makes me encounter exactly the same issue.&lt;/P&gt;&lt;P&gt;I have sdma as a module, and no firmware loading error.&lt;/P&gt;&lt;P&gt;# echo a &amp;gt; /dev/ttymxc1&lt;BR /&gt;[ 192.666219] imx_uart_dma_init...&lt;/P&gt;&lt;P&gt;Hangs during about 30 seconds since I have enabled DMA on uart in device tree&lt;/P&gt;&lt;P&gt;Any clues ?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 17:58:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6ull-uart-dma-issue/m-p/1542869#M196782</guid>
      <dc:creator>tbultel</dc:creator>
      <dc:date>2022-10-24T17:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6ull uart dma issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6ull-uart-dma-issue/m-p/1555420#M197642</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello, tbultel&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;On my side after updating&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;SDMA firmware version form 3.3 to 3.5, the uarts work well . You can get&amp;nbsp;latest SDMA firmware form&amp;nbsp;here:&lt;BR /&gt;&lt;A href="https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/imx/sdma" target="_blank" rel="nofollow noopener noreferrer"&gt;https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/imx/sdma&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 02:53:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6ull-uart-dma-issue/m-p/1555420#M197642</guid>
      <dc:creator>changbaoma</dc:creator>
      <dc:date>2022-11-17T02:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6ull uart dma issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6ull-uart-dma-issue/m-p/1555578#M197657</link>
      <description>&lt;P&gt;Hi Changbaoma,&lt;/P&gt;&lt;P&gt;I read you are running 'linux-imx" kernel, whereas mine is mainline.&lt;/P&gt;&lt;P&gt;Can you confirm ?&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 07:15:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6ull-uart-dma-issue/m-p/1555578#M197657</guid>
      <dc:creator>tbultel</dc:creator>
      <dc:date>2022-11-17T07:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6ull uart dma issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6ull-uart-dma-issue/m-p/1555750#M197677</link>
      <description>&lt;P&gt;Firstly, you need to check whether sdma firmware has been loaded by:&lt;/P&gt;&lt;P&gt;root@Router:~# dmesg | grep sdma&lt;BR /&gt;[ 0.593860] imx-sdma 20ec000.sdma: Direct firmware load for imx/sdma/sdma-imx6q.bin failed with error -2&lt;BR /&gt;[ 0.593899] imx-sdma 20ec000.sdma: Falling back to sysfs fallback for: imx/sdma/sdma-imx6q.bin&lt;BR /&gt;[ 14.518171] &lt;STRONG&gt;imx-sdma 20ec000.sdma: loaded firmware 3.5&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 10:36:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6ull-uart-dma-issue/m-p/1555750#M197677</guid>
      <dc:creator>changbaoma</dc:creator>
      <dc:date>2022-11-17T10:36:34Z</dc:date>
    </item>
  </channel>
</rss>

