From d88aac062361aa1adb5460382a4a4b630a099429 Mon Sep 17 00:00:00 2001 From: Santosh Mardi Date: Fri, 23 Oct 2020 15:15:33 +0530 Subject: [PATCH 1/2] ARM: dts: msm: Add cpu7 qos latfloor device on shima Create a qos latfloor device on shima target to cover compute bound workloads running on cpu7 above 2.0 GHz. Change-Id: I4a437076d9dfb0217d6b957d010e142509641069 --- qcom/shima.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/qcom/shima.dtsi b/qcom/shima.dtsi index 39225b49decd..29160b4e1cc2 100644 --- a/qcom/shima.dtsi +++ b/qcom/shima.dtsi @@ -2464,6 +2464,13 @@ mboxes = <&qmp_aop 0>; }; + cpu7_cpu_ddr_qoslatfloor: qcom,cpu7-cpu-ddr-qoslatfloor { + compatible = "qcom,devfreq-qoslat"; + governor = "mem_latency"; + operating-points-v2 = <&qoslat_opp_table>; + mboxes = <&qmp_aop 0>; + }; + cpu0_cpu_l3_tbl: qcom,cpu0-cpu-l3-tbl { qcom,core-dev-table = < 300000 300000000 >, @@ -2733,6 +2740,16 @@ < 300000 1 >, < 3000000 2 >; }; + + cpu7_qoslatmon: qcom,cpu7-qoslatmon { + compatible = "qcom,arm-memlat-mon"; + qcom,cpulist = <&CPU7>; + qcom,target-dev = <&cpu7_cpu_ddr_qoslatfloor>; + qcom,cachemiss-ev = <0x1000>; + qcom,core-dev-table = + < 2169600 1 >, + < 2707200 2 >; + }; }; qcom,sps { From 8b77828d559dbcc469187eaaef30f594547c3b2e Mon Sep 17 00:00:00 2001 From: Santosh Mardi Date: Sat, 17 Oct 2020 23:07:39 +0530 Subject: [PATCH 2/2] ARM: dts: msm: Add L3 snoop bw device on Lahaina Create L3 devfreq device on Lahaina to scale L3 based on snoop bandwidth. Change-Id: I6ac8f482bde014989bb578e2f052b8d8c5f77aaa --- qcom/shima.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/qcom/shima.dtsi b/qcom/shima.dtsi index 29160b4e1cc2..82503e5d2631 100644 --- a/qcom/shima.dtsi +++ b/qcom/shima.dtsi @@ -2303,6 +2303,28 @@ qcom,count-unit = <0x10000>; }; + snoop_l3_bw: qcom,snoop-l3-bw { + compatible = "qcom,devfreq-icc-l3bw"; + reg = <0x18590100 0xa0>; + reg-names = "ftbl-base"; + qcom,bus-width = <32>; + governor = "bw_hwmon"; + interconnects = + <&epss_l3_cpu MASTER_EPSS_L3_APPS + &epss_l3_cpu SLAVE_EPSS_L3_SHARED>; + }; + + snoop_l3_bwmon: qcom,snoop-l3-bwmon@9091000 { + compatible = "qcom,bimc-bwmon4"; + reg = <0x90b9100 0x300>, <0x90b9000 0x200>; + reg-names = "base", "global_base"; + interrupts = ; + qcom,mport = <0>; + qcom,hw-timer-hz = <19200000>; + qcom,target-dev = <&snoop_l3_bw>; + qcom,count-unit = <0x10000>; + }; + cpu0_cpu_l3_lat: qcom,cpu0-cpu-l3-lat { compatible = "qcom,devfreq-icc-l3"; reg = <0x18590100 0xa0>;