mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Biju Das <biju.das.jz@bp.renesas.com>
To: "Claudiu.Beznea" <claudiu.beznea@tuxon.dev>,
	Claudiu Beznea <claudiu.beznea@kernel.org>,
	"geert+renesas@glider.be" <geert+renesas@glider.be>,
	"sboyd@kernel.org" <sboyd@kernel.org>,
	"bmasney+clk@redhat.com" <bmasney+clk@redhat.com>,
	"jbrunet+clk@baylibre.com" <jbrunet+clk@baylibre.com>
Cc: "linux-renesas-soc@vger.kernel.org"
	<linux-renesas-soc@vger.kernel.org>,
	"linux-clk@vger.kernel.org" <linux-clk@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: RE: [PATCH] clk: renesas: rzg2l-cpg: Skip re-initializing MSTOPs and critical resets for s2idle
Date: Mon, 23 Nov 2026 10:07:36 +0000	[thread overview]
Message-ID: <TYYPR01MB66035C00CCA93CA3481585A786452@TYYPR01MB6603.jpnprd01.prod.outlook.com> (raw)
In-Reply-To: <d1fbf535-62e3-49af-8eea-eaa5649f8977@tuxon.dev>

Hi Claudiu,

> -----Original Message-----
> From: claudiu beznea <claudiu.beznea@tuxon.dev>
> Sent: 23 November 2026 10:00
> Subject: Re: [PATCH] clk: renesas: rzg2l-cpg: Skip re-initializing MSTOPs and critical resets for
> s2idle
> 
> Hi, Biju,
> 
> On 11/23/26 11:46, Biju Das wrote:
> > Hi Claudiu,
> >
> >> -----Original Message-----
> >> From: claudiu beznea <claudiu.beznea@tuxon.dev>
> >> Sent: 23 November 2026 08:07
> >> Subject: Re: [PATCH] clk: renesas: rzg2l-cpg: Skip re-initializing
> >> MSTOPs and critical resets for s2idle
> >>
> >> Hi, Geert,
> >>
> >> Gentle ping.
> >>
> >> Thank you,
> >> Claudiu
> >>
> >> On 10/19/26 15:25, Claudiu Beznea wrote:
> >>> From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
> >>>
> >>> When the system suspends to s2idle, any of the IP blocks may be in
> >>> the wakeup path. For a device in the wakeup path, the generic PM
> >>> domain
> >>> (genpd) does not disable/enable its clocks across suspend/resume.
> >>> Re-initializing the MSTOP bits for such a device leads to
> >>> synchronous aborts when its registers are accessed for the first time after resume.
> >>>
> >>> In a suspend mode that is not controlled by firmware, power to the
> >>> SoC is not lost, so the MSTOP and critical reset state is retained
> >>> and does not need re-initialization in the first place. Skip it when
> >>> pm_suspend_via_firmware() reports such a mode.
> >
> >
> > Looks like a bug in clk driver. MSTOP is controlled by clk reference count.
> > If clk ref count is 0, then MSTOP turned off.
> 
> Have you read the patch description? Here it is:
> 
> When the system suspends to s2idle, any of the IP blocks may be in the wakeup path. For a device in
> the wakeup path, the generic PM domain (genpd) does not disable/enable its clocks across
> suspend/resume. Re-initializing the MSTOP bits for such a device leads to synchronous aborts when its
> registers are accessed for the first time after resume.

In suspend to idle, during suspend state which critical clk is turning MSTOP into standby state?

If suspend does not touch critical clk, then MSTOP will be normal state.

During resume, If MSTOP is in normal operation, will setting again to normal state will
Lead to abort? Am I missing anything here?

Cheers,
Biju

      reply	other threads:[~2026-11-23 10:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-19 12:25 Claudiu Beznea
2026-10-19 12:36 ` Biju Das
2026-10-19 13:00   ` Claudiu Beznea
2026-10-19 13:07     ` Biju Das
2026-11-23  8:07 ` claudiu beznea
2026-11-23  9:46   ` Biju Das
2026-11-23 10:00     ` claudiu beznea
2026-11-23 10:07       ` Biju Das [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=TYYPR01MB66035C00CCA93CA3481585A786452@TYYPR01MB6603.jpnprd01.prod.outlook.com \
    --to=biju.das.jz@bp.renesas.com \
    --cc=bmasney+clk@redhat.com \
    --cc=claudiu.beznea@kernel.org \
    --cc=claudiu.beznea@tuxon.dev \
    --cc=geert+renesas@glider.be \
    --cc=jbrunet+clk@baylibre.com \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=sboyd@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®