[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID:
<DB9PR04MB8429E7DDF2D93C2695DE401D92C4A@DB9PR04MB8429.eurprd04.prod.outlook.com>
Date: Tue, 4 Nov 2025 07:44:35 +0000
From: Sherry Sun <sherry.sun@....com>
To: "esben@...nix.com" <esben@...nix.com>, "john.ogness@...utronix.de"
<john.ogness@...utronix.de>, "pmladek@...e.com" <pmladek@...e.com>,
"senozhatsky@...omium.org" <senozhatsky@...omium.org>, "tglx@...utronix.de"
<tglx@...utronix.de>, Greg KH <gregkh@...uxfoundation.org>, Jiri Slaby
<jirislaby@...nel.org>, Shawn Guo <shawnguo@...nel.org>, Sascha Hauer
<s.hauer@...gutronix.de>, "ryotkkr98@...il.com" <ryotkkr98@...il.com>,
"kkartik@...dia.com" <kkartik@...dia.com>, "fj6611ie@...jp.fujitsu.com"
<fj6611ie@...jp.fujitsu.com>
CC: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>, linux-serial
<linux-serial@...r.kernel.org>, "imx@...ts.linux.dev" <imx@...ts.linux.dev>,
Pengutronix Kernel Team <kernel@...gutronix.de>, "linux-pm@...r.kernel.org"
<linux-pm@...r.kernel.org>
Subject: [BUG] Suspend failure with nbcon + pm_debug_messages (Linux 6.18-rc4)
Hi all,
Since the latest i.MX UART switch to nbcon console with commit 70acca67bdd3 ("serial: imx: Switch to nbcon console"), I'm encountering a suspend issue on an i.MX8MP EVK board while testing with Linux 6.18-rc4.
The system fails to suspend when both nbcon is enabled and `pm_debug_messages` is turned on. When `pm_debug_messages` is disabled, suspend works normally. Additionally, if I revert the patch that adds nbcon support for the i.MX UART, suspend also works fine even with `pm_debug_messages` enabled.
The error message during suspend is:
echo: write error: Operation not supported
This seems to indicate that nbcon's interaction with the suspend flow-especially when debug messages are printed-might be preventing certain threads or devices from freezing properly.
Let me know if more logs or testing details would help. I'd be happy to assist in debugging or validating any proposed fixes.
Suppose this is not i.MX UART specific issue, currently the following 3 UART drivers also support nbcon console.
Hi Toshiyuki / Kartik / Ryo, if it's convenient, can you please help check if this issue also exists on your UARTs? Thanks!
drivers/tty/serial/sifive.c:907: .flags = CON_PRINTBUFFER | CON_NBCON,
drivers/tty/serial/tegra-utc.c:512: tup->console.flags = CON_PRINTBUFFER | CON_NBCON;
drivers/tty/serial/amba-pl011.c:2616: .flags = CON_PRINTBUFFER | CON_ANYTIME | CON_NBCON,
The reproduce steps are quite simple:
root@...8mpevk:~# echo 1 > /sys/power/pm_debug_messages
root@...8mpevk:~# cat /sys/power/pm_debug_messages
1
root@...8mpevk:~# echo mem > /sys/power/state
[ 46.434401] PM: suspend entry (deep)
[ 46.439474] Filesystems sync: 0.005 seconds
[ 46.444008] Freezing user space processes
[ 46.451855] Freezing user space processes completed (elapsed 0.007 seconds)
[ 46.451876] OOM killer disabled.
[ 46.451884] Freezing remaining freezable tasks
[ 46.453106] Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
[ 46.498122] PM: suspend devices took 0.048 seconds
[ 46.505390] Disabling non-boot CPUs ...
[ 46.511169] psci: CPU3 killed (polled 0 ms)
[ 46.517174] psci: CPU2 killed (polled 0 ms)
[ 46.523472] psci: CPU1 killed (polled 0 ms)
[ 46.528669] Enabling non-boot CPUs ...
[ 46.532891] Detected VIPT I-cache on CPU1
[ 46.532920] GICv3: CPU1: found redistributor 1 region 0:0x00000000388a0000
[ 46.532947] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[ 46.551156] CPU1 is up
[ 46.553907] Detected VIPT I-cache on CPU2
[ 46.553934] GICv3: CPU2: found redistributor 2 region 0:0x00000000388c0000
[ 46.553959] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[ 46.554629] CPU2 is up
[ 46.554999] Detected VIPT I-cache on CPU3
[ 46.555022] GICv3: CPU3: found redistributor 3 region 0:0x00000000388e0000
[ 46.555044] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[ 46.555748] CPU3 is up
[ 46.602411] imx-dwmac 30bf0000.ethernet eth1: No Safety Features support found
[ 46.604199] imx-dwmac 30bf0000.ethernet eth1: IEEE 1588-2008 Advanced Timestamp supported
[ 46.606020] imx-dwmac 30bf0000.ethernet eth1: configuring for phy/rgmii-id link mode
[ 46.713935] caam 30900000.crypto: registering rng-caam
[ 46.714857] xhci-hcd xhci-hcd.1.auto: xHC error in resume, USBSTS 0x401, Reinit
[ 46.714867] usb usb1: root hub lost power or was reset
[ 46.714871] usb usb2: root hub lost power or was reset
[ 46.818976] PM: resume devices took 0.260 seconds
-sh: echo: write error: Operation not supported
[ 46.819307] OOM killer enabled.
[ 46.819311] Restarting tasks: Starting
[ 46.820385] Restarting tasks: Done
[ 46.820450] random: crng reseeded on system resumption
[ 46.820553] PM: suspend exit
root@...8mpevk:~#
Best Regards
Sherry
Powered by blists - more mailing lists