vendor: init: common: Fix DCVS settings for Gen3 targets
Fix DCVS settings for Gen3 targets. Change-Id: Ie514c02fa006dd4efdb27b2ccf13aac2ab46beea Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
This commit is contained in:
parent
2ff95021b4
commit
92779f8982
|
@ -3679,7 +3679,7 @@ case "$target" in
|
||||||
do
|
do
|
||||||
for cpubw in $device/*cpu-cpu-llcc-bw/devfreq/*cpu-cpu-llcc-bw
|
for cpubw in $device/*cpu-cpu-llcc-bw/devfreq/*cpu-cpu-llcc-bw
|
||||||
do
|
do
|
||||||
echo "bw_hwmon" > $cpubw/governor
|
cat $cpubw/available_frequencies | cut -d " " -f 1 > $cpubw/min_freq
|
||||||
echo "2288 4577 7110 9155 12298 14236" > $cpubw/bw_hwmon/mbps_zones
|
echo "2288 4577 7110 9155 12298 14236" > $cpubw/bw_hwmon/mbps_zones
|
||||||
echo 4 > $cpubw/bw_hwmon/sample_ms
|
echo 4 > $cpubw/bw_hwmon/sample_ms
|
||||||
echo 68 > $cpubw/bw_hwmon/io_percent
|
echo 68 > $cpubw/bw_hwmon/io_percent
|
||||||
|
@ -3694,7 +3694,7 @@ case "$target" in
|
||||||
|
|
||||||
for llccbw in $device/*cpu-llcc-ddr-bw/devfreq/*cpu-llcc-ddr-bw
|
for llccbw in $device/*cpu-llcc-ddr-bw/devfreq/*cpu-llcc-ddr-bw
|
||||||
do
|
do
|
||||||
echo "bw_hwmon" > $llccbw/governor
|
cat $llccbw/available_frequencies | cut -d " " -f 1 > $llccbw/min_freq
|
||||||
echo "1144 1720 2086 2929 3879 5931 6881" > $llccbw/bw_hwmon/mbps_zones
|
echo "1144 1720 2086 2929 3879 5931 6881" > $llccbw/bw_hwmon/mbps_zones
|
||||||
echo 4 > $llccbw/bw_hwmon/sample_ms
|
echo 4 > $llccbw/bw_hwmon/sample_ms
|
||||||
echo 68 > $llccbw/bw_hwmon/io_percent
|
echo 68 > $llccbw/bw_hwmon/io_percent
|
||||||
|
@ -3706,6 +3706,30 @@ case "$target" in
|
||||||
echo 1600 > $llccbw/bw_hwmon/idle_mbps
|
echo 1600 > $llccbw/bw_hwmon/idle_mbps
|
||||||
echo 40 > $llccbw/polling_interval
|
echo 40 > $llccbw/polling_interval
|
||||||
done
|
done
|
||||||
|
|
||||||
|
#Enable mem_latency governor for L3, LLCC, and DDR scaling
|
||||||
|
for memlat in $device/*cpu*-lat/devfreq/*cpu*-lat
|
||||||
|
do
|
||||||
|
cat $memlat/available_frequencies | cut -d " " -f 1 > $memlat/min_freq
|
||||||
|
done
|
||||||
|
|
||||||
|
#Enable compute governor for gold latfloor
|
||||||
|
for latfloor in $device/*cpu-ddr-latfloor*/devfreq/*cpu-ddr-latfloor*
|
||||||
|
do
|
||||||
|
cat $latfloor/available_frequencies | cut -d " " -f 1 > $latfloor/min_freq
|
||||||
|
done
|
||||||
|
|
||||||
|
#Gold L3 ratio ceil
|
||||||
|
for l3silver in $device/*cpu0-cpu-l3-lat/devfreq/*cpu0-cpu-l3-lat
|
||||||
|
do
|
||||||
|
cat $l3silver/available_frequencies | cut -d " " -f 1 > $l3silver/min_freq
|
||||||
|
done
|
||||||
|
|
||||||
|
#Gold L3 ratio ceil
|
||||||
|
for l3gold in $device/*cpu6-cpu-l3-lat/devfreq/*cpu6-cpu-l3-lat
|
||||||
|
do
|
||||||
|
cat $l3gold/available_frequencies | cut -d " " -f 1 > $l3gold/min_freq
|
||||||
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
# memlat specific settings are moved to seperate file under
|
# memlat specific settings are moved to seperate file under
|
||||||
|
@ -3780,7 +3804,7 @@ case "$target" in
|
||||||
do
|
do
|
||||||
for cpubw in $device/*cpu-cpu-llcc-bw/devfreq/*cpu-cpu-llcc-bw
|
for cpubw in $device/*cpu-cpu-llcc-bw/devfreq/*cpu-cpu-llcc-bw
|
||||||
do
|
do
|
||||||
echo "bw_hwmon" > $cpubw/governor
|
cat $cpubw/available_frequencies | cut -d " " -f 1 > $cpubw/min_freq
|
||||||
echo "2288 4577 7110 9155 12298 14236" > $cpubw/bw_hwmon/mbps_zones
|
echo "2288 4577 7110 9155 12298 14236" > $cpubw/bw_hwmon/mbps_zones
|
||||||
echo 4 > $cpubw/bw_hwmon/sample_ms
|
echo 4 > $cpubw/bw_hwmon/sample_ms
|
||||||
echo 68 > $cpubw/bw_hwmon/io_percent
|
echo 68 > $cpubw/bw_hwmon/io_percent
|
||||||
|
@ -3795,7 +3819,7 @@ case "$target" in
|
||||||
|
|
||||||
for llccbw in $device/*cpu-llcc-ddr-bw/devfreq/*cpu-llcc-ddr-bw
|
for llccbw in $device/*cpu-llcc-ddr-bw/devfreq/*cpu-llcc-ddr-bw
|
||||||
do
|
do
|
||||||
echo "bw_hwmon" > $llccbw/governor
|
cat $llccbw/available_frequencies | cut -d " " -f 1 > $llccbw/min_freq
|
||||||
echo "1144 1720 2086 2929 3879 5931 6881" > $llccbw/bw_hwmon/mbps_zones
|
echo "1144 1720 2086 2929 3879 5931 6881" > $llccbw/bw_hwmon/mbps_zones
|
||||||
echo 4 > $llccbw/bw_hwmon/sample_ms
|
echo 4 > $llccbw/bw_hwmon/sample_ms
|
||||||
echo 68 > $llccbw/bw_hwmon/io_percent
|
echo 68 > $llccbw/bw_hwmon/io_percent
|
||||||
|
@ -5368,7 +5392,7 @@ case "$target" in
|
||||||
do
|
do
|
||||||
for cpubw in $device/*cpu-cpu-llcc-bw/devfreq/*cpu-cpu-llcc-bw
|
for cpubw in $device/*cpu-cpu-llcc-bw/devfreq/*cpu-cpu-llcc-bw
|
||||||
do
|
do
|
||||||
echo "bw_hwmon" > $cpubw/governor
|
cat $cpubw/available_frequencies | cut -d " " -f 1 > $cpubw/min_freq
|
||||||
echo "2288 4577 7110 9155 12298 14236 15258" > $cpubw/bw_hwmon/mbps_zones
|
echo "2288 4577 7110 9155 12298 14236 15258" > $cpubw/bw_hwmon/mbps_zones
|
||||||
echo 4 > $cpubw/bw_hwmon/sample_ms
|
echo 4 > $cpubw/bw_hwmon/sample_ms
|
||||||
echo 50 > $cpubw/bw_hwmon/io_percent
|
echo 50 > $cpubw/bw_hwmon/io_percent
|
||||||
|
@ -5384,7 +5408,7 @@ case "$target" in
|
||||||
|
|
||||||
for llccbw in $device/*cpu-llcc-ddr-bw/devfreq/*cpu-llcc-ddr-bw
|
for llccbw in $device/*cpu-llcc-ddr-bw/devfreq/*cpu-llcc-ddr-bw
|
||||||
do
|
do
|
||||||
echo "bw_hwmon" > $llccbw/governor
|
cat $llccbw/available_frequencies | cut -d " " -f 1 > $llccbw/min_freq
|
||||||
echo "1720 2929 3879 5931 6881 7980" > $llccbw/bw_hwmon/mbps_zones
|
echo "1720 2929 3879 5931 6881 7980" > $llccbw/bw_hwmon/mbps_zones
|
||||||
echo 4 > $llccbw/bw_hwmon/sample_ms
|
echo 4 > $llccbw/bw_hwmon/sample_ms
|
||||||
echo 80 > $llccbw/bw_hwmon/io_percent
|
echo 80 > $llccbw/bw_hwmon/io_percent
|
||||||
|
@ -5401,7 +5425,7 @@ case "$target" in
|
||||||
for npubw in $device/*npu-npu-ddr-bw/devfreq/*npu-npu-ddr-bw
|
for npubw in $device/*npu-npu-ddr-bw/devfreq/*npu-npu-ddr-bw
|
||||||
do
|
do
|
||||||
echo 1 > /sys/devices/virtual/npu/msm_npu/pwr
|
echo 1 > /sys/devices/virtual/npu/msm_npu/pwr
|
||||||
echo "bw_hwmon" > $npubw/governor
|
cat $npubw/available_frequencies | cut -d " " -f 1 > $npubw/min_freq
|
||||||
echo "1720 2929 3879 5931 6881 7980" > $npubw/bw_hwmon/mbps_zones
|
echo "1720 2929 3879 5931 6881 7980" > $npubw/bw_hwmon/mbps_zones
|
||||||
echo 4 > $npubw/bw_hwmon/sample_ms
|
echo 4 > $npubw/bw_hwmon/sample_ms
|
||||||
echo 80 > $npubw/bw_hwmon/io_percent
|
echo 80 > $npubw/bw_hwmon/io_percent
|
||||||
|
@ -5414,6 +5438,37 @@ case "$target" in
|
||||||
echo 40 > $npubw/polling_interval
|
echo 40 > $npubw/polling_interval
|
||||||
echo 0 > /sys/devices/virtual/npu/msm_npu/pwr
|
echo 0 > /sys/devices/virtual/npu/msm_npu/pwr
|
||||||
done
|
done
|
||||||
|
|
||||||
|
#Enable mem_latency governor for L3, LLCC, and DDR scaling
|
||||||
|
for memlat in $device/*cpu*-lat/devfreq/*cpu*-lat
|
||||||
|
do
|
||||||
|
cat $memlat/available_frequencies | cut -d " " -f 1 > $memlat/min_freq
|
||||||
|
done
|
||||||
|
|
||||||
|
#Enable compute governor for gold latfloor
|
||||||
|
for latfloor in $device/*cpu-ddr-latfloor*/devfreq/*cpu-ddr-latfloor*
|
||||||
|
do
|
||||||
|
cat $latfloor/available_frequencies | cut -d " " -f 1 > $latfloor/min_freq
|
||||||
|
done
|
||||||
|
|
||||||
|
#Gold L3 ratio ceil
|
||||||
|
for l3silver in $device/*cpu0-cpu-l3-lat/devfreq/*cpu0-cpu-l3-lat
|
||||||
|
do
|
||||||
|
cat $l3silver/available_frequencies | cut -d " " -f 1 > $l3silver/min_freq
|
||||||
|
done
|
||||||
|
|
||||||
|
#Gold L3 ratio ceil
|
||||||
|
for l3gold in $device/*cpu4-cpu-l3-lat/devfreq/*cpu4-cpu-l3-lat
|
||||||
|
do
|
||||||
|
cat $l3gold/available_frequencies | cut -d " " -f 1 > $l3gold/min_freq
|
||||||
|
done
|
||||||
|
|
||||||
|
#Prime L3 ratio ceil
|
||||||
|
for l3prime in $device/*cpu7-cpu-l3-lat/devfreq/*cpu7-cpu-l3-lat
|
||||||
|
do
|
||||||
|
cat $l3prime/available_frequencies | cut -d " " -f 1 > $l3prime/min_freq
|
||||||
|
done
|
||||||
|
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
# memlat specific settings are moved to seperate file under
|
# memlat specific settings are moved to seperate file under
|
||||||
|
@ -5552,7 +5607,7 @@ case "$target" in
|
||||||
do
|
do
|
||||||
for cpubw in $device/*cpu-cpu-llcc-bw/devfreq/*cpu-cpu-llcc-bw
|
for cpubw in $device/*cpu-cpu-llcc-bw/devfreq/*cpu-cpu-llcc-bw
|
||||||
do
|
do
|
||||||
echo "bw_hwmon" > $cpubw/governor
|
cat $cpubw/available_frequencies | cut -d " " -f 1 > $cpubw/min_freq
|
||||||
echo 40 > $cpubw/polling_interval
|
echo 40 > $cpubw/polling_interval
|
||||||
echo "2288 4577 7110 9155 12298 14236 15258" > $cpubw/bw_hwmon/mbps_zones
|
echo "2288 4577 7110 9155 12298 14236 15258" > $cpubw/bw_hwmon/mbps_zones
|
||||||
echo 4 > $cpubw/bw_hwmon/sample_ms
|
echo 4 > $cpubw/bw_hwmon/sample_ms
|
||||||
|
@ -5568,7 +5623,7 @@ case "$target" in
|
||||||
|
|
||||||
for llccbw in $device/*cpu-llcc-ddr-bw/devfreq/*cpu-llcc-ddr-bw
|
for llccbw in $device/*cpu-llcc-ddr-bw/devfreq/*cpu-llcc-ddr-bw
|
||||||
do
|
do
|
||||||
echo "bw_hwmon" > $llccbw/governor
|
cat $llccbw/available_frequencies | cut -d " " -f 1 > $llccbw/min_freq
|
||||||
echo 40 > $llccbw/polling_interval
|
echo 40 > $llccbw/polling_interval
|
||||||
echo "1720 2929 3879 5931 6881 7980" > $llccbw/bw_hwmon/mbps_zones
|
echo "1720 2929 3879 5931 6881 7980" > $llccbw/bw_hwmon/mbps_zones
|
||||||
echo 4 > $llccbw/bw_hwmon/sample_ms
|
echo 4 > $llccbw/bw_hwmon/sample_ms
|
||||||
|
@ -5585,7 +5640,7 @@ case "$target" in
|
||||||
for npubw in $device/*npu-npu-ddr-bw/devfreq/*npu-npu-ddr-bw
|
for npubw in $device/*npu-npu-ddr-bw/devfreq/*npu-npu-ddr-bw
|
||||||
do
|
do
|
||||||
echo 1 > /sys/devices/virtual/npu/msm_npu/pwr
|
echo 1 > /sys/devices/virtual/npu/msm_npu/pwr
|
||||||
echo "bw_hwmon" > $npubw/governor
|
cat $npubw/available_frequencies | cut -d " " -f 1 > $npubw/min_freq
|
||||||
echo 40 > $npubw/polling_interval
|
echo 40 > $npubw/polling_interval
|
||||||
echo "1720 2929 3879 5931 6881 7980" > $npubw/bw_hwmon/mbps_zones
|
echo "1720 2929 3879 5931 6881 7980" > $npubw/bw_hwmon/mbps_zones
|
||||||
echo 4 > $npubw/bw_hwmon/sample_ms
|
echo 4 > $npubw/bw_hwmon/sample_ms
|
||||||
|
@ -5602,7 +5657,7 @@ case "$target" in
|
||||||
#Enable mem_latency governor for L3, LLCC, and DDR scaling
|
#Enable mem_latency governor for L3, LLCC, and DDR scaling
|
||||||
for memlat in $device/*cpu*-lat/devfreq/*cpu*-lat
|
for memlat in $device/*cpu*-lat/devfreq/*cpu*-lat
|
||||||
do
|
do
|
||||||
echo "mem_latency" > $memlat/governor
|
cat $memlat/available_frequencies | cut -d " " -f 1 > $memlat/min_freq
|
||||||
echo 10 > $memlat/polling_interval
|
echo 10 > $memlat/polling_interval
|
||||||
echo 400 > $memlat/mem_latency/ratio_ceil
|
echo 400 > $memlat/mem_latency/ratio_ceil
|
||||||
done
|
done
|
||||||
|
@ -5616,19 +5671,21 @@ case "$target" in
|
||||||
#Enable compute governor for gold latfloor
|
#Enable compute governor for gold latfloor
|
||||||
for latfloor in $device/*cpu-ddr-latfloor*/devfreq/*cpu-ddr-latfloor*
|
for latfloor in $device/*cpu-ddr-latfloor*/devfreq/*cpu-ddr-latfloor*
|
||||||
do
|
do
|
||||||
echo "compute" > $latfloor/governor
|
cat $latfloor/available_frequencies | cut -d " " -f 1 > $latfloor/min_freq
|
||||||
echo 10 > $latfloor/polling_interval
|
echo 10 > $latfloor/polling_interval
|
||||||
done
|
done
|
||||||
|
|
||||||
#Gold L3 ratio ceil
|
#Gold L3 ratio ceil
|
||||||
for l3gold in $device/*cpu4-cpu-l3-lat/devfreq/*cpu4-cpu-l3-lat
|
for l3gold in $device/*cpu4-cpu-l3-lat/devfreq/*cpu4-cpu-l3-lat
|
||||||
do
|
do
|
||||||
|
cat $l3gold/available_frequencies | cut -d " " -f 1 > $l3gold/min_freq
|
||||||
echo 4000 > $l3gold/mem_latency/ratio_ceil
|
echo 4000 > $l3gold/mem_latency/ratio_ceil
|
||||||
done
|
done
|
||||||
|
|
||||||
#Prime L3 ratio ceil
|
#Prime L3 ratio ceil
|
||||||
for l3prime in $device/*cpu7-cpu-l3-lat/devfreq/*cpu7-cpu-l3-lat
|
for l3prime in $device/*cpu7-cpu-l3-lat/devfreq/*cpu7-cpu-l3-lat
|
||||||
do
|
do
|
||||||
|
cat $l3prime/available_frequencies | cut -d " " -f 1 > $l3prime/min_freq
|
||||||
echo 20000 > $l3prime/mem_latency/ratio_ceil
|
echo 20000 > $l3prime/mem_latency/ratio_ceil
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue