<?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: Linux kernel failed to resume. in S32G</title>
    <link>https://community.nxp.com/t5/S32G/Linux-kernel-failed-to-resume/m-p/2186552#M15224</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/218967"&gt;@Jeff-CF-Huang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your post.&lt;BR /&gt;1. May I know which version BSP is used?&amp;nbsp;Is it based on S32G2/3? on a custom board or RDB?&lt;/P&gt;
&lt;P&gt;2. The issue could be reproduced from STR operation?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Chenyin&lt;/P&gt;</description>
    <pubDate>Wed, 15 Oct 2025 10:06:08 GMT</pubDate>
    <dc:creator>chenyin_h</dc:creator>
    <dc:date>2025-10-15T10:06:08Z</dc:date>
    <item>
      <title>Linux kernel failed to resume.</title>
      <link>https://community.nxp.com/t5/S32G/Linux-kernel-failed-to-resume/m-p/2186388#M15215</link>
      <description>&lt;P&gt;Hi Sir,&lt;BR /&gt;&lt;BR /&gt;Printing a log message to UART inresume_bl31 causes the Linux kernel to fail to resume.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;static void resume_bl31(struct s32g_ssram_mailbox *ssram_mb)
{
  ...
  if (ddrss_to_normal_mode(csr_addr)) {
    ERROR("Failed to transition DDR to normal mode\n");
    panic();
  }
  NOTICE("Print some debug messages here!\n");
  isb();
  dsb();
  disable_mmu_el3();
  resume_entrypoint();
}&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Jeff Huang&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2025 07:28:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/Linux-kernel-failed-to-resume/m-p/2186388#M15215</guid>
      <dc:creator>Jeff-CF-Huang</dc:creator>
      <dc:date>2025-10-15T07:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Linux kernel failed to resume.</title>
      <link>https://community.nxp.com/t5/S32G/Linux-kernel-failed-to-resume/m-p/2186552#M15224</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/218967"&gt;@Jeff-CF-Huang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your post.&lt;BR /&gt;1. May I know which version BSP is used?&amp;nbsp;Is it based on S32G2/3? on a custom board or RDB?&lt;/P&gt;
&lt;P&gt;2. The issue could be reproduced from STR operation?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Chenyin&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2025 10:06:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/Linux-kernel-failed-to-resume/m-p/2186552#M15224</guid>
      <dc:creator>chenyin_h</dc:creator>
      <dc:date>2025-10-15T10:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Linux kernel failed to resume.</title>
      <link>https://community.nxp.com/t5/S32G/Linux-kernel-failed-to-resume/m-p/2187174#M15235</link>
      <description>1. BSP 40, custom board&lt;BR /&gt;2.Yes&lt;BR /&gt;&lt;BR /&gt;The system resumes normally when the NOTICE("Print some debug messages here!\n"); line is removed.</description>
      <pubDate>Thu, 16 Oct 2025 05:52:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/Linux-kernel-failed-to-resume/m-p/2187174#M15235</guid>
      <dc:creator>Jeff-CF-Huang</dc:creator>
      <dc:date>2025-10-16T05:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Linux kernel failed to resume.</title>
      <link>https://community.nxp.com/t5/S32G/Linux-kernel-failed-to-resume/m-p/2187261#M15238</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/218967"&gt;@Jeff-CF-Huang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your reply.&lt;/P&gt;
&lt;P&gt;I had checked the code you mentioned, seems at the stage you pointed, the console had not been registered from default BSP's perspective, which may be the reason for the issue you met, may I know if you had done any modification regarding to code of the console part?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Chenyin&lt;/P&gt;</description>
      <pubDate>Thu, 16 Oct 2025 07:26:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/Linux-kernel-failed-to-resume/m-p/2187261#M15238</guid>
      <dc:creator>chenyin_h</dc:creator>
      <dc:date>2025-10-16T07:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Linux kernel failed to resume.</title>
      <link>https://community.nxp.com/t5/S32G/Linux-kernel-failed-to-resume/m-p/2187278#M15240</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Chenyin,&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;The other log message can appear if it is located far from the wakeup_resume_point of the Linux kernel.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;LI-CODE lang="c"&gt;void bl2_el3_early_platform_setup(u_register_t arg0, u_register_t arg1,
				  u_register_t arg2, u_register_t arg3)
{
  enum reset_cause reset_cause;
  struct s32g_ssram_mailbox *ssram_mb = (void *)BL31SSRAM_MAILBOX;
  ...
  s32_early_plat_init();
  console_s32_register();

  NOTICE("Reset status: %s\n", get_reset_cause_str(reset_cause));

  if (reset_cause == CAUSE_WAKEUP_DURING_STANDBY) {
    /* Trampoline to bl31_warm_entrypoint */
    resume_bl31(ssram_mb);
    panic();
  }
  ...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Oct 2025 07:46:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/Linux-kernel-failed-to-resume/m-p/2187278#M15240</guid>
      <dc:creator>Jeff-CF-Huang</dc:creator>
      <dc:date>2025-10-16T07:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: Linux kernel failed to resume.</title>
      <link>https://community.nxp.com/t5/S32G/Linux-kernel-failed-to-resume/m-p/2187469#M15244</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/218967"&gt;@Jeff-CF-Huang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the reply.&lt;/P&gt;
&lt;P&gt;I have mentioned that the console had been initialized in your code samples, then I will investigate it directly on my board.&lt;/P&gt;
&lt;P&gt;May I know you tested it on a S32G2 or S32G3 board?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;B R&lt;/P&gt;
&lt;P&gt;Chenyin&lt;/P&gt;</description>
      <pubDate>Thu, 16 Oct 2025 10:28:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/Linux-kernel-failed-to-resume/m-p/2187469#M15244</guid>
      <dc:creator>chenyin_h</dc:creator>
      <dc:date>2025-10-16T10:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Linux kernel failed to resume.</title>
      <link>https://community.nxp.com/t5/S32G/Linux-kernel-failed-to-resume/m-p/2187503#M15246</link>
      <description>&lt;P&gt;&lt;SPAN&gt;S32G3 board&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Oct 2025 11:21:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/Linux-kernel-failed-to-resume/m-p/2187503#M15246</guid>
      <dc:creator>Jeff-CF-Huang</dc:creator>
      <dc:date>2025-10-16T11:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Linux kernel failed to resume.</title>
      <link>https://community.nxp.com/t5/S32G/Linux-kernel-failed-to-resume/m-p/2187943#M15251</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/218967"&gt;@Jeff-CF-Huang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your reply.&lt;/P&gt;
&lt;P&gt;I have checked the code and found you had put the print message after "ddrss_to_normal_mode", since DDR mod changed via executing the function, the buffer of the Notice macro may possibly impacted by the changes, thus caused the issue.&lt;/P&gt;
&lt;P&gt;I suggest not putting your debug messages there and try putting it before the DDR state changes, which should work for print debug messages.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Chenyin&lt;/P&gt;</description>
      <pubDate>Fri, 17 Oct 2025 03:37:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/Linux-kernel-failed-to-resume/m-p/2187943#M15251</guid>
      <dc:creator>chenyin_h</dc:creator>
      <dc:date>2025-10-17T03:37:05Z</dc:date>
    </item>
  </channel>
</rss>

