All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Claudiu Beznea" <claudiu.beznea@kernel.org>
Cc: linux-pci@vger.kernel.org, wsa+renesas@sang-engineering.com
Subject: Re: [PATCH 1/6] PCI: rzg3s-host: Follow hardware manual clock/reset initialization order
Date: Thu, 03 Dec 2026 09:51:39 +0000	[thread overview]
Message-ID: <sashiko-outbox-247504@kernel.org> (raw)
In-Reply-To: <20261203093224.247349-2-claudiu.beznea@kernel.org>

Thank you for your contribution! Sashiko AI review found no new issues
in this patch, but noticed 1 related pre-existing issue it does not
introduce:
- [High] PCI: rzg3s: strict runtime PM error checking in noirq callbacks
  [1]
--

commit 5b64ad6c833b947759b6bca40ab7aaa39c6c7bce
Author: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>

PCI: rzg3s-host: Follow hardware manual clock/reset initialization order

This commit reorders runtime PM clock enablement and power reset
deassertion in the RZ/G3S PCIe host controller probe, suspend, and
resume paths so clocks are enabled before resets are deasserted.

> diff --git a/drivers/pci/controller/pcie-rzg3s-host.c b/drivers/pci/controller/pcie-rzg3s-host.c
> index 2c2ee9d4d3244..1dbe2a2a4bf1c 100644
> --- a/drivers/pci/controller/pcie-rzg3s-host.c
> +++ b/drivers/pci/controller/pcie-rzg3s-host.c

[ ... ]

> @@ -1960,13 +1957,19 @@ static int rzg3s_pcie_suspend_noirq(struct device *dev)
>  	if (ret)
>  		goto config_reinit;
>  
> -	ret = rzg3s_sysc_config_func(sysc, RZG3S_SYSC_FUNC_ID_RST_RSM_B, 0);
> +	ret = pm_runtime_put_sync(dev);
>  	if (ret)
>  		goto power_resets_restore;

[ ... ]

> @@ -2005,18 +2007,18 @@ static int rzg3s_pcie_resume_noirq(struct device *dev)
>  			goto assert_rst_rsm_b;
>  	}
>  
> -	ret = rzg3s_pcie_power_resets_deassert(host);
> +	ret = pm_runtime_resume_and_get(dev);
>  	if (ret)
>  		goto assert_rst_rsm_b;

[Severity: High]
This problem wasn't introduced by this patch, but do these runtime PM
calls [1] unconditionally abort system suspend and resume?

During the noirq sleep phases, the PM core disables runtime PM.  In
rzg3s_pcie_suspend_noirq(), pm_runtime_put_sync() then returns 1 or a
negative error such as -EACCES, causing the if (ret) check to abort
suspend.

In rzg3s_pcie_resume_noirq(), pm_runtime_resume_and_get() similarly
fails while runtime PM is disabled and aborts resume.

[1] https://sashiko.dev/#/bug/linux-53a16ad9-4c25-4208-9722-ccbc2f6de282

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261203093224.247349-1-claudiu.beznea@kernel.org?part=1

  reply	other threads:[~2026-12-03  9:51 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03  9:32 [PATCH 0/6] PCI: rzg3s-host: Fixes Claudiu Beznea
2026-12-03  9:32 ` [PATCH 1/6] PCI: rzg3s-host: Follow hardware manual clock/reset initialization order Claudiu Beznea
2026-12-03  9:51   ` sashiko-bot [this message]
2026-12-03  9:32 ` [PATCH 2/6] PCI: rzg3s-host: Fix runtime PM handling in the NOIRQ suspend/resume phase Claudiu Beznea
2026-12-03 10:10   ` sashiko-bot
2026-12-03  9:32 ` [PATCH 3/6] PCI: rzg3s-host: Create the INTx IRQ domain before setting the chained handlers Claudiu Beznea
2026-12-03 10:27   ` sashiko-bot
2026-12-03  9:32 ` [PATCH 4/6] PCI: rzg3s-host: Initialize the IRQ domains after the IRQs are masked Claudiu Beznea
2026-12-03 10:47   ` sashiko-bot
2026-12-03  9:32 ` [PATCH 5/6] PCI: rzg3s-host: Drop read-modify-write approach for the R/W1C registers Claudiu Beznea
2026-12-03 10:57   ` sashiko-bot
2026-12-03  9:32 ` [PATCH 6/6] PCI: rzg3s-host: Fix NVMe resume errors after s2idle Claudiu Beznea
2026-12-03  9:44   ` Wolfram Sang
2026-12-03  9:55     ` Claudiu Beznea
2026-12-03 10:32       ` Wolfram Sang
2026-12-03 11:11   ` sashiko-bot

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=sashiko-outbox-247504@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=claudiu.beznea@kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=wsa+renesas@sang-engineering.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.