<?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 Re: Cortex-M4 goes in BusFault if accessing DMA devices while Linux is booting in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Cortex-M4-goes-in-BusFault-if-accessing-DMA-devices-while-Linux/m-p/1223729#M168710</link>
    <description>&lt;P&gt;Hi Francesco&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not think that SCU 1.7.0 fixes will be backported on SCU 1.2.x as Linux 4.14.98&lt;/P&gt;
&lt;P&gt;is quite old release, recommendation is to migrate to L5.4 kernels described on&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>Mon, 01 Feb 2021 04:17:01 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2021-02-01T04:17:01Z</dc:date>
    <item>
      <title>Cortex-M4 goes in BusFault if accessing DMA devices while Linux is booting</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Cortex-M4-goes-in-BusFault-if-accessing-DMA-devices-while-Linux/m-p/1223290#M168662</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;we have a custom iMX8QM board with FreeRTOS running on Cortex-M41 and Linux 4.14.98 (eCockpit) on the Cortex-A72 cores. System controller version is 1.2.11&lt;/P&gt;&lt;P&gt;If I run the following loop on the Cortex M41:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;    while (1)
    {
//        volatile uint32_t* spi0 = (volatile uint32_t*)0x5A000000u;
//        volatile uint32_t access = spi0[0];

//        volatile uint32_t* i2c0 = (volatile uint32_t*)0x5A800000u;
//        volatile uint32_t access = i2c0[0];

        volatile uint32_t* gpio1 = (volatile uint32_t*)0x5D490000u;
        volatile uint32_t access = gpio1[0];
    }&lt;/LI-CODE&gt;&lt;P&gt;accessing any of the memory-mapped address of DMA devices (tested with DMA_SPI controllers, DMA_I2C controllers, GPIO banks) I get a bus fault only if Linux is started, just after the kernel startup.&lt;/P&gt;&lt;P&gt;If I do not start the kernel, the loop on the M4 runs fine. If I break the loop (via JTAG) and I start the kernel, I can continue the loop execution. The fault happens only if there are DMA accesses while linux is booting.&lt;/P&gt;&lt;P&gt;This fault does not occur if I upgrade the system controller to version 1.7.0 - but if I update only the system controller without everything else (linux, uboot, ATF, etc.) I have a tons of other issues.&lt;/P&gt;&lt;P&gt;Will this fix, that landed in SCU 1.7.0, be backported on SCU 1.2.x ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Francesco&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 13:07:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Cortex-M4-goes-in-BusFault-if-accessing-DMA-devices-while-Linux/m-p/1223290#M168662</guid>
      <dc:creator>fmonte</dc:creator>
      <dc:date>2021-01-29T13:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Cortex-M4 goes in BusFault if accessing DMA devices while Linux is booting</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Cortex-M4-goes-in-BusFault-if-accessing-DMA-devices-while-Linux/m-p/1223729#M168710</link>
      <description>&lt;P&gt;Hi Francesco&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not think that SCU 1.7.0 fixes will be backported on SCU 1.2.x as Linux 4.14.98&lt;/P&gt;
&lt;P&gt;is quite old release, recommendation is to migrate to L5.4 kernels described on&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>Mon, 01 Feb 2021 04:17:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Cortex-M4-goes-in-BusFault-if-accessing-DMA-devices-while-Linux/m-p/1223729#M168710</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2021-02-01T04:17:01Z</dc:date>
    </item>
  </channel>
</rss>

