| Message ID | 20261122205136.138173-1-dario.binacchi@amarulasolutions.com |
|---|---|
| Headers |
Delivered-To: michael@amarulasolutions.com
Received: by 2002:a05:7300:bf19:b0:386:abcc:ec87 with SMTP id
ff25csp764966dyb;
Sun, 22 Nov 2026 12:51:40 -0800 (PST)
X-Forwarded-Encrypted: i=2;
AL+hErHbCT2yvIHrnw6w1AYQUcDKexW1294uth28k6GzAluKpZamIJsTp9wuzB/471kqE6vsJZHdQq07@amarulasolutions.com
X-Received: by 2002:a05:600c:b85:b0:4a1:f720:74cd with SMTP id
5b1f17b1804b1-4bb8892ca5amr201113255e9.24.1795380700524;
Sun, 22 Nov 2026 12:51:40 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1795380700; cv=none;
d=google.com; s=arc-20260327;
b=DWiw2avGqGOxRWv2IQnF4W9hU/zKn0tno+xnAwGxizfO6fH8QwLjsyybj0ga+Fwub2
rz7zi46Qz1alq2gmF6Qnqry/ybsuaSIVt9JexYI6RjJdNZn5SNar16FQPXghJnPWJyLg
b/mvAcTxydf58DTALQP9F2C9bA8+eq8B/l85Lkcc4uiOGO0btOpNmayJ3/Mpy+JmgCEj
nRTXucy+kHYaYP8H7T7SIHPEIDw0+Jp55Ih+BMRjbi9lZ7ShHXjrRgk9kZ8vV0FhdjKm
Ko2lzAZ5H8Ryl6Puk/RIYn//Lbum9gRurmFHGDJSckVeaSiBgr5OIJAmbcfK8s9jC+4X
2GEw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20260327;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:dkim-signature;
bh=DKG2CDpDJjCN3w8GhTWY2Le/K5MhPR+ZkRtKO6JJCzc=;
fh=bI5y4hZjaBwbX7HKQgB0aQenOHcsglNpp2LATkdkqTo=;
b=rGMVtq72pxlXvE34DXkrkPjpZ9fBOoN0h1sUvau9zJrnCIYPBC2DVND97eY38h7T6d
xXaIoF7WdGoWWeqYsG3LJFyNvV82x96veWh5GMtimqQMMAeR6woYBHgyQUlRFw67c+5+
f5Ip9044qJc2kK0zacrbKyJdlG+s0Xy00rhsIvE8seHwh2PjOw10JGasaykeXTrECb38
MRComkWlL7US2bDWfSr33zXTtEAB6qCgvFIQReHuKlGVdUXu6ly3OxdetsMpmRDTmpAW
lBEu9eOXiN81NyOF1TSTjatFf4ovSQz3YxpkStwDh2cNnakIVpSF1HoO05kx4ctxJUAb
w5Zg==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=fBeWt5ZE;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=neutral header.i=@amarulasolutions.com
Return-Path: <dario.binacchi@amarulasolutions.com>
Received: from mail-sor-f41.google.com (mail-sor-f41.google.com.
[209.85.220.41])
by mx.google.com with SMTPS id
5b1f17b1804b1-4bb884dd20bsor19410905e9.16.2026.11.22.12.51.40
for <michael@amarulasolutions.com>
(Google Transport Security);
Sun, 22 Nov 2026 12:51:40 -0800 (PST)
Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
Authentication-Results: mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=fBeWt5ZE;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=neutral header.i=@amarulasolutions.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=amarulasolutions.com; s=google; t=1795380700; x=1795985500;
darn=amarulasolutions.com;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:from:to:cc:subject:date:message-id:reply-to:content-type;
bh=DKG2CDpDJjCN3w8GhTWY2Le/K5MhPR+ZkRtKO6JJCzc=;
b=fBeWt5ZEaAeZaEULgwj2c6VcpBoDpOQLyMYBjpuFDzqR4YFVNEh4HENF+qaEjV9IRi
6Z4xNpm8B2dxcPgsS+rbv0CejOdYaF/nfuOV/xV/+Ls9obtHn3S+vMi3+GgcdN++SWNM
t9uPW5ev6JngJ0finSHaeevbh5ZVB1oxkJeMo=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1795380700; x=1795985500;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=DKG2CDpDJjCN3w8GhTWY2Le/K5MhPR+ZkRtKO6JJCzc=;
b=ez26RwrIj2THizyzZql3TP+R3I82gWPtIBMmC1246xRUpqkWBkTJYDl82ZMdp26zk9
lxgZVEV61IFy7AqLxqUhASQodxeWgSrwx9QDeV3rtoRX1+xgAcCu9I192twUyoiRL9t5
7ZFQsd+Mteb+yhjwkdzVukdNG0LIfRBeDNXy8D4PWkHbyoz0fNr1nAqaIMNvlubAYuEu
RcKBkZY+u7uN4u9BwgoK2Gypis1Du/8Qm1rHqGLzKEihsu01xWSpVsxcaJs9mFY2XuiO
BboQ2gz/tOuNwT7zDZx0iwR3EWr/60d891mLBOLElkr2QIKIZaGSN3JvkqmUpHSVgzBw
FM/A==
X-Forwarded-Encrypted: i=1;
AL+hErE72jkkm/0zwCIQp5bAbSDMedkz2JlDsRXA8Vz5bGosacVFVL6kRLoX/D0G7YK/97Sw18O1fvbT@amarulasolutions.com
X-Gm-Message-State: APuU4Z+BzPdpYhhj47JMnaUZ8jX7HvXUtqfLY1cJoS76xWA9tFphdtq1
ay8tKddp/vFezFTChcGNKygVZQuxNOTvyatho0477uXjXsXf5MpVzGqi3aoKhY4uImN83g==
X-Gm-Gg: AZFdTZelVQI041C1w4g+j0PnEjTwOVsA8JL6plYTijktxDxY7GDEWvm1mkU7fZbva/T
9XMeP5eTBn8qrUd2RvtDWC3w6vrLTdOFRlt1x6R7d/NSc1F3axTMpxSs2/AHOsEs1fjpcCrKcJw
+a1/URVs1818y97T5EqrM+BOiEOgdIy+hcUxkWgbZnWXDiV/4xDw/fSeolziJT7Jf4J8K8RdYXo
oS0g83EDS1GzFlkyM/Jh5Ifwl3qFkvZEH2KrsPsC/ruXA0A8x6uh6fK6dUhgQkJUdAXhyBt3m/a
Qj1vjW71iwUnLhLj60PpBysWGOwHZIPfYbb3H/j6rP6iTllHUEeKe/eoupS/21bGf/tV6euBfed
FpxoLdlY36TJ1gWmKha+zmj2I17NYkdeZPFv5hujrrDyJt0FrnLulT/eDqBDAR9D/zzvjYTDc/n
zLkYdm02gIMEfWD8NdH7/O9/0kIdqfyKOcdVS2akZHwriToqiDekOBb6BgWFM/uBVmnLAqnLEUx
PeC/grw3UYvGWmBIetEgzMq1uAMyELVOL3XldX2ZmHHf2C72VKmPsRtPpxjEZC0ZtR/rwvnwudt
ZOyVZzm9MzPObHzIb/IsGP1SlEli007RSIHCmvppxr2NsYQz48fzI6KJAfQ6mK87co7AAQyG4qj
W4wauW1zVLuSISpHAHqgxRpkGqaBQJ8NhZa7dCpHht3+9sjbjg4vlSbTaCYHYTTYV1UI1Oa4cPL
7D63m22dSgX8j/OyYdWqT8b4iowg==
X-Received: by 2002:a05:600c:34d0:b0:4bb:6a5a:7839 with SMTP id
5b1f17b1804b1-4bb889428eamr194057365e9.34.1795380699930;
Sun, 22 Nov 2026 12:51:39 -0800 (PST)
Return-Path: <dario.binacchi@amarulasolutions.com>
Received: from dario-ThinkPad-P14s-Gen-5.homenet.telecomitalia.it
(host-79-14-29-58.business.telecomitalia.it. [79.14.29.58])
by smtp.gmail.com with ESMTPSA id
5b1f17b1804b1-4bb884b7515sm397355305e9.13.2026.11.22.12.51.38
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Sun, 22 Nov 2026 12:51:39 -0800 (PST)
From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
To: Ulf Hansson <ulfh@kernel.org>
Cc: Lucas Stach <l.stach@pengutronix.de>, linux-amarula@amarulasolutions.com,
michael@amarulasolutions.com, Peng Fan <peng.fan@nxp.com>,
Dario Binacchi <dario.binacchi@amarulasolutions.com>,
Fabio Estevam <festevam@gmail.com>, Frank Li <Frank.Li@nxp.com>,
Jacky Bai <ping.bai@nxp.com>, Kees Cook <kees+treewide@kernel.org>,
Marek Vasut <marex@denx.de>, Ming Qian <ming.qian@oss.nxp.com>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
"Rafael J. Wysocki" <rafael.j.wysocki@intel.com>,
Sascha Hauer <s.hauer@pengutronix.de>, Shawn Guo <shawnguo@kernel.org>,
=?utf-8?q?Uwe_Kleine-K=C3=B6nig?= <u.kleine-koenig@baylibre.com>,
Xu Yang <xu.yang_2@nxp.com>, bui duc phuc <phucduc.bui@gmail.com>,
imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org,
linux-pm@vger.kernel.org
Subject: [PATCH v4 0/4] pmdomain: imx: Keep the domains left on by the
bootloader
Date: Sun, 22 Nov 2026 21:51:09 +0100
Message-ID: <20261122205136.138173-1-dario.binacchi@amarulasolutions.com>
X-Mailer: git-send-email 2.43.0
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
|
| Series |
pmdomain: imx: Keep the domains left on by the bootloader
|
|
Message
Dario Binacchi
Nov. 22, 2026, 8:51 p.m. UTC
The i.MX8M power domain drivers register all their domains as off. A domain left on by the bootloader, e.g. to show a splash screen, is then powered up again by its first consumer, which on the i.MX8MN turns the display off and hangs the system. This series reads the state of the domains from the hardware, so that the ones left on are kept on until their consumers have probed. The first patch fixes an error path of the blk-ctrl probe. The clocks held by the last patch are released at sync_state, so they stay on until all the consumers of the blk-ctrl have probed. Tested on i.MX8MN (BSH SMM S2 PRO). Changes in v4: - Register the power notifier before powering up the bus domain Changes in v3: - Add Reported-by and Closes tags - Drop the runtime PM reference synchronously in the probe error path - Keep the bus domain on while the state of the domains is read - Remove the domains before releasing their boot-on references Changes in v2: - New patch - Release the resources of the domains left on when the driver is removed - Take the references once the probe can no longer be deferred - Clear the boot-on state when the domain is powered off - Release the references when the driver is removed - Rebase on the changes of the previous patch Dario Binacchi (4): pmdomain: imx8m-blk-ctrl: Remove the power notifier on probe failure pmdomain: imx: gpcv2: Keep the domains left on by the bootloader pmdomain: imx8m-blk-ctrl: Keep the domains left on by the bootloader pmdomain: imx8m-blk-ctrl: Hold boot-on domain clocks until sync_state drivers/pmdomain/imx/gpcv2.c | 77 ++++++++++++- drivers/pmdomain/imx/imx8m-blk-ctrl.c | 156 ++++++++++++++++++++++++-- 2 files changed, 223 insertions(+), 10 deletions(-) --- base-commit: d0f871bfb831705d9f55479f5b2b40f636ea7b16 branch: imx-pmdomain-boot-on-v4 -- 2.43.0
Comments
On Sun, Nov 22, 2026 at 9:51 PM Dario Binacchi <dario.binacchi@amarulasolutions.com> wrote: > > The i.MX8M power domain drivers register all their domains as off. > A domain left on by the bootloader, e.g. to show a splash screen, is > then powered up again by its first consumer, which on the i.MX8MN > turns the display off and hangs the system. > > This series reads the state of the domains from the hardware, so that > the ones left on are kept on until their consumers have probed. > > The first patch fixes an error path of the blk-ctrl probe. The clocks > held by the last patch are released at sync_state, so they stay on > until all the consumers of the blk-ctrl have probed. > > Tested on i.MX8MN (BSH SMM S2 PRO). > > Changes in v4: > - Register the power notifier before powering up the bus domain > > Changes in v3: > - Add Reported-by and Closes tags > - Drop the runtime PM reference synchronously in the probe error path > - Keep the bus domain on while the state of the domains is read > - Remove the domains before releasing their boot-on references > > Changes in v2: > - New patch > - Release the resources of the domains left on when the driver is > removed > - Take the references once the probe can no longer be deferred > - Clear the boot-on state when the domain is powered off > - Release the references when the driver is removed > - Rebase on the changes of the previous patch > > Dario Binacchi (4): > pmdomain: imx8m-blk-ctrl: Remove the power notifier on probe failure > pmdomain: imx: gpcv2: Keep the domains left on by the bootloader > pmdomain: imx8m-blk-ctrl: Keep the domains left on by the bootloader > pmdomain: imx8m-blk-ctrl: Hold boot-on domain clocks until sync_state > > drivers/pmdomain/imx/gpcv2.c | 77 ++++++++++++- > drivers/pmdomain/imx/imx8m-blk-ctrl.c | 156 ++++++++++++++++++++++++-- > 2 files changed, 223 insertions(+), 10 deletions(-) > > --- > base-commit: d0f871bfb831705d9f55479f5b2b40f636ea7b16 > branch: imx-pmdomain-boot-on-v4 > > -- > 2.43.0 > I started by applying patch1 for fixes and by adding a stable tag for it. Deferring the remaining three to conclude on the reviews. Kind regards Uffe