mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: claudiu beznea <claudiu.beznea@tuxon.dev>
To: Biju Das <biju.das.jz@bp.renesas.com>,
	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 12:00:27 +0200	[thread overview]
Message-ID: <d1fbf535-62e3-49af-8eea-eaa5649f8977@tuxon.dev> (raw)
In-Reply-To: <TYYPR01MB6603558B6F19CAC31748204486452@TYYPR01MB6603.jpnprd01.prod.outlook.com>

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.

> 
> Suspend to idle. Critical clk is on, so there is no way critical clk ref count is 0
> and corresponding MSTOP is always in stand by state.

Didn't we already had this discussion here: 
https://lore.kernel.org/all/TY3PR01MB113460224F0225E29A7C5097C86982@TY3PR01MB11346.jpnprd01.prod.outlook.com/ 
?

Thank you,
Claudiu

  reply	other threads:[~2026-11-23 10:00 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 [this message]
2026-11-23 10:07       ` Biju Das

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=d1fbf535-62e3-49af-8eea-eaa5649f8977@tuxon.dev \
    --to=claudiu.beznea@tuxon.dev \
    --cc=biju.das.jz@bp.renesas.com \
    --cc=bmasney+clk@redhat.com \
    --cc=claudiu.beznea@kernel.org \
    --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®