<?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>S32Gのトピックs32g3 kernel configuration item clarification.</title>
    <link>https://community.nxp.com/t5/S32G/s32g3-kernel-configuration-item-clarification/m-p/2188109#M15261</link>
    <description>&lt;P&gt;During the process of enabling the S32G3 in our Linux environment, I encountered the following configuration within the BSP:&lt;/P&gt;&lt;DIV class=""&gt;CONFIG_CMA_SIZE_MBYTES=256&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;P&gt;I noticed that if this option is &lt;STRONG&gt;not specified, the system fails to boot&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;I investigated the issue and found that no code appears to be utilizing the Contiguous Memory Allocator (&lt;STRONG&gt;CMA&lt;/STRONG&gt;) subsystem. However, the system still fails to boot without the option set.&lt;/P&gt;&lt;P&gt;Upon further investigation, I surmised that the CMA configuration itself might not be the critical factor, but rather that the kernel is attempting to use the &lt;SPAN class=""&gt;256MB&lt;/SPAN&gt;&amp;nbsp;memory region starting at &lt;SPAN class=""&gt;0xf0000000.&lt;/SPAN&gt;&amp;nbsp;I was able to successfully run the kernel by explicitly reserving this memory region in the Device Tree with the following entry:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;DummyUnknown: memory@f0000000 {
        compatible = "reserved-memory";
        reg = &amp;lt;0x0 0xf0000000 0x0 0x010000000&amp;gt;;
        no-map;
};&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;While this allows me to proceed without knowing the precise cause, I noted that when using the BSP firmware (ATF + U-Boot) with EFIBOOT, the kernel again fails to boot. Looking at U-Boot's memory usage, I discovered that EFI variables and SMI data are situated in this region at &lt;SPAN class=""&gt;0xfa000000&lt;/SPAN&gt;, which leads me to believe this is one of the reasons for the unsuccessful boot.&lt;/P&gt;&lt;P&gt;By trying to restrict the reservation, I was able to narrow the required memory area to a &lt;SPAN class=""&gt;16MB&lt;/SPAN&gt;&amp;nbsp;region starting at &lt;SPAN class=""&gt;0xfb000000&lt;/SPAN&gt;, which also allows the kernel to run successfully in EFI mode.&lt;/P&gt;&lt;P&gt;I've conducted various experiments on this area and established that its relevance is only during early boot, where failing to reserve it leads to a silent kernel hang. Before or after the kernel has fully started, the area can be overwritten by any data without visible consequences.&lt;/P&gt;&lt;P&gt;I have analyzed both the ATF and U-Boot BSP codebases without finding any explicit reference to this critical area.&lt;/P&gt;&lt;P&gt;Since my use case is aimed at the functional safety domain, and the underlying reasons behind this malfunction are not yet fully understood, I am requesting clarification on the original &lt;SPAN class=""&gt;CONFIG_CMA_SIZE_MBYTES=256&lt;/SPAN&gt;&amp;nbsp;statement in the kernel configuration and how it relates to my findings.&lt;/P&gt;</description>
    <pubDate>Fri, 17 Oct 2025 07:56:52 GMT</pubDate>
    <dc:creator>acarmina</dc:creator>
    <dc:date>2025-10-17T07:56:52Z</dc:date>
    <item>
      <title>s32g3 kernel configuration item clarification.</title>
      <link>https://community.nxp.com/t5/S32G/s32g3-kernel-configuration-item-clarification/m-p/2188109#M15261</link>
      <description>&lt;P&gt;During the process of enabling the S32G3 in our Linux environment, I encountered the following configuration within the BSP:&lt;/P&gt;&lt;DIV class=""&gt;CONFIG_CMA_SIZE_MBYTES=256&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;P&gt;I noticed that if this option is &lt;STRONG&gt;not specified, the system fails to boot&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;I investigated the issue and found that no code appears to be utilizing the Contiguous Memory Allocator (&lt;STRONG&gt;CMA&lt;/STRONG&gt;) subsystem. However, the system still fails to boot without the option set.&lt;/P&gt;&lt;P&gt;Upon further investigation, I surmised that the CMA configuration itself might not be the critical factor, but rather that the kernel is attempting to use the &lt;SPAN class=""&gt;256MB&lt;/SPAN&gt;&amp;nbsp;memory region starting at &lt;SPAN class=""&gt;0xf0000000.&lt;/SPAN&gt;&amp;nbsp;I was able to successfully run the kernel by explicitly reserving this memory region in the Device Tree with the following entry:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;DummyUnknown: memory@f0000000 {
        compatible = "reserved-memory";
        reg = &amp;lt;0x0 0xf0000000 0x0 0x010000000&amp;gt;;
        no-map;
};&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;While this allows me to proceed without knowing the precise cause, I noted that when using the BSP firmware (ATF + U-Boot) with EFIBOOT, the kernel again fails to boot. Looking at U-Boot's memory usage, I discovered that EFI variables and SMI data are situated in this region at &lt;SPAN class=""&gt;0xfa000000&lt;/SPAN&gt;, which leads me to believe this is one of the reasons for the unsuccessful boot.&lt;/P&gt;&lt;P&gt;By trying to restrict the reservation, I was able to narrow the required memory area to a &lt;SPAN class=""&gt;16MB&lt;/SPAN&gt;&amp;nbsp;region starting at &lt;SPAN class=""&gt;0xfb000000&lt;/SPAN&gt;, which also allows the kernel to run successfully in EFI mode.&lt;/P&gt;&lt;P&gt;I've conducted various experiments on this area and established that its relevance is only during early boot, where failing to reserve it leads to a silent kernel hang. Before or after the kernel has fully started, the area can be overwritten by any data without visible consequences.&lt;/P&gt;&lt;P&gt;I have analyzed both the ATF and U-Boot BSP codebases without finding any explicit reference to this critical area.&lt;/P&gt;&lt;P&gt;Since my use case is aimed at the functional safety domain, and the underlying reasons behind this malfunction are not yet fully understood, I am requesting clarification on the original &lt;SPAN class=""&gt;CONFIG_CMA_SIZE_MBYTES=256&lt;/SPAN&gt;&amp;nbsp;statement in the kernel configuration and how it relates to my findings.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Oct 2025 07:56:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/s32g3-kernel-configuration-item-clarification/m-p/2188109#M15261</guid>
      <dc:creator>acarmina</dc:creator>
      <dc:date>2025-10-17T07:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: s32g3 kernel configuration item clarification.</title>
      <link>https://community.nxp.com/t5/S32G/s32g3-kernel-configuration-item-clarification/m-p/2188368#M15264</link>
      <description>&lt;P&gt;hi,&lt;SPAN&gt;acarmina&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Thank you for contacting us and the information.&lt;/P&gt;
&lt;P&gt;Which the version of BSP are you using?&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Joey&lt;/P&gt;</description>
      <pubDate>Fri, 17 Oct 2025 13:48:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/s32g3-kernel-configuration-item-clarification/m-p/2188368#M15264</guid>
      <dc:creator>Joey_z</dc:creator>
      <dc:date>2025-10-17T13:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: s32g3 kernel configuration item clarification.</title>
      <link>https://community.nxp.com/t5/S32G/s32g3-kernel-configuration-item-clarification/m-p/2188425#M15266</link>
      <description>&lt;P&gt;the current firmware is bsp41, (atf+u-boot).&lt;BR /&gt;i'm trying to switch to the bsp44, but I'm having troubles since the bl2 to the bl31 hangs on the eret, when it run the new imagenot sure why, currently under investigation.&lt;BR /&gt;```&lt;BR /&gt;&lt;SPAN&gt;NOTICE: &amp;nbsp;Reset status: Power-On Reset&lt;BR /&gt;INFO: &amp;nbsp;&amp;nbsp;&amp;nbsp;Switch to 50 MHz SD frequency (High Speed Mode)&lt;BR /&gt;INFO: &amp;nbsp;&amp;nbsp;&amp;nbsp;BL2: FIP offset = 0x100000&lt;BR /&gt;NOTICE: &amp;nbsp;BL2: v2.10.14(debug):bsp44.0-2.10.14&lt;BR /&gt;NOTICE: &amp;nbsp;BL2: Built : 11:58:50, Oct 17 2025&lt;BR /&gt;INFO: &amp;nbsp;&amp;nbsp;&amp;nbsp;BL2: Loading image id 39&lt;BR /&gt;VERBOSE: FIP header looks OK.&lt;BR /&gt;INFO: &amp;nbsp;&amp;nbsp;&amp;nbsp;Loading image id=39 at address 0x343ec000&lt;BR /&gt;INFO: &amp;nbsp;&amp;nbsp;&amp;nbsp;Image id=39 loaded: 0x343ec000 - 0x343fe570&lt;BR /&gt;INFO: &amp;nbsp;&amp;nbsp;&amp;nbsp;BL2: Loading image id 3&lt;BR /&gt;VERBOSE: FIP header looks OK.&lt;BR /&gt;INFO: &amp;nbsp;&amp;nbsp;&amp;nbsp;Loading image id=3 at address 0xff600000&lt;BR /&gt;INFO: &amp;nbsp;&amp;nbsp;&amp;nbsp;Image id=3 loaded: 0xff600000 - 0xff647065&lt;BR /&gt;INFO: &amp;nbsp;&amp;nbsp;&amp;nbsp;BL2: Loading image id 5&lt;BR /&gt;VERBOSE: FIP header looks OK.&lt;BR /&gt;INFO: &amp;nbsp;&amp;nbsp;&amp;nbsp;Loading image id=5 at address 0xff8a0000&lt;BR /&gt;INFO: &amp;nbsp;&amp;nbsp;&amp;nbsp;Image id=5 loaded: 0xff8a0000 - 0xff970168&lt;BR /&gt;NOTICE: &amp;nbsp;BL2: Booting BL31&lt;BR /&gt;INFO: &amp;nbsp;&amp;nbsp;&amp;nbsp;Entry point address = 0xff600000&lt;BR /&gt;INFO: &amp;nbsp;&amp;nbsp;&amp;nbsp;SPSR = 0x3cd&lt;BR /&gt;VERBOSE: Argument #0 = 0x34339418&lt;BR /&gt;VERBOSE: Argument #1 = 0x0&lt;BR /&gt;VERBOSE: Argument #2 = 0x0&lt;BR /&gt;VERBOSE: Argument #3 = 0x0&lt;BR /&gt;VERBOSE: Argument #4 = 0x0&lt;BR /&gt;VERBOSE: Argument #5 = 0x0&lt;BR /&gt;VERBOSE: Argument #6 = 0x0&lt;BR /&gt;VERBOSE: Argument #7 = 0x0&lt;BR /&gt;&lt;/SPAN&gt;```&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Oct 2025 16:20:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/s32g3-kernel-configuration-item-clarification/m-p/2188425#M15266</guid>
      <dc:creator>acarmina</dc:creator>
      <dc:date>2025-10-17T16:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: s32g3 kernel configuration item clarification.</title>
      <link>https://community.nxp.com/t5/S32G/s32g3-kernel-configuration-item-clarification/m-p/2188821#M15275</link>
      <description>&lt;P&gt;hi,&lt;SPAN&gt;acarmina&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Thank you for your reply.&lt;/P&gt;
&lt;P&gt;The kernel allows the creation of default CMA through Kconfig, kernel parameters, and DT. Once created successfully, a chunk of contiguous physical memory will be reserved and not participate in the general allocation, thereby avoiding early stampedes.&lt;BR /&gt;Under your EFI path, the EFI subsystem of U-Boot places EFI variables /SMI and other structures in the 0xFA000000 area. If Linux considers this piece available without seeing any reserved tags, it may overwrite these structures, leading to an early silent freeze.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Joey&lt;/P&gt;</description>
      <pubDate>Mon, 20 Oct 2025 02:38:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/s32g3-kernel-configuration-item-clarification/m-p/2188821#M15275</guid>
      <dc:creator>Joey_z</dc:creator>
      <dc:date>2025-10-20T02:38:11Z</dc:date>
    </item>
  </channel>
</rss>

