From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
To: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>,
Konrad Dybcio <konradybcio@kernel.org>
Cc: Georgi Djakov <djakov@kernel.org>,
Evan Green <evgreen@chromium.org>,
Yassine Oudjana <y.oudjana@protonmail.com>,
Dmitry Baryshkov <lumag@kernel.org>,
Adam Skladowski <a39.skl@gmail.com>,
linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/6] interconnect: qcom: icc-rpm: Don't skip small votes
Date: Thu, 10 Sep 2026 09:38:04 +0200 [thread overview]
Message-ID: <9dc6664c-616e-4a8d-8cd3-9a790c09fff9@oss.qualcomm.com> (raw)
In-Reply-To: <eguvscm5rutrezg3n6oncxfbma3qolho6acj3uibiknp732nah@n7fhrx5jyfdd>
On 9/9/26 8:38 PM, Dmitry Baryshkov wrote:
> On Wed, Sep 09, 2026 at 06:41:55PM +0200, Konrad Dybcio wrote:
>> From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
>>
>> Small votes (such as 1 or 100) can end up being rounded down to 0
>> midway through the calculations. Use qcom_bw_div() when dividing to
>> prevent that.
>>
>> Assisted-by: LLM
>> Fixes: 30c8fa3ec61a ("interconnect: qcom: Add MSM8916 interconnect provider driver")
>> Signed-off-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
>> ---
>> drivers/interconnect/qcom/icc-rpm.c | 8 ++++----
>> 1 file changed, 4 insertions(+), 4 deletions(-)
>>
>
> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
>
> What is the reason for the drivers to cast such small votes? Isn't it a
> mistake on the driver side?
Yes and no.. the interconnect infrastructure on RPM/RPMH is a bit
"meh" given it accept kBps values that it then converts to bus clock
frequencies in MHz that are then clamped to one of the predefined DVFS
levels. Many drivers want "level X specifically" or "anything that's non
zero" or "anything just above the first nonzero level", but due to the
differences in topology, that may translate to different values on
different platforms.
So 1 was at one point deemed okay for "i don't care, just need the
bus on". I'm not sure if the uses of it are valid, given that doesn't
*actually* reserve the bandwidth on the [most often] config path
while the driver may hammer register i/o pretty hard, but at least I'd
like for that to give the expected result.
These "safe-divisions" are more meaningful in the RPMH world, because
each BCM defines the units in which it accepts bandwidth (may be N
Bps, kBps etc.), so there's much more potential for truncation there
Konrad
next prev parent reply other threads:[~2026-09-10 7:38 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-09 16:41 [PATCH 0/6] Assorted fixes for icc-rpm Konrad Dybcio
2026-09-09 16:41 ` [PATCH 1/6] interconnect: qcom: Move bcm_div() to common code Konrad Dybcio
2026-09-09 18:37 ` Dmitry Baryshkov
2026-09-10 7:29 ` Abel Vesa
2026-09-09 16:41 ` [PATCH 2/6] interconnect: qcom: icc-rpm: Don't skip small votes Konrad Dybcio
2026-09-09 18:38 ` Dmitry Baryshkov
2026-09-10 7:38 ` Konrad Dybcio [this message]
2026-09-10 7:30 ` Abel Vesa
2026-09-09 16:41 ` [PATCH 3/6] interconnect: qcom: icc-rpm: Handle icc_link_create() failures Konrad Dybcio
2026-09-09 18:39 ` Dmitry Baryshkov
2026-09-10 7:30 ` Abel Vesa
2026-09-09 16:41 ` [PATCH 4/6] interconnect: qcom: icc-rpm: Program SMD RPM auxiliary QoS ports Konrad Dybcio
2026-09-09 18:41 ` Dmitry Baryshkov
2026-09-10 7:31 ` Abel Vesa
2026-09-09 16:41 ` [PATCH 5/6] interconnect: qcom: msm8996: Configure auxiliary Venus QoS port Konrad Dybcio
2026-09-09 18:41 ` Dmitry Baryshkov
2026-09-10 7:32 ` Abel Vesa
2026-09-09 16:41 ` [PATCH 6/6] interconnect: qcom: msm8976: Configure auxiliary GPU " Konrad Dybcio
2026-09-09 19:00 ` Dmitry Baryshkov
2026-09-10 7:32 ` Abel Vesa
2026-09-24 23:19 ` [PATCH 0/6] Assorted fixes for icc-rpm Mark Brown
2026-09-28 10:49 ` Konrad Dybcio
2026-09-28 11:37 ` Mark Brown
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=9dc6664c-616e-4a8d-8cd3-9a790c09fff9@oss.qualcomm.com \
--to=konrad.dybcio@oss.qualcomm.com \
--cc=a39.skl@gmail.com \
--cc=djakov@kernel.org \
--cc=dmitry.baryshkov@oss.qualcomm.com \
--cc=evgreen@chromium.org \
--cc=konradybcio@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=lumag@kernel.org \
--cc=y.oudjana@protonmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®