Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Kathiravan Thirumoorthy" <kathiravan.thirumoorthy@oss.qualcomm.com>
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH 2/2] soc: qcom: socinfo: add few more SOC IDs for IPQ5210 family
Date: Mon, 21 Sep 2026 07:00:04 +0000	[thread overview]
Message-ID: <20260921070005.27FFD1F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260921-ipq52xx_new_ids-v1-2-63d68a11bbff@oss.qualcomm.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] qcom-cpufreq: kernel panic on boot for new IPQ5210 SoCs
--

commit 9ff7f8e096f96a22381e41ab225a2e460fe769da
Author: Kathiravan Thirumoorthy <kathiravan.thirumoorthy@oss.qualcomm.com>

soc: qcom: socinfo: add few more SOC IDs for IPQ5210 family

QCF3211 and IPQ5211 are the new SoCs based on the IPQ5210 family. This commit
adds the SoC IDs for them to the socinfo driver.

> diff --git a/drivers/soc/qcom/socinfo.c b/drivers/soc/qcom/socinfo.c
> index 63ee5cd561a29..4e7e14fe72317 100644
> --- a/drivers/soc/qcom/socinfo.c
> +++ b/drivers/soc/qcom/socinfo.c
> @@ -558,6 +558,8 @@ static const struct soc_id soc_id[] = {
>  	{ qcom_board_id(IPQ9630) },
>  	{ qcom_board_id(IPQ9640) },
>  	{ qcom_board_id(IPQ9670) },
> +	{ qcom_board_id(QCF3211) },
> +	{ qcom_board_id(IPQ5211) },

[Severity: High]
Could this lead to a kernel panic during boot on these new SoCs? 

When the qcom-cpufreq-nvmem driver probes, it calls
qcom_cpufreq_kryo_name_version() which checks the SoC ID. Since QCOM_ID_QCF3211
and QCOM_ID_IPQ5211 are not handled in its switch statement, execution
appears to fall through to the default case:

drivers/cpufreq/qcom-cpufreq-nvmem.c:qcom_cpufreq_kryo_name_version() {
...
	switch (msm_id) {
...
	case QCOM_ID_IPQ5200:
	case QCOM_ID_IPQ5210:
	case QCOM_ID_QCF2200:
	case QCOM_ID_QCF3200:
	case QCOM_ID_QCF3210:
		drv->versions = (*speedbin == 0xcd) ? BIT(1) : BIT(0);
		break;
...
	default:
		BUG();
		break;
	}
...
}

Does qcom-cpufreq-nvmem.c need to be updated alongside this change to handle
the newly added IDs and prevent triggering this BUG() trap?

>  };
>  
>  static const char *socinfo_machine(struct device *dev, unsigned int id)

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260921-ipq52xx_new_ids-v1-0-63d68a11bbff@oss.qualcomm.com?part=2

      reply	other threads:[~2026-09-21  7:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-21  6:51 [PATCH 0/2] Add few more SOC IDs for IPQ5210 family Kathiravan Thirumoorthy
2026-09-21  6:51 ` [PATCH 1/2] dt-bindings: arm: qcom,ids: add " Kathiravan Thirumoorthy
2026-09-21  7:00   ` sashiko-bot
2026-09-21  6:51 ` [PATCH 2/2] soc: qcom: socinfo: " Kathiravan Thirumoorthy
2026-09-21  7:00   ` sashiko-bot [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=20260921070005.27FFD1F000FF@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=kathiravan.thirumoorthy@oss.qualcomm.com \
    --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