From: sashiko-bot@kernel.org
To: "Dmitry Baryshkov" <dmitry.baryshkov@oss.qualcomm.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 5/8] interconnect: qcom: icc-rpm: Allow negative QoS offset
Date: Mon, 19 Oct 2026 15:46:18 +0000 [thread overview]
Message-ID: <sashiko-outbox-177785@kernel.org> (raw)
In-Reply-To: <20261019-msm8998-icc-v1-5-c2da3934b6c8@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] interconnect: qcom: icc-rpm: qos_offset left unsigned in struct qcom_icc_desc
--
commit 3e9f9997842746ad0c0d3e4f86234e2fec24e800
Author: Konrad Dybcio <konradybcio@kernel.org>
interconnect: qcom: icc-rpm: Allow negative QoS offset
This commit changes qos_offset in struct qcom_icc_provider from unsigned int
to int to support negative QoS register offsets on platforms such as MSM8998.
> diff --git a/drivers/interconnect/qcom/icc-rpm.h b/drivers/interconnect/qcom/icc-rpm.h
> index d2c5f45eeedf4..d0ffc042e926b 100644
> --- a/drivers/interconnect/qcom/icc-rpm.h
> +++ b/drivers/interconnect/qcom/icc-rpm.h
> @@ -57,7 +57,7 @@ struct qcom_icc_provider {
> struct icc_provider provider;
> enum qcom_icc_type type;
> struct regmap *regmap;
> - unsigned int qos_offset;
> + int qos_offset;
> u16 ab_coeff;
> u16 ib_coeff;
> u32 bus_clk_rate[QCOM_SMD_RPM_STATE_NUM];
[Severity: Low]
Should qos_offset in struct qcom_icc_desc also be changed from unsigned int
to int?
Platform interconnect drivers initialize qos_offset in struct qcom_icc_desc,
which is still declared as unsigned int in drivers/interconnect/qcom/icc-rpm.h:
struct qcom_icc_desc {
...
const struct regmap_config *regmap_cfg;
unsigned int qos_offset;
u16 ab_coeff;
...
};
When a descriptor initializes qos_offset to a negative value (such as -0x300
on MSM8998 BIMC) and qnoc_probe() in drivers/interconnect/qcom/icc-rpm.c
copies it to the provider:
qp->type = desc->type;
qp->qos_offset = desc->qos_offset;
leaving desc->qos_offset unsigned causes an implicit negative-to-unsigned
conversion at initialization and an unsigned-to-signed conversion in
qnoc_probe().
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261019-msm8998-icc-v1-0-c2da3934b6c8@oss.qualcomm.com?part=5
next prev parent reply other threads:[~2026-10-19 15:46 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-19 14:12 [PATCH 0/8] interconnect: qcom: implement support for MSM8998 Dmitry Baryshkov
2026-10-19 14:12 ` [PATCH 1/8] dt-bindings: interconnect: add Qualcomm MSM8998 NoC Dmitry Baryshkov
2026-10-19 15:36 ` sashiko-bot
2026-10-20 8:24 ` Krzysztof Kozlowski
2026-10-20 10:25 ` Dmitry Baryshkov
2026-10-19 14:12 ` [PATCH 2/8] soc: qcom: smd-rpm: Handle zero-length errors Dmitry Baryshkov
2026-10-19 14:12 ` [PATCH 3/8] interconnect: qcom: icc-rpm: depopulate SMD RPM child NoCs Dmitry Baryshkov
2026-10-19 15:41 ` sashiko-bot
2026-10-19 14:12 ` [PATCH 4/8] interconnect: qcom: icc-rpm: skip duplicate SMD RPM node votes Dmitry Baryshkov
2026-10-19 14:12 ` [PATCH 5/8] interconnect: qcom: icc-rpm: Allow negative QoS offset Dmitry Baryshkov
2026-10-19 15:46 ` sashiko-bot [this message]
2026-10-19 14:12 ` [PATCH 6/8] interconnect: qcom: add MSM8998 interconnect provider Dmitry Baryshkov
2026-10-19 14:12 ` [PATCH 7/8] arm64: dts: qcom: msm8998: add interconnect provider nodes Dmitry Baryshkov
2026-10-20 7:11 ` Konrad Dybcio
2026-10-19 14:12 ` [PATCH 8/8] arm64: dts: qcom: msm8998: wire up interconnect paths Dmitry Baryshkov
2026-10-19 16:08 ` sashiko-bot
2026-10-20 7:16 ` Konrad Dybcio
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-177785@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.baryshkov@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