<?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: GPU STATE DUMP error occurs in custom imx8mp on Android 11 OS</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/GPU-STATE-DUMP-error-occurs-in-custom-imx8mp-on-Android-11-OS/m-p/2221926#M242311</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This appears to be related to insufficient GPU memory allocation. The GPU errors you're experiencing are typically caused by insufficient memory allocation for the GPU when the system is under memory pressure. For i.MX8MP with 6GB of DDR, the recommended approach is to allocate at least 25% of the total memory for CMA (Contiguous Memory Allocator).&lt;BR /&gt;&lt;BR /&gt;Your approach of creating a node in imx8mp.dtsi to allocate 25% of RAM for the GPU is on the right track, but for Android 11, you also need to ensure this change is properly reflected in the Android build configuration.&lt;BR /&gt;&lt;BR /&gt;Try these steps to resolve the issue:&lt;BR /&gt;&lt;BR /&gt;1. In your BoardConfig.mk, verify the CMA setting using:&lt;BR /&gt;```&lt;BR /&gt;BOARD_KERNEL_CMDLINE += cma=25%&lt;BR /&gt;```&lt;BR /&gt;&lt;BR /&gt;2. Also ensure the device tree overlay is properly built and included in your Android image.&lt;BR /&gt;&lt;BR /&gt;3. For Android specifically, these settings need to be properly propagated to the kernel command line during boot.&lt;BR /&gt;&lt;BR /&gt;4. Check your system's memory allocation after boot with:&lt;BR /&gt;```&lt;BR /&gt;cat /proc/meminfo&lt;BR /&gt;cat /proc/cmdline&lt;BR /&gt;```&lt;BR /&gt;&lt;BR /&gt;The memory requirements for Android 11 are considerably higher than previous versions, and GPU operations are particularly memory-intensive. Android 11 typically requires a minimum allocation of 25% for CMA on i.MX8MP platforms to operate properly without GPU memory allocation failures.&lt;BR /&gt;&lt;BR /&gt;If the issue persists after these changes, consider reviewing your GPU workload to optimize memory usage during critical operations.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Nov 2025 13:42:06 GMT</pubDate>
    <dc:creator>Bio_TICFSL</dc:creator>
    <dc:date>2025-11-20T13:42:06Z</dc:date>
    <item>
      <title>GPU STATE DUMP error occurs in custom imx8mp on Android 11 OS</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GPU-STATE-DUMP-error-occurs-in-custom-imx8mp-on-Android-11-OS/m-p/2219412#M242305</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I built and flashed the Android 11 OS on my custom i.MX8MP board. After booting Android 11, I encountered a GPU driver-related issue in the serial console. I followed the solution suggested in the NXP forum:&lt;BR /&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/Custom-IMX8MP-Board-GPU-STATE-DUMP-DMA-Appears-to-be-Stuck/td-p/1746834" target="_new" rel="noopener"&gt;https://community.nxp.com/t5/i-MX-Processors/Custom-IMX8MP-Board-GPU-STATE-DUMP-DMA-Appears-to-be-Stuck/td-p/1746834&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Since we are using 6 GB of DDR, I created a new node in the &lt;STRONG&gt;imx8mp.dtsi&lt;/STRONG&gt; file to allocate 25% of RAM for the GPU. However, this modification does not seem to have any effect in Android OS. I also found the &lt;STRONG&gt;CMA&lt;/STRONG&gt; variable in my &lt;STRONG&gt;BoardConfig.mk&lt;/STRONG&gt; file and increased it to 25% of the RAM, but the issue persists.&lt;/P&gt;&lt;P&gt;For your reference, I have attached the modifications I made and the log file.&lt;BR /&gt;&lt;BR /&gt;imx8mp.dtsi&lt;BR /&gt;(Note: I can't find the linux,cma node in the dtsi file, so I manually added)&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;linux,cma {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;compatible = "shared-dma-pool";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;reusable;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;size = &amp;lt;0 0x3c000000&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;alloc-ranges = &amp;lt;0 0x40000000 0 0xC0000000&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;linux,cma-default;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;};&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Boardconfig.mk file&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CMASIZE&lt;/SPAN&gt;&lt;SPAN&gt;=800M&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2025 09:56:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GPU-STATE-DUMP-error-occurs-in-custom-imx8mp-on-Android-11-OS/m-p/2219412#M242305</guid>
      <dc:creator>subash_p</dc:creator>
      <dc:date>2025-11-20T09:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: GPU STATE DUMP error occurs in custom imx8mp on Android 11 OS</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GPU-STATE-DUMP-error-occurs-in-custom-imx8mp-on-Android-11-OS/m-p/2221926#M242311</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This appears to be related to insufficient GPU memory allocation. The GPU errors you're experiencing are typically caused by insufficient memory allocation for the GPU when the system is under memory pressure. For i.MX8MP with 6GB of DDR, the recommended approach is to allocate at least 25% of the total memory for CMA (Contiguous Memory Allocator).&lt;BR /&gt;&lt;BR /&gt;Your approach of creating a node in imx8mp.dtsi to allocate 25% of RAM for the GPU is on the right track, but for Android 11, you also need to ensure this change is properly reflected in the Android build configuration.&lt;BR /&gt;&lt;BR /&gt;Try these steps to resolve the issue:&lt;BR /&gt;&lt;BR /&gt;1. In your BoardConfig.mk, verify the CMA setting using:&lt;BR /&gt;```&lt;BR /&gt;BOARD_KERNEL_CMDLINE += cma=25%&lt;BR /&gt;```&lt;BR /&gt;&lt;BR /&gt;2. Also ensure the device tree overlay is properly built and included in your Android image.&lt;BR /&gt;&lt;BR /&gt;3. For Android specifically, these settings need to be properly propagated to the kernel command line during boot.&lt;BR /&gt;&lt;BR /&gt;4. Check your system's memory allocation after boot with:&lt;BR /&gt;```&lt;BR /&gt;cat /proc/meminfo&lt;BR /&gt;cat /proc/cmdline&lt;BR /&gt;```&lt;BR /&gt;&lt;BR /&gt;The memory requirements for Android 11 are considerably higher than previous versions, and GPU operations are particularly memory-intensive. Android 11 typically requires a minimum allocation of 25% for CMA on i.MX8MP platforms to operate properly without GPU memory allocation failures.&lt;BR /&gt;&lt;BR /&gt;If the issue persists after these changes, consider reviewing your GPU workload to optimize memory usage during critical operations.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2025 13:42:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GPU-STATE-DUMP-error-occurs-in-custom-imx8mp-on-Android-11-OS/m-p/2221926#M242311</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2025-11-20T13:42:06Z</dc:date>
    </item>
  </channel>
</rss>

