mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sudeep Holla <sudeep.holla@kernel.org>
To: Ulf Hansson <ulf.hansson@oss.qualcomm.com>
Cc: Maulik Shah <maulik.shah@oss.qualcomm.com>,
	Rob Herring <robh@kernel.org>,
	Sudeep Holla <sudeep.holla@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>, Ulf Hansson <ulfh@kernel.org>,
	"Rafael J. Wysocki" <rafael@kernel.org>,
	Bjorn Andersson <andersson@kernel.org>,
	Konrad Dybcio <konradybcio@kernel.org>,
	Abel Vesa <abelvesa@kernel.org>,
	Daniel Lezcano <daniel.lezcano@oss.qualcomm.com>,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org
Subject: Re: [PATCH 2/3] pmdomain: Add support for system-suspend-only states
Date: Wed, 28 Oct 2026 11:48:25 +0000	[thread overview]
Message-ID: <20261028-imported-pistachio-unicorn-2ecfec@sudeepholla> (raw)
In-Reply-To: <CAPx+jO_BOwbKeRytBezm+piLhb8Z5N2eQO=LRwBQoSZ3kXOpwQ@mail.gmail.com>

On Wed, Oct 28, 2026 at 11:59:58AM +0100, Ulf Hansson wrote:
> On Wed, Oct 14, 2026 at 9:12 PM Sudeep Holla <sudeep.holla@kernel.org> wrote:
> >
> > On Tue, Oct 13, 2026 at 12:11:36PM +0200, Ulf Hansson wrote:
> > > On Fri, Oct 9, 2026 at 5:27 PM Sudeep Holla <sudeep.holla@kernel.org> wrote:
> > > >
> > > > On Fri, Oct 09, 2026 at 04:26:38PM +0200, Ulf Hansson wrote:
> >
> > [...]
> >
> > > > > If that's the case, besides that the cluster PM domain topology must
> > > > > be modelled accordingly, the display device should be hooked up to the
> > > > > cluster PM domain it belongs to.
> > > > >
> > > >
> > > > Ah, I thought that's the way the whole domain-idle was modelled as we
> > > > started this OSI discussion a decade ago with an example of CPU clusters
> > > > sharing power domains with some other devices. I am surprised if that is
> > > > not the case already 🙁.
> > >
> > > It works fine today, I was just trying to explain how it works,
> > > considering the use case that you brought up.
> > >
> >
> > Ah OK, good to hear. For once, it sounded like that's not the case. My bad.
> >
> > > >
> > > > > Beyond that, it's the corresponding display driver that becomes
> > > > > responsible for what should happen during system suspend. If the
> > > > > screen needs to stay on it may need to call device_set_awake_path()
> > > > > for the display device - unless it's a decision for user space that
> > > > > can control the behaviour for the display device via its sysfs node.
> > > > > If things are managed accordingly, genpd_finish_suspend() may decide
> > > > > to keep the corresponding PM domain powered on during system suspend.
> > > > >
> > > >
> > > > But the s2idle and s2ram anyways suspends all the devices, so they need
> > > > to vote in for the power domains to be turned off. If they are supposed
> > > > to stay on, the system enters the state it can based on the other votes.
> > > >
> > > > > The above said, $subject patch doesn't change any of this. It only
> > > > > allows us to use more states (deeper), which are limited to system
> > > > > suspend (s2idle).
> > > > >
> > > >
> > > > Still not convinced, if all devices are plugged in to the power domain
> > > > hierarchy correctly and the domain-idle states represent or carries
> > > > the entire system power domain topology, we shouldn't need this extra
> > > > information. Having it make cause issues when it conflicts with the
> > > > topology information IMO.
> > >
> > > No, it's still not sufficient to model the power domain hierarchy correctly.
> > >
> > > These "system states" are special since they require additional
> > > coordination in FW/HW, to take into account votes not directly
> > > controlled by Linux.
> > >
> >
> > But if Linux doesn't control, some other entity would vote and until then
> > the system shouldn't enter that state. Without knowing that it is system
> > state, will the kernel be unable to choose that state as it hidden vote
> > is invisible/not tracked ? I trying to understand why if Linux chooses
> > that system level state as part of idle loop, the platform can't downgrade
> > if all the voting requirements are not met. I am struggling with that
> > and want to make sure we are not working around a broken firmware.
> 
> For OSI, all the FW would be able to do is to return an error. But
> that doesn't prevent Linux from trying the same idle state again and
> again.
> 

Now I understood the requirement much better. The core issue with OSI is
that it fails unless the platform downgrades special system states to
non-system states during routine CPUIdle paths.

This leaves us with two directions for OSI:
1. Firmware Resolution: Handle state transitions entirely in firmware.
2. OS Intervention: Enforce the handling via the OS.

Though I personally prefer (1), I don't have strong arguments against (2)
now that you made me understand the requirement. Sorry for taking time,
but mentally I was assuming (1) even for OSI until your above response.

Since PC mode relies on the firmware to manage these states natively, this
binding isn't required for it. Therefore, Could we restrict this specific
binding exclusively to OSI implementations ?

-- 
Regards,
Sudeep

  reply	other threads:[~2026-10-28 11:48 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-05 15:29 [PATCH 0/3] pmdomain: Support system-suspend-only domain idle states Maulik Shah
2026-10-05 15:29 ` [PATCH 1/3] dt-bindings: power: domain-idle-state: Add system-state Maulik Shah
2026-10-06  9:11   ` Sudeep Holla
2026-10-05 15:29 ` [PATCH 2/3] pmdomain: Add support for system-suspend-only states Maulik Shah
2026-10-06  9:15   ` Sudeep Holla
2026-10-07 18:55     ` Val Packett
2026-10-08  9:16       ` Sudeep Holla
2026-10-08 12:21     ` Ulf Hansson
2026-10-09 12:21       ` Sudeep Holla
2026-10-09 14:26         ` Ulf Hansson
2026-10-09 15:27           ` Sudeep Holla
2026-10-13 10:11             ` Ulf Hansson
2026-10-14 19:12               ` Sudeep Holla
2026-10-28 10:59                 ` Ulf Hansson
2026-10-28 11:48                   ` Sudeep Holla [this message]
2026-10-05 15:29 ` [PATCH 3/3] arm64: dts: qcom: monaco-evk: Add suspend-only power collapse state Maulik Shah
2026-10-13  9:08   ` Konrad Dybcio
2026-10-14  6:15     ` Maulik Shah
2026-10-16 12:15       ` Konrad Dybcio
2026-10-06 13:32 ` [PATCH 0/3] pmdomain: Support system-suspend-only domain idle states Kevin Hilman

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=20261028-imported-pistachio-unicorn-2ecfec@sudeepholla \
    --to=sudeep.holla@kernel.org \
    --cc=abelvesa@kernel.org \
    --cc=andersson@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=daniel.lezcano@oss.qualcomm.com \
    --cc=devicetree@vger.kernel.org \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=maulik.shah@oss.qualcomm.com \
    --cc=rafael@kernel.org \
    --cc=robh@kernel.org \
    --cc=ulf.hansson@oss.qualcomm.com \
    --cc=ulfh@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

all inboxes | Powered by JetHome®