From: Andreas Kemnade <andreas@kemnade.info>
To: Frank Li <Frank.li@oss.nxp.com>
Cc: Russell King <linux@armlinux.org.uk>, Frank Li <Frank.Li@nxp.com>,
Sascha Hauer <s.hauer@pengutronix.de>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
Fabio Estevam <festevam@gmail.com>,
Daniel Lezcano <daniel.lezcano@kernel.org>,
Thomas Gleixner <tglx@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
linux@yoavmoshe.com
Subject: Re: [PATCH v2 0/3] ARM: imx: Add a more agressive idle mode on i.MX6SLL
Date: Fri, 27 Nov 2026 12:43:18 +0100 [thread overview]
Message-ID: <20261127124318.276552d2@kemnade.info> (raw)
In-Reply-To: <awhl-wsYhZlC_VD4@SMW015318>
On Thu, 26 Nov 2026 11:01:47 -0600
Frank Li <Frank.li@oss.nxp.com> wrote:
> On Thu, Nov 26, 2026 at 12:00:53PM +0100, Andreas Kemnade wrote:
> > On Ebook readers there are often situations in which the system waits
> > only for some GPIO IRQs and no module is active, all the clock system
> > is using most of the power, not every clock gets disabled via RPM,
> > esp. those are marked as CLK_IS_CRITICAL.
> > A usual he situation might be mainly wating for touchscreen input.
> > Since nothing needs to be sent to the display continously, clocks
> > are not in use. Maybe some frontlight is consuming power, but if it
> > is not used in maximum brightness mode, the clock system is still
> > using a significant portion of power.
> >
> > In contrast to suspend state, that is not forcefully turning things of
> > and wake up only on selected important things when the device is not used.
> > E.g. you might still want to have frontlight enabled.
> > Vendor kernel work around this by adding an extended suspend mode in
> > which more things are disabled, e.g. the touchscreen.
> >
> > So rather add another idle state, which is only conditionally used
> > depending on clock usage.
> >
> > System timekeeping is currently using a high speed clock, which is a
> > major blocker for this idle state.
> > Use 32K clock for the timer and the clock source to avoid that
> > dependency and allow the timer to be used in stop mode if that low
> > power clock source is used.
> >
> > Other things preventing entering that idle state:
> > - imx-thermal driver: probaly needs some notifier block called by
> > cpu_cluster_pm_enter to avoid false alarms like ti-bandgap does
> > - PXP and DCP drivers are missing RPM, so they keep clocks enabled.
> > - serial console: needs to be unbound
> >
> > With these patches are applied (and the not-yet-upstreamed EPDC driver)
> > I can run a loop displaying the current consumption in every 20 seconds
> > for about one week. Power saving is around 70% in such
> > situations.
>
> Nice feature, but how to make sure don't cause regression?
>
I think it is quite opt-in at the moment. At least gpt1_serial should block
the idle state if not reconfigured accordingly for that board.
CPUIDLE_FLAG_OFF might be used as well initially to not have surprise opt-in
one day.
From my testing / maintenance experience (I have used an OMAP3 device as my
main mobile working horse, which has very deep cpuidle states):
- Most problems show up with only one device active at a time
- Sometimes waiting for something with clocks disabled my cause issues
-> explicitely enable clocks, pm_qos (I do not think this topic
is that present on i.MX6 (mechanisms similar to drivers/clk/ti/autoidle.c
seem not to exist)
- context save/restore can be an issue
- puts a spotlight on any pm omission anywhere, mostly by blocking
that deeper idle state, but that does only mean as high power
consumption as without it. e.g. DCP and PXP drivers just keep their
clocks unconditionally enabled.
Looking around: there are quite some devices not having a driver on
mainline (or at least no devicetree entry for it):
- epit
- csi (imx6ul has)
no driver... no breakage
Looking around in drivers to see if anything happening at suspend/resume
should also be done at runtime suspend/resume:
Interesting commits targeting the sound stuff
What I would also do is looking
05cf237972fe6 ("ASoC: fsl_ssi: Add driver suspend and resume to support MEGA Fast")
8661ab5b23d6d ("ASoC: imx-audmux: Add driver suspend and resume to support MEGA Fast")
These commits add context save/restore handling on resume/suspend.
But it depends on someone setting bit 0 of PGC/GPC offset 0x220.
arch/arm/mach-imx/gpc.c does not touch that register at all, does not
even have a define for that. i.MX6SX TRM lists modules belonging to that
domain. The i.MX6SLL TRM contains almost nothing about MEGA besides the
register define. So that all are indications that these things are
a non-issue on i.IMX6SLL.
Also I do not see widespread context save/restore in other drivers
like I see on OMAP drivers.
Regards,
Andreas
prev parent reply other threads:[~2026-11-27 12:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 11:00 [PATCH v2 0/3] ARM: imx: Add a more agressive idle mode on i.MX6SLL Andreas Kemnade
2026-11-26 11:00 ` [PATCH v2 1/3] ARM: imx: enable STOP-ON mode in idle if wakeup requirements permit Andreas Kemnade
2026-11-26 11:00 ` [PATCH v2 2/3] timer-imx-gpt: Allow 32K clock to be used as a clock source Andreas Kemnade
2026-11-26 16:56 ` Frank Li
2026-11-26 11:00 ` [PATCH v2 3/3] ARM: dts: imx: kobo-clarahd: Use 32K clock for the timer Andreas Kemnade
2026-11-26 17:01 ` [PATCH v2 0/3] ARM: imx: Add a more agressive idle mode on i.MX6SLL Frank Li
2026-11-27 11:43 ` Andreas Kemnade [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261127124318.276552d2@kemnade.info \
--to=andreas@kemnade.info \
--cc=Frank.Li@nxp.com \
--cc=Frank.li@oss.nxp.com \
--cc=conor+dt@kernel.org \
--cc=daniel.lezcano@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=festevam@gmail.com \
--cc=imx@lists.linux.dev \
--cc=kernel@pengutronix.de \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=linux@yoavmoshe.com \
--cc=robh@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=tglx@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox