Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2b9d66ed authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ARM: dts: msm: Add static rules to throttle CPU and GPU for msm8909"

parents a74135c0 0aadf802
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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
+70 −0
Original line number Diff line number Diff line
@@ -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";
@@ -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>;
		};
@@ -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>;
		};