Loading Documentation/devicetree/bindings/arm/msm/msm_bus_rules.txt +3 −2 Original line number Diff line number Diff line Loading @@ -22,8 +22,9 @@ conditions to be monitored. The mandatory properties for the rules are - qcom,src-op: The operand to be used when evaluating a node's bandwidth vote with a threshold.Possible values are OP_LE/OP_LT/OP_GT/OP_GE. - qcom,thresh: The threshold in Kbytes/s to be used in vote evaluation. - qcom,thresh: The threshold in Kbytes/s (in FLD_IB/FLD_AB case) or KHz (in FLD_CLK case) to be used in vote evaluation. - qcom,mode: The QoS mode to be applied when this rule's criterion are satisfied. Possible values are THROTTLE_ON/THROTTLE_OFF Loading arch/arm/boot/dts/qcom/msm8909-bus.dtsi +70 −0 Original line number Diff line number Diff line Loading @@ -11,8 +11,72 @@ */ #include <dt-bindings/msm/msm-bus-ids.h> #include <dt-bindings/msm/msm-bus-rule-ops.h> &soc { static-rules { compatible = "qcom,msm-bus-static-bw-rules"; rule0 { qcom,src-nodes = <&mas_apps_proc>; qcom,src-field = <FLD_CLK>; qcom,src-op = <OP_LE>; qcom,thresh = <200000>; qcom,mode = <THROTTLE_ON>; qcom,dest-node = <&mas_apps_proc>; qcom,dest-bw = <600000>; }; rule1 { qcom,src-nodes = <&mas_apps_proc>; qcom,src-field = <FLD_CLK>; qcom,src-op = <OP_LE>; qcom,thresh = <400000>; qcom,mode = <THROTTLE_ON>; qcom,dest-node = <&mas_apps_proc>; qcom,dest-bw = <1200000>; }; rule2 { qcom,src-nodes = <&mas_apps_proc>; qcom,src-field = <FLD_CLK>; qcom,src-op = <OP_GT>; qcom,thresh = <400000>; qcom,mode = <THROTTLE_OFF>; qcom,dest-node = <&mas_apps_proc>; }; rule3 { qcom,src-nodes = <&mas_oxili>; qcom,src-field = <FLD_CLK>; qcom,src-op = <OP_LE>; qcom,thresh = <200000>; qcom,mode = <THROTTLE_ON>; qcom,dest-node = <&mas_oxili>; qcom,dest-bw = <600000>; }; rule4 { qcom,src-nodes = <&mas_oxili>; qcom,src-field = <FLD_CLK>; qcom,src-op = <OP_LE>; qcom,thresh = <400000>; qcom,mode = <THROTTLE_ON>; qcom,dest-node = <&mas_oxili>; qcom,dest-bw = <1200000>; }; rule5 { qcom,src-nodes = <&mas_oxili>; qcom,src-field = <FLD_CLK>; qcom,src-op = <OP_GT>; qcom,thresh = <400000>; qcom,mode = <THROTTLE_OFF>; qcom,dest-node = <&mas_oxili>; }; }; /* Version = 2 */ ad_hoc_bus: ad-hoc-bus { compatible = "qcom,msm-bus-device"; Loading Loading @@ -109,6 +173,9 @@ qcom,prio-lvl = <0>; qcom,prio-rd = <0>; qcom,prio-wr = <0>; qcom,ws = <10000>; qcom,gp = <5000>; qcom,thmp = <50>; qcom,bus-dev = <&fab_bimc>; qcom,mas-rpm-id = <ICBID_MASTER_APPSS_PROC>; }; Loading @@ -124,6 +191,9 @@ qcom,prio-lvl = <0>; qcom,prio-rd = <0>; qcom,prio-wr = <0>; qcom,ws = <10000>; qcom,gp = <5000>; qcom,thmp = <50>; qcom,bus-dev = <&fab_bimc>; qcom,mas-rpm-id = <ICBID_MASTER_GFX3D>; }; Loading Loading
Documentation/devicetree/bindings/arm/msm/msm_bus_rules.txt +3 −2 Original line number Diff line number Diff line Loading @@ -22,8 +22,9 @@ conditions to be monitored. The mandatory properties for the rules are - qcom,src-op: The operand to be used when evaluating a node's bandwidth vote with a threshold.Possible values are OP_LE/OP_LT/OP_GT/OP_GE. - qcom,thresh: The threshold in Kbytes/s to be used in vote evaluation. - qcom,thresh: The threshold in Kbytes/s (in FLD_IB/FLD_AB case) or KHz (in FLD_CLK case) to be used in vote evaluation. - qcom,mode: The QoS mode to be applied when this rule's criterion are satisfied. Possible values are THROTTLE_ON/THROTTLE_OFF Loading
arch/arm/boot/dts/qcom/msm8909-bus.dtsi +70 −0 Original line number Diff line number Diff line Loading @@ -11,8 +11,72 @@ */ #include <dt-bindings/msm/msm-bus-ids.h> #include <dt-bindings/msm/msm-bus-rule-ops.h> &soc { static-rules { compatible = "qcom,msm-bus-static-bw-rules"; rule0 { qcom,src-nodes = <&mas_apps_proc>; qcom,src-field = <FLD_CLK>; qcom,src-op = <OP_LE>; qcom,thresh = <200000>; qcom,mode = <THROTTLE_ON>; qcom,dest-node = <&mas_apps_proc>; qcom,dest-bw = <600000>; }; rule1 { qcom,src-nodes = <&mas_apps_proc>; qcom,src-field = <FLD_CLK>; qcom,src-op = <OP_LE>; qcom,thresh = <400000>; qcom,mode = <THROTTLE_ON>; qcom,dest-node = <&mas_apps_proc>; qcom,dest-bw = <1200000>; }; rule2 { qcom,src-nodes = <&mas_apps_proc>; qcom,src-field = <FLD_CLK>; qcom,src-op = <OP_GT>; qcom,thresh = <400000>; qcom,mode = <THROTTLE_OFF>; qcom,dest-node = <&mas_apps_proc>; }; rule3 { qcom,src-nodes = <&mas_oxili>; qcom,src-field = <FLD_CLK>; qcom,src-op = <OP_LE>; qcom,thresh = <200000>; qcom,mode = <THROTTLE_ON>; qcom,dest-node = <&mas_oxili>; qcom,dest-bw = <600000>; }; rule4 { qcom,src-nodes = <&mas_oxili>; qcom,src-field = <FLD_CLK>; qcom,src-op = <OP_LE>; qcom,thresh = <400000>; qcom,mode = <THROTTLE_ON>; qcom,dest-node = <&mas_oxili>; qcom,dest-bw = <1200000>; }; rule5 { qcom,src-nodes = <&mas_oxili>; qcom,src-field = <FLD_CLK>; qcom,src-op = <OP_GT>; qcom,thresh = <400000>; qcom,mode = <THROTTLE_OFF>; qcom,dest-node = <&mas_oxili>; }; }; /* Version = 2 */ ad_hoc_bus: ad-hoc-bus { compatible = "qcom,msm-bus-device"; Loading Loading @@ -109,6 +173,9 @@ qcom,prio-lvl = <0>; qcom,prio-rd = <0>; qcom,prio-wr = <0>; qcom,ws = <10000>; qcom,gp = <5000>; qcom,thmp = <50>; qcom,bus-dev = <&fab_bimc>; qcom,mas-rpm-id = <ICBID_MASTER_APPSS_PROC>; }; Loading @@ -124,6 +191,9 @@ qcom,prio-lvl = <0>; qcom,prio-rd = <0>; qcom,prio-wr = <0>; qcom,ws = <10000>; qcom,gp = <5000>; qcom,thmp = <50>; qcom,bus-dev = <&fab_bimc>; qcom,mas-rpm-id = <ICBID_MASTER_GFX3D>; }; Loading