* [PATCH] interconnect: qcom: Propagate BCM vote commit errors
@ 2026-11-27 9:34 getfeus
2026-11-27 9:41 ` Konrad Dybcio
0 siblings, 1 reply; 2+ messages in thread
From: getfeus @ 2026-11-27 9:34 UTC (permalink / raw)
To: Georgi Djakov; +Cc: linux-pm, linux-arm-msm, linux-kernel
qcom_icc_set() discards the return value from
qcom_icc_bcm_voter_commit(). If the commit fails, icc_set_bw() sees
success and skips its rollback of the previous bandwidth request.
Return the commit result so the interconnect core can restore the
previous request, attempt to reapply it and report the original error.
Verified with a mocked commit failure through icc_set_bw() and on a
Huawei MateBook E Go using a one-shot -ENOMEM injection in the BCM
voter. The caller received -ENOMEM, and the previous bandwidth request
was reapplied successfully. The ARM64 kernel and modules also build
successfully.
Signed-off-by: Lee Youngjoon <getfeus@gmail.com>
---
--- a/drivers/interconnect/qcom/icc-rpmh.c
+++ b/drivers/interconnect/qcom/icc-rpmh.c
@@ -130,9 +130,7 @@
qp = to_qcom_provider(node->provider);
- qcom_icc_bcm_voter_commit(qp->voter);
-
- return 0;
+ return qcom_icc_bcm_voter_commit(qp->voter);
}
EXPORT_SYMBOL_GPL(qcom_icc_set);
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] interconnect: qcom: Propagate BCM vote commit errors
2026-11-27 9:34 [PATCH] interconnect: qcom: Propagate BCM vote commit errors getfeus
@ 2026-11-27 9:41 ` Konrad Dybcio
0 siblings, 0 replies; 2+ messages in thread
From: Konrad Dybcio @ 2026-11-27 9:41 UTC (permalink / raw)
To: getfeus, Georgi Djakov; +Cc: linux-pm, linux-arm-msm, linux-kernel
On 11/27/26 10:34 AM, getfeus@gmail.com wrote:
> qcom_icc_set() discards the return value from
> qcom_icc_bcm_voter_commit(). If the commit fails, icc_set_bw() sees
> success and skips its rollback of the previous bandwidth request.
>
> Return the commit result so the interconnect core can restore the
> previous request, attempt to reapply it and report the original error.
>
> Verified with a mocked commit failure through icc_set_bw() and on a
> Huawei MateBook E Go using a one-shot -ENOMEM injection in the BCM
> voter. The caller received -ENOMEM, and the previous bandwidth request
> was reapplied successfully. The ARM64 kernel and modules also build
> successfully.
>
> Signed-off-by: Lee Youngjoon <getfeus@gmail.com>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Konrad
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-27 9:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-27 9:34 [PATCH] interconnect: qcom: Propagate BCM vote commit errors getfeus
2026-11-27 9:41 ` Konrad Dybcio
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®