OSDN Git Service

arm64: dts: qcom: sdm845: add LLCC BWMON
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Thu, 28 Jul 2022 11:37:48 +0000 (13:37 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 17 Aug 2022 17:07:39 +0000 (12:07 -0500)
The SDM845 comes with few instances of Bandwidth Monitor.  The already
supported one monitors traffic between CPU and Last Level Cache
Controller (LLCC) and in downstream sources is called BWMON v4 (or v4 of
register layout).

SDM845 also has also BWMON instance measuring traffic between LLCC and
memory with different register layout: called v5.

Cc: Rajendra Nayak <quic_rjendra@quicinc.com>
Cc: Sibi Sankar <quic_sibis@quicinc.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Tested-by: Steev Klimaszewski <steev@kali.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220728113748.170548-12-krzysztof.kozlowski@linaro.org
arch/arm64/boot/dts/qcom/sdm845.dtsi

index 4d5ae58..98d34b5 100644 (file)
                        interrupts = <GIC_SPI 582 IRQ_TYPE_LEVEL_HIGH>;
                };
 
+               pmu@114a000 {
+                       compatible = "qcom,sdm845-llcc-bwmon";
+                       reg = <0 0x0114a000 0 0x1000>;
+                       interrupts = <GIC_SPI 580 IRQ_TYPE_LEVEL_HIGH>;
+                       interconnects = <&mem_noc MASTER_LLCC 3 &mem_noc SLAVE_EBI1 3>;
+
+                       operating-points-v2 = <&llcc_bwmon_opp_table>;
+
+                       llcc_bwmon_opp_table: opp-table {
+                               compatible = "operating-points-v2";
+
+                               /*
+                                * The interconnect path bandwidth taken from
+                                * cpu4_opp_table bandwidth for gladiator_noc-mem_noc
+                                * interconnect.  This also matches the
+                                * bandwidth table of qcom,llccbw (qcom,bw-tbl,
+                                * bus width: 4 bytes) from msm-4.9 downstream
+                                * kernel.
+                                */
+                               opp-0 {
+                                       opp-peak-kBps = <800000>;
+                               };
+                               opp-1 {
+                                       opp-peak-kBps = <1804000>;
+                               };
+                               opp-2 {
+                                       opp-peak-kBps = <3072000>;
+                               };
+                               opp-3 {
+                                       opp-peak-kBps = <5412000>;
+                               };
+                               opp-4 {
+                                       opp-peak-kBps = <7216000>;
+                               };
+                       };
+               };
+
                pmu@1436400 {
                        compatible = "qcom,sdm845-bwmon", "qcom,msm8998-bwmon";
                        reg = <0 0x01436400 0 0x600>;