* [PATCH 0/2] Add Milos CPU-to-DDR BWMON support
@ 2026-07-17 11:45 Luca Weiss
2026-07-17 11:45 ` [PATCH 1/2] dt-bindings: interconnect: qcom-bwmon: Add Milos cpu-bwmon compatible Luca Weiss
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Luca Weiss @ 2026-07-17 11:45 UTC (permalink / raw)
To: Krzysztof Kozlowski, Georgi Djakov, Rob Herring, Conor Dooley,
Bjorn Andersson, Konrad Dybcio, Krzysztof Kozlowski
Cc: ~postmarketos/upstreaming, phone-devel, linux-arm-msm, linux-pm,
devicetree, linux-kernel, Luca Weiss
Add support for the bandwidth monitoring block on Milos which lets the
driver vote on interconnect bandwidth based on monitored throughput.
Similar to the CPU OPP table series[0], this would benefit from driver
support that can differentiate between DDR4 and DDR5 RAM since different
votes would be correct.
[0] https://lore.kernel.org/linux-arm-msm/20260710-milos-cpu-opp-v1-0-ae7f4b09bc77@fairphone.com/
Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
---
Luca Weiss (2):
dt-bindings: interconnect: qcom-bwmon: Add Milos cpu-bwmon compatible
arm64: dts: qcom: milos: Add CPU-to-DDR BWMON support
.../bindings/interconnect/qcom,msm8998-bwmon.yaml | 1 +
arch/arm64/boot/dts/qcom/milos.dtsi | 49 ++++++++++++++++++++++
2 files changed, 50 insertions(+)
---
base-commit: 19827e7930a5511c68e12aac6e4522f3661a1709
change-id: 20260717-milos-cpu-bwmon-fce32974efb1
Best regards,
--
Luca Weiss <luca.weiss@fairphone.com>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 1/2] dt-bindings: interconnect: qcom-bwmon: Add Milos cpu-bwmon compatible
2026-07-17 11:45 [PATCH 0/2] Add Milos CPU-to-DDR BWMON support Luca Weiss
@ 2026-07-17 11:45 ` Luca Weiss
2026-07-21 10:18 ` Krzysztof Kozlowski
2026-07-17 11:45 ` [PATCH 2/2] arm64: dts: qcom: milos: Add CPU-to-DDR BWMON support Luca Weiss
2026-09-01 2:09 ` (subset) [PATCH 0/2] Add Milos " Bjorn Andersson
2 siblings, 1 reply; 7+ messages in thread
From: Luca Weiss @ 2026-07-17 11:45 UTC (permalink / raw)
To: Krzysztof Kozlowski, Georgi Djakov, Rob Herring, Conor Dooley,
Bjorn Andersson, Konrad Dybcio, Krzysztof Kozlowski
Cc: ~postmarketos/upstreaming, phone-devel, linux-arm-msm, linux-pm,
devicetree, linux-kernel, Luca Weiss
Add the compatible string for the CPU-to-DDR bandwidth monitor on the
Milos SoC, which is BWMONv5.
Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
---
Documentation/devicetree/bindings/interconnect/qcom,msm8998-bwmon.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/interconnect/qcom,msm8998-bwmon.yaml b/Documentation/devicetree/bindings/interconnect/qcom,msm8998-bwmon.yaml
index c0a5e925ff95..4e33c75d9243 100644
--- a/Documentation/devicetree/bindings/interconnect/qcom,msm8998-bwmon.yaml
+++ b/Documentation/devicetree/bindings/interconnect/qcom,msm8998-bwmon.yaml
@@ -49,6 +49,7 @@ properties:
- enum:
- qcom,eliza-llcc-bwmon
- qcom,hawi-llcc-bwmon
+ - qcom,milos-cpu-bwmon
- qcom,qcs615-llcc-bwmon
- qcom,qcs8300-llcc-bwmon
- qcom,sa8775p-llcc-bwmon
--
2.55.0
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 2/2] arm64: dts: qcom: milos: Add CPU-to-DDR BWMON support
2026-07-17 11:45 [PATCH 0/2] Add Milos CPU-to-DDR BWMON support Luca Weiss
2026-07-17 11:45 ` [PATCH 1/2] dt-bindings: interconnect: qcom-bwmon: Add Milos cpu-bwmon compatible Luca Weiss
@ 2026-07-17 11:45 ` Luca Weiss
2026-07-20 8:48 ` Konrad Dybcio
2026-07-21 21:31 ` Dmitry Baryshkov
2026-09-01 2:09 ` (subset) [PATCH 0/2] Add Milos " Bjorn Andersson
2 siblings, 2 replies; 7+ messages in thread
From: Luca Weiss @ 2026-07-17 11:45 UTC (permalink / raw)
To: Krzysztof Kozlowski, Georgi Djakov, Rob Herring, Conor Dooley,
Bjorn Andersson, Konrad Dybcio, Krzysztof Kozlowski
Cc: ~postmarketos/upstreaming, phone-devel, linux-arm-msm, linux-pm,
devicetree, linux-kernel, Luca Weiss
Add a node for the CPU-to-DDR BWMON on the Milos SoC and the
corresponding OPP table.
Currently, the table is for DDR5, the values for DDR4 are put into a
TODO comment, until the kernel can differentiate between DDR variants.
Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
---
arch/arm64/boot/dts/qcom/milos.dtsi | 49 +++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/milos.dtsi b/arch/arm64/boot/dts/qcom/milos.dtsi
index e91c0cf5e093..9b79e5bdfbfb 100644
--- a/arch/arm64/boot/dts/qcom/milos.dtsi
+++ b/arch/arm64/boot/dts/qcom/milos.dtsi
@@ -2940,6 +2940,55 @@ cpufreq_hw: cpufreq@17d91000 {
#clock-cells = <1>;
};
+ pmu@24091000 {
+ compatible = "qcom,milos-cpu-bwmon", "qcom,sc7280-llcc-bwmon";
+ reg = <0x0 0x24091000 0x0 0x1000>;
+
+ interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH 0>;
+
+ interconnects = <&gem_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ACTIVE_ONLY
+ &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ACTIVE_ONLY>;
+
+ operating-points-v2 = <&llcc_bwmon_opp_table>;
+
+ llcc_bwmon_opp_table: opp-table {
+ compatible = "operating-points-v2";
+
+ opp-0 {
+ opp-peak-kBps = <2086000>;
+ };
+
+ opp-1 {
+ opp-peak-kBps = <2929000>;
+ };
+
+ opp-2 {
+ /* TODO: ddr4 = 3879000 */
+ opp-peak-kBps = <5931000>;
+ };
+
+ opp-3 {
+ /* TODO: ddr4 = 5163000 */
+ opp-peak-kBps = <6515000>;
+ };
+
+ opp-4 {
+ /* TODO: ddr4 = 5931000 */
+ opp-peak-kBps = <7980000>;
+ };
+
+ opp-5 {
+ /* TODO: ddr4 = 6515000 */
+ opp-peak-kBps = <10437000>;
+ };
+
+ opp-6 {
+ /* TODO: ddr4 = 7980000 */
+ opp-peak-kBps = <12191000>;
+ };
+ };
+ };
+
gem_noc: interconnect@24100000 {
compatible = "qcom,milos-gem-noc";
reg = <0x0 0x24100000 0x0 0xff080>;
--
2.55.0
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] arm64: dts: qcom: milos: Add CPU-to-DDR BWMON support
2026-07-17 11:45 ` [PATCH 2/2] arm64: dts: qcom: milos: Add CPU-to-DDR BWMON support Luca Weiss
@ 2026-07-20 8:48 ` Konrad Dybcio
2026-07-21 21:31 ` Dmitry Baryshkov
1 sibling, 0 replies; 7+ messages in thread
From: Konrad Dybcio @ 2026-07-20 8:48 UTC (permalink / raw)
To: Luca Weiss, Krzysztof Kozlowski, Georgi Djakov, Rob Herring,
Conor Dooley, Bjorn Andersson, Konrad Dybcio,
Krzysztof Kozlowski
Cc: ~postmarketos/upstreaming, phone-devel, linux-arm-msm, linux-pm,
devicetree, linux-kernel
On 7/17/26 1:45 PM, Luca Weiss wrote:
> Add a node for the CPU-to-DDR BWMON on the Milos SoC and the
> corresponding OPP table.
>
> Currently, the table is for DDR5, the values for DDR4 are put into a
> TODO comment, until the kernel can differentiate between DDR variants.
>
> Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Konrad
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] dt-bindings: interconnect: qcom-bwmon: Add Milos cpu-bwmon compatible
2026-07-17 11:45 ` [PATCH 1/2] dt-bindings: interconnect: qcom-bwmon: Add Milos cpu-bwmon compatible Luca Weiss
@ 2026-07-21 10:18 ` Krzysztof Kozlowski
0 siblings, 0 replies; 7+ messages in thread
From: Krzysztof Kozlowski @ 2026-07-21 10:18 UTC (permalink / raw)
To: Luca Weiss
Cc: Georgi Djakov, Rob Herring, Conor Dooley, Bjorn Andersson,
Konrad Dybcio, Krzysztof Kozlowski, ~postmarketos/upstreaming,
phone-devel, linux-arm-msm, linux-pm, devicetree, linux-kernel
On Fri, Jul 17, 2026 at 01:45:02PM +0200, Luca Weiss wrote:
> Add the compatible string for the CPU-to-DDR bandwidth monitor on the
> Milos SoC, which is BWMONv5.
>
> Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
> ---
> Documentation/devicetree/bindings/interconnect/qcom,msm8998-bwmon.yaml | 1 +
> 1 file changed, 1 insertion(+)
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] arm64: dts: qcom: milos: Add CPU-to-DDR BWMON support
2026-07-17 11:45 ` [PATCH 2/2] arm64: dts: qcom: milos: Add CPU-to-DDR BWMON support Luca Weiss
2026-07-20 8:48 ` Konrad Dybcio
@ 2026-07-21 21:31 ` Dmitry Baryshkov
1 sibling, 0 replies; 7+ messages in thread
From: Dmitry Baryshkov @ 2026-07-21 21:31 UTC (permalink / raw)
To: Luca Weiss
Cc: Krzysztof Kozlowski, Georgi Djakov, Rob Herring, Conor Dooley,
Bjorn Andersson, Konrad Dybcio, Krzysztof Kozlowski,
~postmarketos/upstreaming, phone-devel, linux-arm-msm, linux-pm,
devicetree, linux-kernel
On Fri, Jul 17, 2026 at 01:45:03PM +0200, Luca Weiss wrote:
> Add a node for the CPU-to-DDR BWMON on the Milos SoC and the
> corresponding OPP table.
>
> Currently, the table is for DDR5, the values for DDR4 are put into a
> TODO comment, until the kernel can differentiate between DDR variants.
>
> Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
> ---
> arch/arm64/boot/dts/qcom/milos.dtsi | 49 +++++++++++++++++++++++++++++++++++++
> 1 file changed, 49 insertions(+)
>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: (subset) [PATCH 0/2] Add Milos CPU-to-DDR BWMON support
2026-07-17 11:45 [PATCH 0/2] Add Milos CPU-to-DDR BWMON support Luca Weiss
2026-07-17 11:45 ` [PATCH 1/2] dt-bindings: interconnect: qcom-bwmon: Add Milos cpu-bwmon compatible Luca Weiss
2026-07-17 11:45 ` [PATCH 2/2] arm64: dts: qcom: milos: Add CPU-to-DDR BWMON support Luca Weiss
@ 2026-09-01 2:09 ` Bjorn Andersson
2 siblings, 0 replies; 7+ messages in thread
From: Bjorn Andersson @ 2026-09-01 2:09 UTC (permalink / raw)
To: Krzysztof Kozlowski, Georgi Djakov, Rob Herring, Conor Dooley,
Konrad Dybcio, Krzysztof Kozlowski, Luca Weiss
Cc: ~postmarketos/upstreaming, phone-devel, linux-arm-msm, linux-pm,
devicetree, linux-kernel
On Fri, 17 Jul 2026 13:45:01 +0200, Luca Weiss wrote:
> Add support for the bandwidth monitoring block on Milos which lets the
> driver vote on interconnect bandwidth based on monitored throughput.
>
> Similar to the CPU OPP table series[0], this would benefit from driver
> support that can differentiate between DDR4 and DDR5 RAM since different
> votes would be correct.
>
> [...]
Applied, thanks!
[1/2] dt-bindings: interconnect: qcom-bwmon: Add Milos cpu-bwmon compatible
commit: 63a0be9b801af9f357054226895d5a172632c7ee
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2026-09-01 2:09 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-17 11:45 [PATCH 0/2] Add Milos CPU-to-DDR BWMON support Luca Weiss
2026-07-17 11:45 ` [PATCH 1/2] dt-bindings: interconnect: qcom-bwmon: Add Milos cpu-bwmon compatible Luca Weiss
2026-07-21 10:18 ` Krzysztof Kozlowski
2026-07-17 11:45 ` [PATCH 2/2] arm64: dts: qcom: milos: Add CPU-to-DDR BWMON support Luca Weiss
2026-07-20 8:48 ` Konrad Dybcio
2026-07-21 21:31 ` Dmitry Baryshkov
2026-09-01 2:09 ` (subset) [PATCH 0/2] Add Milos " Bjorn Andersson
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®