devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Barnabás Czémán" <barnabas.czeman@mainlining.org>
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v2 2/6] pmdomain: qcom: rpmpd: Split SDM632 pm domains from MSM8953
Date: Tue, 29 Sep 2026 18:44:42 +0000	[thread overview]
Message-ID: <20260929184442.B6DE11F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260929-sdm632-rpmpd-v2-2-97ef8858161b@mainlining.org>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [High] pmdomain: ABI breakage for MSM8953 VDDMD domain
- [Low] pmdomain: boot log spam from sparse rpmpds arrays
--

commit dbd7dd8006d3cfc31f752d18b9c1216c6ac42655
Author: Barnabás Czémán <barnabas.czeman@mainlining.org>

pmdomain: qcom: rpmpd: Split SDM632 pm domains from MSM8953

Remove modem related pm domains from MSM8953 rpmpd because MSM8953 MSS
is using mss-supply as regulator.
Split SDM632 rpmpd from MSM8953 because SDM632 MSS is using mss-supply
as pm domain.

> diff --git a/drivers/pmdomain/qcom/rpmpd.c b/drivers/pmdomain/qcom/rpmpd.c
> index 5f55fc791131a..c37a79d6bc433 100644
> --- a/drivers/pmdomain/qcom/rpmpd.c
> +++ b/drivers/pmdomain/qcom/rpmpd.c
> @@ -703,8 +692,6 @@ static const struct rpmpd_desc msm8917_desc = {
>  };
>  
>  static struct rpmpd *msm8953_rpmpds[] = {
> -	[MSM8953_VDDMD] =	&md_s1a_lvl,
> -	[MSM8953_VDDMD_AO] =	&md_s1a_lvl_ao,

[Severity: High]
Does removing the VDDMD PM domains break backward compatibility with
existing device trees for MSM8953?

When booting a new kernel with an older MSM8953 device tree, the
provider rpmpd driver will no longer expose the VDDMD domain. Older
device trees lack the mss-supply regulator, so a dummy regulator
will be returned and enabled.

Since the actual power domain is never requested or powered up in this
scenario, could this cause the modem to fail to boot on older DTBs?
Is there a fallback mechanism to support existing device trees?

>  	[MSM8953_VDDCX] =	&cx_s2a_lvl,
>  	[MSM8953_VDDCX_AO] =	&cx_s2a_lvl_ao,

[ ... ]

> @@ -844,6 +831,21 @@ static const struct rpmpd_desc qm215_desc = {
>  	.max_state = RPM_SMD_LEVEL_TURBO,
>  };
>  
> +static struct rpmpd *sdm632_rpmpds[] = {
> +	[RPMPD_VDDMD] =		&md_s1a_lvl,
> +	[RPMPD_VDDCX] =		&cx_s2a_lvl,
> +	[RPMPD_VDDCX_AO] =	&cx_s2a_lvl_ao,
> +	[RPMPD_VDDCX_VFL] =	&cx_s2a_vfl,
> +	[RPMPD_VDDMX] =		&mx_s7a_lvl,
> +	[RPMPD_VDDMX_AO] =	&mx_s7a_lvl_ao,
> +};

[Severity: Low]
Will this sparse array result in boot log warnings?

Looking at rpmpd_probe, it iterates over the array and unconditionally
emits a warning for any missing entries:

        if (!rpmpds[i]) {
                dev_warn(&pdev->dev, "rpmpds[] with empty entry at index=%d\n", i);
                continue;
        }

Since sdm632_rpmpds uses RPMPD_VDDMD (index 10) but omits the domains
from indices 5 through 9, will the probe function emit multiple warnings
on every normal boot for the gap in the array?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260929-sdm632-rpmpd-v2-0-97ef8858161b@mainlining.org?part=2

  reply	other threads:[~2026-09-29 18:44 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-29 18:28 [PATCH v2 0/6] MSM8953/SDM632 rpmpd/mss fixes Barnabás Czémán
2026-09-29 18:28 ` [PATCH v2 1/6] dt-bindings: power: qcom-rpmpd: Remove unused MSM8953 indices Barnabás Czémán
2026-09-29 18:36   ` sashiko-bot
2026-10-01  8:10   ` Krzysztof Kozlowski
2026-09-29 18:28 ` [PATCH v2 2/6] pmdomain: qcom: rpmpd: Split SDM632 pm domains from MSM8953 Barnabás Czémán
2026-09-29 18:44   ` sashiko-bot [this message]
2026-09-29 18:28 ` [PATCH v2 3/6] remoteproc: qcom_q6v5_mss: Use mss as regulator for MSM8953 Barnabás Czémán
2026-09-29 18:40   ` sashiko-bot
2026-09-29 18:28 ` [PATCH v2 4/6] dt-bindings: remoteproc: qcom,msm8916-mss-pil: Add SDM632 Barnabás Czémán
2026-09-29 18:28 ` [PATCH v2 5/6] remoteproc: qcom_q6v5_mss: Add SDM632 MSS Barnabás Czémán
2026-09-29 18:28 ` [PATCH v2 6/6] arm64: dts: qcom: sdm632: Correct power domains Barnabás Czémán

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=20260929184442.B6DE11F000FF@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=barnabas.czeman@mainlining.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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;
as well as URLs for NNTP newsgroup(s).