mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Yixun Lan <dlan@kernel.org>
To: Icenowy Zheng <uwu@icenowy.me>
Cc: Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>, Ulf Hansson <ulfh@kernel.org>,
	Paul Walmsley <pjw@kernel.org>,
	Palmer Dabbelt <palmer@dabbelt.com>,
	Albert Ou <aou@eecs.berkeley.edu>,
	Alexandre Ghiti <alex@ghiti.fr>,
	devicetree@vger.kernel.org, linux-riscv@lists.infradead.org,
	spacemit@lists.linux.dev, linux-kernel@vger.kernel.org,
	linux-pm@vger.kernel.org
Subject: Re: [PATCH 2/3] pmdomain: spacemit: Add power domain driver
Date: Mon, 21 Sep 2026 03:35:40 +0000	[thread overview]
Message-ID: <20260921033540-GKG297024@kernel.org> (raw)
In-Reply-To: <56e5f32102c67575ded8af9e81a06dc9f1dcf0ee.camel@icenowy.me>

Hi Icenowy,

On 20:56 Sun 20 Sep     , Icenowy Zheng wrote:
> 在 2026-09-18五的 02:40 +0000,Yixun Lan写道:
> >   SpacemiT's PMU (Power Management Unit) consist of several power
> > domains
> > which can be managed independently, depending on different
> > application
> > scenario, each domain can be powered on/off for saving power.
> > 
> >   The driver is implemented based on Linux Generic PM Domain
> > framework.
> > From a hardware perspective, either of two distinct power-on
> > sequences
> > are supported, in software mode (SW mode), the driver is responsible
> > for
> > controlling the states of bits such as sleep1, sleep2, isolation and
> > pwr_state, while in hardware mode (HW mode), the PMU hardware will
> > complete
> > the sequence automatically without requiring software intervention.
> 
> This driver is tested to be able to power up the GPU on SpacemiT K3,
> however the following warning appears in the kernel log:
> 
> ```
> genpd_provider audio: Fail to power-off domain: 2
> ```
> 
This is kind of an expected issue, due to hardware design, the audio
power switch is coupled with rcpu core, which means power off it will
also shut down the rcpu, so the power switch currently is configured
as always on from software perspective, it's unable to power-off even
in Linux or rcpu once system up.

I will drop audio power domain control in next version

> (BTW I built it as a module to prevent whole kernel being rebuilt)
> 
that's fine

-- 
Yixun Lan (dlan)

  reply	other threads:[~2026-09-21  3:35 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-18  2:40 [PATCH 0/3] PM: spacemit: Add power domain support Yixun Lan
2026-09-18  2:40 ` [PATCH 1/3] dt-bindings: power: spacemit: Add power domain controller Yixun Lan
2026-09-18  2:40 ` [PATCH 2/3] pmdomain: spacemit: Add power domain driver Yixun Lan
2026-09-18  9:00   ` Icenowy Zheng
2026-09-18 23:01     ` Yixun Lan
2026-09-19  6:57       ` Icenowy Zheng
2026-09-19  9:59         ` Yixun Lan
2026-09-19 13:56           ` Icenowy Zheng
2026-09-19 23:13             ` Yixun Lan
2026-09-20  5:17               ` Icenowy Zheng
2026-09-20  8:00             ` Troy Mitchell
2026-09-20 12:56   ` Icenowy Zheng
2026-09-21  3:35     ` Yixun Lan [this message]
2026-09-21  3:39       ` Icenowy Zheng
2026-09-21 12:43         ` Yixun Lan
2026-09-21  3:41       ` Icenowy Zheng
2026-09-21 12:44         ` Yixun Lan
2026-09-18  2:40 ` [PATCH 3/3] dts: riscv: spacemit: Add power domain nodes Yixun Lan

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=20260921033540-GKG297024@kernel.org \
    --to=dlan@kernel.org \
    --cc=alex@ghiti.fr \
    --cc=aou@eecs.berkeley.edu \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=palmer@dabbelt.com \
    --cc=pjw@kernel.org \
    --cc=robh@kernel.org \
    --cc=spacemit@lists.linux.dev \
    --cc=ulfh@kernel.org \
    --cc=uwu@icenowy.me \
    /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®