<?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, SPI SDMA, Problem with long transfer</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX-SPI-SDMA-Problem-with-long-transfer/m-p/1586484#M200499</link>
    <description>SDMA firmware can be found 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;BR /&gt;&lt;BR /&gt;For i.MX8, the file sdma-imx7d.bin must be copied to /lib/firmware/&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Christian</description>
    <pubDate>Mon, 23 Jan 2023 07:38:52 GMT</pubDate>
    <dc:creator>ceggers</dc:creator>
    <dc:date>2023-01-23T07:38:52Z</dc:date>
    <item>
      <title>iMX, SPI SDMA, Problem with long transfer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX-SPI-SDMA-Problem-with-long-transfer/m-p/762298#M118420</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'm working on a iMX7d with kernel 4.1.15 from the freescale repo. But the same happened on an iMX6q with the same kernel.&lt;/P&gt;&lt;P&gt;I want to use SPI with activated SDMA.&lt;/P&gt;&lt;P&gt;It works fine with 64 bytes in one burst. When I increase to 128 bytes the transfer times out after 3s. And transfers after that block my device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The timeout happens in drivers/spi/spi-imx.c in function spi_imx_dma_transfer. 3s is the default timeout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got lost in the interaction of spidev, spi, spi-imx and dmaengine and was hoping anybody had a similar experience and maybe a solution for it. Or an idea what to look at.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and best regards,&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS:&lt;/P&gt;&lt;P&gt;The spi is used by the spidev driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PPS:&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;spi mode: 0x3&lt;BR /&gt;bits per word: 32&lt;BR /&gt;max speed: 500000 Hz (500 KHz)&lt;BR /&gt;size 127&lt;BR /&gt;len 128, delay 0, speed 500000, bpw 32&lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 82.184335] spi_master spi0: I/O Error in DMA TX:80&lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 82.190269] spi_master spi0: failed to transfer one message from queue&lt;BR /&gt;can't send spi message: Connection timed out&lt;BR /&gt;./sendSPI.sh: line 13:&amp;nbsp;&amp;nbsp; 465 Aborted&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; ./spi-tool -D /dev/spidev0.1 -b32 -H -O -p "12345678901234567890123456789012345678902345678901234567890123456789012345678901234567890123456789012346578901234567980123456789"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;spi-tool is the spidev test tool included in the kernel sources.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2018 15:05:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX-SPI-SDMA-Problem-with-long-transfer/m-p/762298#M118420</guid>
      <dc:creator>sfe</dc:creator>
      <dc:date>2018-01-26T15:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: iMX, SPI SDMA, Problem with long transfer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX-SPI-SDMA-Problem-with-long-transfer/m-p/1585505#M200404</link>
      <description>&lt;P&gt;Hi, I was wondering whether you have found solution to your problem. I have same problem on imx8m.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 14:02:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX-SPI-SDMA-Problem-with-long-transfer/m-p/1585505#M200404</guid>
      <dc:creator>ppavacic</dc:creator>
      <dc:date>2023-01-19T14:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: iMX, SPI SDMA, Problem with long transfer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX-SPI-SDMA-Problem-with-long-transfer/m-p/1586078#M200451</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;having the SDMA firmware available helps.&lt;BR /&gt;It needs to be present in the filesystem to be loaded by the kernel.&lt;/P&gt;&lt;P&gt;/lib/firmware/imx/sdma&lt;BR /&gt;&lt;BR /&gt;There is a download of the binary (that's the only way you get it from NXP) somewhere. But I can't find the note in my documents right now.&lt;/P&gt;&lt;P&gt;I hope that helps. Sorry for not having the links on hand.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 14:52:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX-SPI-SDMA-Problem-with-long-transfer/m-p/1586078#M200451</guid>
      <dc:creator>sfe</dc:creator>
      <dc:date>2023-01-20T14:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: iMX, SPI SDMA, Problem with long transfer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX-SPI-SDMA-Problem-with-long-transfer/m-p/1586484#M200499</link>
      <description>SDMA firmware can be found 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;BR /&gt;&lt;BR /&gt;For i.MX8, the file sdma-imx7d.bin must be copied to /lib/firmware/&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Christian</description>
      <pubDate>Mon, 23 Jan 2023 07:38:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX-SPI-SDMA-Problem-with-long-transfer/m-p/1586484#M200499</guid>
      <dc:creator>ceggers</dc:creator>
      <dc:date>2023-01-23T07:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: iMX, SPI SDMA, Problem with long transfer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX-SPI-SDMA-Problem-with-long-transfer/m-p/1586515#M200503</link>
      <description>&lt;P&gt;Thank you for your reply,&lt;/P&gt;&lt;P&gt;Sadly I already have sdma-imx7d.bin so that isn't the problem.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Paulo&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 08:41:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX-SPI-SDMA-Problem-with-long-transfer/m-p/1586515#M200503</guid>
      <dc:creator>ppavacic</dc:creator>
      <dc:date>2023-01-23T08:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: iMX, SPI SDMA, Problem with long transfer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX-SPI-SDMA-Problem-with-long-transfer/m-p/1586524#M200505</link>
      <description>Hi Paulo,&lt;BR /&gt;&lt;BR /&gt;do you also use kernel 4.1.15 from NXP? I think that this version is a little bit outdated.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Christian</description>
      <pubDate>Mon, 23 Jan 2023 09:09:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX-SPI-SDMA-Problem-with-long-transfer/m-p/1586524#M200505</guid>
      <dc:creator>ceggers</dc:creator>
      <dc:date>2023-01-23T09:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: iMX, SPI SDMA, Problem with long transfer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX-SPI-SDMA-Problem-with-long-transfer/m-p/1586535#M200506</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using kernel version 5.15.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Paulo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 09:37:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX-SPI-SDMA-Problem-with-long-transfer/m-p/1586535#M200506</guid>
      <dc:creator>ppavacic</dc:creator>
      <dc:date>2023-01-23T09:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: iMX, SPI SDMA, Problem with long transfer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX-SPI-SDMA-Problem-with-long-transfer/m-p/1586640#M200521</link>
      <description>&lt;P&gt;Can you please share some more details?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;What exactly does not work?&lt;/LI&gt;&lt;LI&gt;Which error messages to you get?&lt;/LI&gt;&lt;LI&gt;Which error codes do you get in the driver / your application?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;regards,&lt;BR /&gt;Christian&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 14:18:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX-SPI-SDMA-Problem-with-long-transfer/m-p/1586640#M200521</guid>
      <dc:creator>ceggers</dc:creator>
      <dc:date>2023-01-23T14:18:50Z</dc:date>
    </item>
  </channel>
</rss>

