<?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のトピックLinux interfering with using DMA from M4</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Linux-interfering-with-using-DMA-from-M4/m-p/1012911#M149998</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 would like to use DMA to transfer data using SPI from the M4. I have a process in place where this works, but viewing the output on the scope, the process fails after a period of time (mostly random). Linux is running from the application processor and I thought it may be interfering with the DMA channels used on the M4.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I verified that Linux was interfering with the DMA/SPI transfer by disabling access to DMA for Linux by using the RDC. I viewed the output on a scope and the SPI transfer was complete. When disabling DMA for Linux, Linux crashed, so this isn't a real solution.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;What I would like to do is set aside a few channels of the DMA to only be used for the M4. I'm trying to find where in the Linux build that the channel count exists, so that I could limit the end channels to be only used in the M4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dan K.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Feb 2020 17:49:11 GMT</pubDate>
    <dc:creator>DanKSI</dc:creator>
    <dc:date>2020-02-11T17:49:11Z</dc:date>
    <item>
      <title>Linux interfering with using DMA from M4</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Linux-interfering-with-using-DMA-from-M4/m-p/1012911#M149998</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 would like to use DMA to transfer data using SPI from the M4. I have a process in place where this works, but viewing the output on the scope, the process fails after a period of time (mostly random). Linux is running from the application processor and I thought it may be interfering with the DMA channels used on the M4.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I verified that Linux was interfering with the DMA/SPI transfer by disabling access to DMA for Linux by using the RDC. I viewed the output on a scope and the SPI transfer was complete. When disabling DMA for Linux, Linux crashed, so this isn't a real solution.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;What I would like to do is set aside a few channels of the DMA to only be used for the M4. I'm trying to find where in the Linux build that the channel count exists, so that I could limit the end channels to be only used in the M4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dan K.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2020 17:49:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Linux-interfering-with-using-DMA-from-M4/m-p/1012911#M149998</guid>
      <dc:creator>DanKSI</dc:creator>
      <dc:date>2020-02-11T17:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Linux interfering with using DMA from M4</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Linux-interfering-with-using-DMA-from-M4/m-p/1012912#M149999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dma channels allocation can be found in sect.7.1.4 SDMA event mapping&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/webapp/Download?colCode=IMX8MMRM" target="_blank"&gt;&lt;STRONG&gt;i.MX 8M Mini Applications Processor Reference Manual&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;DMA usage can be disabled by removing "dma" entries in dts file&lt;/P&gt;&lt;P&gt;(for example for ecspi1 - ecspi1: ecspi@30820000 {..)&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/fsl-imx8mm.dtsi?h=imx_4.14.98_2.0.0_ga" title="https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/fsl-imx8mm.dtsi?h=imx_4.14.98_2.0.0_ga"&gt;fsl-imx8mm.dtsi\freescale\dts\boot\arm64\arch - linux-imx - i.MX Linux kernel&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>Wed, 12 Feb 2020 04:03:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Linux-interfering-with-using-DMA-from-M4/m-p/1012912#M149999</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-02-12T04:03:38Z</dc:date>
    </item>
  </channel>
</rss>

