<?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 iMX8MN M7 Core SDMA Question in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MN-M7-Core-SDMA-Question/m-p/2065107#M235293</link>
    <description>&lt;P&gt;Quick question about using the SDMA from the 8M Nano's M7 core. &amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to perform simultaneous and asynchronous DMA data transfers on the ECSPI and SAI interfaces from the Cortex M7 domain. &amp;nbsp;I'm having trouble getting this to work.&lt;/P&gt;&lt;P&gt;It involves using both the SDMAARM1 and the SDMAARM3 instances at the same time. &amp;nbsp;Is there anyone who can quickly tell me if this should be possible? &amp;nbsp;Is the system designed such that multiple DMA instances can work in parallel?&lt;BR /&gt;&lt;BR /&gt;I do have the ECSPI2/DMA1 transfer, and the SAI3/DMA3 transfer working fine individually. &amp;nbsp;However when I attempt a SPI DMA transfer while the SAI DMA is running, the SPI DMA reports busy and never sends any data.&lt;BR /&gt;&lt;BR /&gt;Any insight here would be appreciated!&lt;/P&gt;</description>
    <pubDate>Thu, 20 Mar 2025 01:30:03 GMT</pubDate>
    <dc:creator>jaredwheeler</dc:creator>
    <dc:date>2025-03-20T01:30:03Z</dc:date>
    <item>
      <title>iMX8MN M7 Core SDMA Question</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MN-M7-Core-SDMA-Question/m-p/2065107#M235293</link>
      <description>&lt;P&gt;Quick question about using the SDMA from the 8M Nano's M7 core. &amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to perform simultaneous and asynchronous DMA data transfers on the ECSPI and SAI interfaces from the Cortex M7 domain. &amp;nbsp;I'm having trouble getting this to work.&lt;/P&gt;&lt;P&gt;It involves using both the SDMAARM1 and the SDMAARM3 instances at the same time. &amp;nbsp;Is there anyone who can quickly tell me if this should be possible? &amp;nbsp;Is the system designed such that multiple DMA instances can work in parallel?&lt;BR /&gt;&lt;BR /&gt;I do have the ECSPI2/DMA1 transfer, and the SAI3/DMA3 transfer working fine individually. &amp;nbsp;However when I attempt a SPI DMA transfer while the SAI DMA is running, the SPI DMA reports busy and never sends any data.&lt;BR /&gt;&lt;BR /&gt;Any insight here would be appreciated!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2025 01:30:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MN-M7-Core-SDMA-Question/m-p/2065107#M235293</guid>
      <dc:creator>jaredwheeler</dc:creator>
      <dc:date>2025-03-20T01:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8MN M7 Core SDMA Question</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MN-M7-Core-SDMA-Question/m-p/2065349#M235316</link>
      <description>&lt;OL&gt;
&lt;LI&gt;In RDC settings, The SDMA1 is not assigned to M7 core.&lt;/LI&gt;
&lt;LI&gt;In ATF settings, the&amp;nbsp;&lt;SPAN data-teams="true"&gt;RDC peripheral write permission is not enabled.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;&amp;nbsp; So please try the following modify:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;In the the following, the item 1 is resolved by adding a&amp;nbsp;Peripheral_RdcSetting function, in which the SDMA1 is assigned to M7 core:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN data-teams="true"&gt;RDC_SetMasterDomainAssignment(RDC, kRDC_Master_SDMA1_PERIPH, &amp;amp;assignment);&lt;BR /&gt;RDC_SetMasterDomainAssignment(RDC, kRDC_Master_SDMA1_BURST, &amp;amp;assignment);&lt;BR /&gt;RDC_SetMasterDomainAssignment(RDC, kRDC_Master_SDMA1_SPBA1, &amp;amp;assignment);&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;&amp;nbsp; Moreover, the&amp;nbsp;RDC peripheral write permission need to be enabled in ATF:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;&amp;nbsp; Patch:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;diff --git a/plat/imx/imx8m/imx8mn/imx8mn_bl31_setup.c b/plat/imx/imx8m/imx8mn/imx8mn_bl31_setup.c&lt;BR /&gt;index 1c03ed16c..7f99df861 100644&lt;BR /&gt;--- a/plat/imx/imx8m/imx8mn/imx8mn_bl31_setup.c&lt;BR /&gt;+++ b/plat/imx/imx8m/imx8mn/imx8mn_bl31_setup.c&lt;BR /&gt;@@ -110,7 +110,7 @@ static const struct imx_rdc_cfg rdc[] = {&lt;BR /&gt;/* peripherals domain permission */&lt;BR /&gt;RDC_PDAPn(RDC_PDAP_UART4, D1R | D1W),&lt;BR /&gt;RDC_PDAPn(RDC_PDAP_UART2, D0R | D0W),&lt;BR /&gt;- RDC_PDAPn(RDC_PDAP_RDC, D0R | D0W | D1R),&lt;BR /&gt;+ RDC_PDAPn(RDC_PDAP_RDC, D0R | D0W | D1R | D1W),&lt;BR /&gt;&lt;BR /&gt;/* memory region */&lt;BR /&gt;RDC_MEM_REGIONn(16, 0x0, 0x0, 0xff),&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp; And for a test, user can just modify the register in u-boot with command：&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN data-teams="true"&gt;mw 0x303d0474 0x0000000f&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2025 07:48:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MN-M7-Core-SDMA-Question/m-p/2065349#M235316</guid>
      <dc:creator>Rita_Wang</dc:creator>
      <dc:date>2025-03-20T07:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8MN M7 Core SDMA Question</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MN-M7-Core-SDMA-Question/m-p/2068232#M235491</link>
      <description>&lt;P&gt;If you are using the mcux-sdk SDMA driver and using the same channel (e.g. channel1) for SDMA1 and SDMA3, this may be due to a bug in the SDMA driver.&lt;/P&gt;&lt;P&gt;On the A53, but I have encountered similar problems when trying to run UART4 and SAI3 on SDMA1 and SDMA3 respectively.&lt;BR /&gt;The problem was avoided by modifying s_SDMACCB[0][handle-&amp;gt;channel] in SDMA_HandleIRQ to s_SDMACCB[instance][handle-&amp;gt;channel].&lt;BR /&gt;It could also be avoided by using different channels (e.g. SDMA1 for channel 1, SDMA3 for channel 2).&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 02:43:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MN-M7-Core-SDMA-Question/m-p/2068232#M235491</guid>
      <dc:creator>spthx</dc:creator>
      <dc:date>2025-03-26T02:43:34Z</dc:date>
    </item>
  </channel>
</rss>

