From: sashiko-bot@kernel.org
To: "Viken Dadhaniya" <viken.dadhaniya@oss.qualcomm.com>
Cc: linux-serial@vger.kernel.org
Subject: Re: [PATCH 1/2] soc: qcom: geni-se: Correct QUP Core ICC vote constants
Date: Tue, 08 Sep 2026 19:25:08 +0000 [thread overview]
Message-ID: <20260908192508.8148C1F00A3A@smtp.kernel.org> (raw)
In-Reply-To: <20260909-correct-icc-bandwidth-vote-constants-v1-1-fbebf6b3c341@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The new Bps constants for QUP Core 2X clock votes are too large and will be clamped by the RPMh BCM voter, breaking dynamic bandwidth scaling for frequencies >= 150 MHz.
--
commit 4b7db07800053a04e9ce8152ed56486618d8f495
Author: Viken Dadhaniya <viken.dadhaniya@oss.qualcomm.com>
Date: Tue Sep 8 19:05:33 2026 +0000
soc: qcom: geni-se: Correct QUP Core ICC vote constants
This commit corrects the QUP Core 2X clock rate constants by scaling
them up to their intended raw Bps thresholds. The previous values were
under-voting the QUP Core clock.
> diff --git a/include/linux/soc/qcom/geni-se.h b/include/linux/soc/qcom/geni-se.h
> index 29a53bbc0dd49..2243005f5e2ee 100644
> --- a/include/linux/soc/qcom/geni-se.h
> +++ b/include/linux/soc/qcom/geni-se.h
[ ... ]
> -#define CORE_2X_100_MHZ 5000
> -#define CORE_2X_150_MHZ 7500
> -#define CORE_2X_200_MHZ 10000
> -#define CORE_2X_236_MHZ 16383
> +#define CORE_2X_100_MHZ 50000000
> +#define CORE_2X_150_MHZ 75000000
> +#define CORE_2X_200_MHZ 100000000
> +#define CORE_2X_236_MHZ 118000000
[Severity: Medium]
Will these higher bandwidth values be clamped by the interconnect framework?
When these values are converted to kBps via Bps_to_icc() (e.g., 75,000 for
the 150 MHz state) and passed to the RPMh BCM voter, they undergo scaling
in bcm_aggregate().
With standard QUP parameters (vote_scale=1000, buswidth=4, unit=1000), a
kBps vote of 75,000 evaluates to a calculated vote of 18,750 or higher
depending on aux_data.width.
The hardware TCS command mask in the RPMh voter is limited to 14 bits:
drivers/interconnect/qcom/bcm-voter.c:tcs_cmd_gen() {
...
if (vote_x > BCM_TCS_CMD_VOTE_MASK)
vote_x = BCM_TCS_CMD_VOTE_MASK;
...
}
Because BCM_TCS_CMD_VOTE_MASK is 16383, any vote resulting from these new
thresholds for >= 150 MHz will exceed the mask and be clamped to 16383.
Does this result in a loss of dynamic bandwidth scaling granularity for
these higher frequency requests, effectively always requesting the maximum
frequency state?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260909-correct-icc-bandwidth-vote-constants-v1-0-fbebf6b3c341@oss.qualcomm.com?part=1
next prev parent reply other threads:[~2026-09-08 19:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-08 19:05 [PATCH 0/2] qcom-geni: Fix QUP Core ICC votes Viken Dadhaniya
2026-09-08 19:05 ` [PATCH 1/2] soc: qcom: geni-se: Correct QUP Core ICC vote constants Viken Dadhaniya
2026-09-08 19:25 ` sashiko-bot [this message]
2026-09-09 11:42 ` Konrad Dybcio
2026-09-13 8:42 ` Viken Dadhaniya
2026-09-08 19:05 ` [PATCH 2/2] tty: serial: qcom_geni_serial: Keep console RX functional after deep idle Viken Dadhaniya
2026-09-08 19:13 ` sashiko-bot
2026-09-09 11:44 ` 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=20260908192508.8148C1F00A3A@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=viken.dadhaniya@oss.qualcomm.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.