<?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: Can't use ECSPI DMA function</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Can-t-use-ECSPI-DMA-function/m-p/865341#M131797</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="color: #000000;"&gt;Alee&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in general changing sdma behaviour may require modifying sdma scripts and&lt;/P&gt;&lt;P&gt;this can be supported only with NXP Professional Services:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/support/support/nxp-professional-services:PROFESSIONAL-SERVICE" title="https://www.nxp.com/support/support/nxp-professional-services:PROFESSIONAL-SERVICE"&gt;NXP Professional Services|NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&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>Thu, 10 Jan 2019 23:59:45 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2019-01-10T23:59:45Z</dc:date>
    <item>
      <title>Can't use ECSPI DMA function</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Can-t-use-ECSPI-DMA-function/m-p/865340#M131796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I want to use the ECSPI DMA function to transfer large amounts of data ,But i tesed in linux V3.14.52,it's used PIO function to transfer data,cause the CPU usage over 30&lt;EM&gt;%.Then I find the the driver spi-imx.c in /driver/spi directory,Only one transfer data size bigger than spi FIFO size(64 Bytes) will use the DMA function to transfer.&lt;/EM&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P style="padding-left: 30px;"&gt;static bool &lt;SPAN style="color: #ff0000;"&gt;spi_imx_can_dma&lt;/SPAN&gt;(struct spi_master *master, struct spi_device *spi, struct spi_transfer *transfer)&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;{&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;struct spi_imx_data *spi_imx = spi_master_get_devdata(master);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;if (spi_imx-&amp;gt;dma_is_inited &amp;amp;&amp;amp; (transfer-&amp;gt;len &amp;gt; spi_imx_get_fifosize(spi_imx)))&lt;/SPAN&gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return true;&lt;BR /&gt;&amp;nbsp;return false;&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yeah, I used the &lt;SPAN style="color: #ff0000;"&gt;spi_write&amp;nbsp;&lt;SPAN style="color: #000000;"&gt;to transfer one times&amp;nbsp; the data size less than 64Bytes(&lt;SPAN style="color: #ff0000;"&gt;the size limited by our hardware&lt;/SPAN&gt;).but I will transfer&amp;nbsp;a lot of&amp;nbsp;times,then my question is How to solve this contradiction.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;our board is Imx6D7C and used the linux kernel is 3.14.52.&amp;nbsp;&lt;BR /&gt;could you give me some help !&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;best regards&lt;BR /&gt;Alee&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2019 01:31:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Can-t-use-ECSPI-DMA-function/m-p/865340#M131796</guid>
      <dc:creator>1282497337</dc:creator>
      <dc:date>2019-01-10T01:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use ECSPI DMA function</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Can-t-use-ECSPI-DMA-function/m-p/865341#M131797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="color: #000000;"&gt;Alee&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in general changing sdma behaviour may require modifying sdma scripts and&lt;/P&gt;&lt;P&gt;this can be supported only with NXP Professional Services:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/support/support/nxp-professional-services:PROFESSIONAL-SERVICE" title="https://www.nxp.com/support/support/nxp-professional-services:PROFESSIONAL-SERVICE"&gt;NXP Professional Services|NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&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>Thu, 10 Jan 2019 23:59:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Can-t-use-ECSPI-DMA-function/m-p/865341#M131797</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2019-01-10T23:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use ECSPI DMA function</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Can-t-use-ECSPI-DMA-function/m-p/865342#M131798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi igor&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Thank you for your reply,I tested the SPI Master, used driver spidev &amp;amp; app is spidev_test&amp;nbsp;&lt;/P&gt;&lt;P&gt;if i&amp;nbsp;&amp;nbsp;transfer 80 byte at a time,spi master will use the DMA,and used the cpu 5.6% ,then transfer 60 bytes not use DMA , the cpu is 6.0%,but once transfer 2 bytes ,cpu more than 45%,I think is the system call&amp;nbsp; cause this problem .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;when i communicate with SPI Slave device ,I must read or write the device register and will transfer 1 or 2 bytes at a time then&amp;nbsp;resulting in high occupancy rate.do you have any idea to solve this problem&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2019 01:40:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Can-t-use-ECSPI-DMA-function/m-p/865342#M131798</guid>
      <dc:creator>1282497337</dc:creator>
      <dc:date>2019-01-14T01:40:03Z</dc:date>
    </item>
  </channel>
</rss>

