devfreq: qcom: bwmon: Reduce zone1 threshold count to 3
PATCH v4 1/1 devfreq: qcom: bwmon: Reduce zone1 threshold count to 3
Reduce zone1_thres_count from 16 to 3 so the driver can lower the bus vote after 3 sample windows instead of waiting for 16. The previous 16‑window delay (~64 ms) is too long at higher FPS workloads, causing delayed decision making and measurable power regression.
Power and performance measurements were collected for zone1_thres_count = 3 and 16, with the following results:
Usecase zone1_cnt=16 zone1_cnt=3 Delta
YouTube streaming (power) 4126.49 mW 3991.30 mW -3.28%
Google Meet audio (power) 3058.79 mW 2929.73 mW -4.22%
Speedometer 3.1(perf) 25.8 26.5 +2.7%
Geekbench 6.5 ST(perf) 3907 3905 -0.1%
Geekbench 6.5 MT(perf) 18636 18680 +0.2%
The reduced threshold therefore allows BWMON to react sooner to falling bandwidth demand, providing measurable power savings in the tested workloads without a meaningful performance regression.
Changes in v4:
- Rework the commit message to clarify why reducing zone1_thres_count
improves BWMON downscaling responsiveness.
- Clarify the empirical selection of 3 compared with lower and higher
threshold values.
- Add power and performance measurements comparing zone1_thres_count=16
and zone1_thres_count=3.
- Link to V3 : https://lore.kernel.org/lkml/[email protected]/
Chages in v3:
- Update commit message
- Link to v2: https://lore.kernel.org/lkml/[email protected]/
Changes in v2:
- Update commit message
- Link to v1: https://lore.kernel.org/lkml/[email protected]
--- drivers/soc/qcom/icc-bwmon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/soc/qcom/icc-bwmon.c +2 -2
@@ -830,7 +830,7 @@ static const struct icc_bwmon_data msm8998_bwmon_data = {static const struct icc_bwmon_data sdm845_cpu_bwmon_data = { .sample_ms =4 , .count_unit_kb =64 , - .zone1_thres_count =16 , + .zone1_thres_count =3 , .zone3_thres_count =1 , .quirks =BWMON_HAS_GLOBAL_IRQ , .regmap_fields = sdm845_cpu_bwmon_reg_fields,
@@ -849,7 +849,7 @@ static const struct icc_bwmon_data sdm845_llcc_bwmon_data = {static const struct icc_bwmon_data sc7280_llcc_bwmon_data = { .sample_ms =4 , .count_unit_kb =64 , - .zone1_thres_count =16 , + .zone1_thres_count =3 , .zone3_thres_count =1 , .quirks =BWMON_NEEDS_FORCE_CLEAR , .regmap_fields = sdm845_llcc_bwmon_reg_fields,
Signature · 1 line
2.34.1
Krzysztof Kozlowski
maintainerQuoted 15 lines · Pushpendra Singh
Reduce
zone1_thres_countfrom 16 to 3 so the driver can lower the bus vote after 3 sample windows instead of waiting for 16. The previous 16‑window delay (~64 ms) is too long at higher FPS workloads, causing delayed decision making and measurable power regression.Power and performance measurements were collected for
zone1_thres_count= 3 and 16, with the following results:Usecase zone1_cnt=16 zone1_cnt=3 Delta
YouTube streaming (power) 4126.49 mW 3991.30 mW -3.28%
Google Meet audio (power) 3058.79 mW 2929.73 mW -4.22%
Speedometer 3.1(perf) 25.8 26.5 +2.7%
Geekbench 6.5 ST(perf) 3907 3905 -0.1%
Geekbench 6.5 MT(perf) 18636 18680 +0.2%
Quoted 3 lines
The reduced threshold therefore allows BWMON to react sooner to falling bandwidth demand, providing measurable power savings in the tested workloads without a meaningful performance regression.
I do not see how you resolved my comment, so same comment.
Best regards,
Krzysztof
Quoted 16 lines · Krzysztof Kozlowski
Quoted 15 lines · Pushpendra Singh
Reduce
zone1_thres_countfrom 16 to 3 so the driver can lower the bus vote after 3 sample windows instead of waiting for 16. The previous 16‑window delay (~64 ms) is too long at higher FPS workloads, causing delayed decision making and measurable power regression.Power and performance measurements were collected for
zone1_thres_count= 3 and 16, with the following results:Usecase zone1_cnt=16 zone1_cnt=3 Delta
YouTube streaming (power) 4126.49 mW 3991.30 mW -3.28%
Google Meet audio (power) 3058.79 mW 2929.73 mW -4.22%
Speedometer 3.1(perf) 25.8 26.5 +2.7%
Geekbench 6.5 ST(perf) 3907 3905 -0.1%
Geekbench 6.5 MT(perf) 18636 18680 +0.2%
Quoted 5 lines
Quoted 3 lines
The reduced threshold therefore allows BWMON to react sooner to falling bandwidth demand, providing measurable power savings in the tested workloads without a meaningful performance regression.
I do not see how you resolved my comment, so same comment.
Thanks for the feedback. I had addressed the previous comment by rerunning the power and performance measurements on the latest kernel (v7.3.rc5) and shared the updated results in my previous reply[1]. I have also included these results in the commit message in this respin.
Could you please clarify if there is any additional concern that I may have missed? I’ll be happy to address it.
[1]
https://lore.kernel.org/lkml/[email protected]/
Thanks,
Pushpendra Singh
Quoted 3 lines
Best regards,
Krzysztof
Krzysztof Kozlowski
maintainerQuoted 23 lines · Pushpendra Singh
Quoted 20 lines · Krzysztof Kozlowski
Quoted 18 lines · Pushpendra Singh
Reduce
zone1_thres_countfrom 16 to 3 so the driver can lower the bus vote after 3 sample windows instead of waiting for 16. The previous 16‑window delay (~64 ms) is too long at higher FPS workloads, causing delayed decision making and measurable power regression.Power and performance measurements were collected for
zone1_thres_count= 3 and 16, with the following results:Usecase zone1_cnt=16 zone1_cnt=3 Delta
YouTube streaming (power) 4126.49 mW 3991.30 mW -3.28%
Google Meet audio (power) 3058.79 mW 2929.73 mW -4.22%
Speedometer 3.1(perf) 25.8 26.5 +2.7%
Geekbench 6.5 ST(perf) 3907 3905 -0.1%
Geekbench 6.5 MT(perf) 18636 18680 +0.2%The reduced threshold therefore allows BWMON to react sooner to falling bandwidth demand, providing measurable power savings in the tested workloads without a meaningful performance regression.
Quoted 5 lines
Quoted 1 line
I do not see how you resolved my comment, so same comment.
Thanks for the feedback. I had addressed the previous comment by rerunning the power and performance measurements on the latest kernel (v7.3.rc5) and shared the updated results in my previous reply[1]. I have also included these results in the commit message in this respin.
Could you please clarify if there is any additional concern that I may have missed? I’ll be happy to address it.
OK, I missed then the part of commit msg explaining which hardware.
Best regards,
Krzysztof
Quoted 24 lines · Krzysztof Kozlowski
Quoted 23 lines · Pushpendra Singh
Quoted 20 lines · Krzysztof Kozlowski
Quoted 18 lines · Pushpendra Singh
Reduce
zone1_thres_countfrom 16 to 3 so the driver can lower the bus vote after 3 sample windows instead of waiting for 16. The previous 16‑window delay (~64 ms) is too long at higher FPS workloads, causing delayed decision making and measurable power regression.Power and performance measurements were collected for
zone1_thres_count= 3 and 16, with the following results:Usecase zone1_cnt=16 zone1_cnt=3 Delta
YouTube streaming (power) 4126.49 mW 3991.30 mW -3.28%
Google Meet audio (power) 3058.79 mW 2929.73 mW -4.22%
Speedometer 3.1(perf) 25.8 26.5 +2.7%
Geekbench 6.5 ST(perf) 3907 3905 -0.1%
Geekbench 6.5 MT(perf) 18636 18680 +0.2%The reduced threshold therefore allows BWMON to react sooner to falling bandwidth demand, providing measurable power savings in the tested workloads without a meaningful performance regression.
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
I do not see how you resolved my comment, so same comment.
Thanks for the feedback. I had addressed the previous comment by rerunning the power and performance measurements on the latest kernel (v7.3.rc5) and shared the updated results in my previous reply[1]. I have also included these results in the commit message in this respin.
Could you please clarify if there is any additional concern that I may have missed? I’ll be happy to address it.
OK, I missed then the part of commit msg explaining which hardware.
The hardware used for the validation is SC8480XP (Glymur).
Thanks,
Pushpendra Singh
Quoted 3 lines
Best regards,
Krzysztof