This patch adds the new configuration files for resources of RPI4 board.
- pass.conf contains the number of supported resources and the information.
- pass-cpu0.conf is the configuration file for CPU core
: The number of CPU is four in the one cluster
: The supported CPU frequencies : 600MHz, 1500MHz
: The thermal node of CPU is /sys/class/thermal/thermal_zone0/temp
- /etc/pass.conf
: Contain one h/w resource information for Quad-core cluster
- /etc/pass/pass-cpu0.conf
: Contain CPU h/w resource information for Quad-core cluster
: Contain two PMQoS Scenarios
1. AppLaunch for boosting Tizen application launching time.
2. UltraPowerSaving by capping h/w resource to reduce power.
: Contain four Thermal Scenarios
1. Release
2. Warning
3. LimitAction need to limit h/w resource for preventing overheating
4. Shutdown
- /usr/lib/tmpfiles.d/pass-hal.conf
: Contain the list of sysfs interface which are accessed by PASS HAL library
like /usr/lib/pass/cpu.so
Change-Id: Ie406f750c2fd334b1b27fd5d3ef068aa7b39f185
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
--- /dev/null
+[Pass]
+pass_support=1
+pass_gov_type=1
+
+pass_num_scenario_levels=3
+pass_init_scenario_level=0
+
+####################################################
+### Scenario Level for PMQoS and Thermal Monitor ###
+####################################################
+[ScenarioLevel0]
+limit_min_freq=600000
+limit_max_freq=1500000
+
+[ScenarioLevel1]
+limit_min_freq=1500000
+limit_max_freq=1500000
+
+[ScenarioLevel2]
+limit_min_freq=600000
+limit_max_freq=600000
+
+#########################
+### Scenario of PMQoS ###
+#########################
+[PassScenario]
+pass_scenario_support=yes
+pass_num_scenarios=2
+
+[Scenario0]
+name=AppLaunch
+support=yes
+scenario_level=1
+
+[Scenario1]
+name=UltraPowerSaving
+support=yes
+scenario_level=2
+
+########################
+### Thermal Monitor ###
+########################
+
+# Following action name are defiend on Tizen platform.
+# The 'temperature' of thermal.scenario must be defined in descending order.
+# If you change the following name, doesn't guarantee the compatibility.
+# - Release, Warning, LimitAction, Shutdown
+
+[thermal]
+thermal_support=yes
+thermal_number_of_scenario=4
+thermal_timer_interval_ms=5000
+
+[thermal.scenario0]
+support=yes
+name=Release
+temperature=73
+timer_interval_ms=5000
+scenario_level=0
+
+[thermal.scenario1]
+support=yes
+name=Warning
+temperature=77
+timer_interval_ms=3000
+
+[thermal.scenario2]
+support=yes
+name=LimitAction
+temperature=80
+timer_interval_ms=1000
+scenario_level=2
+
+[thermal.scenario3]
+support=yes
+name=Shutdown
+temperature=85
+timer_interval_ms=1000
+scenario_level=2
--- /dev/null
+z /sys/devices/system/cpu/*/online 0660 root system_fw -
+t /sys/devices/system/cpu/*/online - - - - security.SMACK64="System"
+z /sys/devices/system/cpu/*/cpufreq/cpuinfo_cur_freq 0440 root system_fw -
+t /sys/devices/system/cpu/*/cpufreq/cpuinfo_cur_freq - - - - security.SMACK64="System"
+z /sys/devices/system/cpu/*/cpufreq/cpuinfo_min_freq 0440 root system_fw -
+t /sys/devices/system/cpu/*/cpufreq/cpuinfo_min_freq - - - - security.SMACK64="System"
+z /sys/devices/system/cpu/*/cpufreq/cpuinfo_max_freq 0440 root system_fw -
+t /sys/devices/system/cpu/*/cpufreq/cpuinfo_max_freq - - - - security.SMACK64="System"
+z /sys/devices/system/cpu/*/cpufreq/scaling_min_freq 0660 root system_fw -
+t /sys/devices/system/cpu/*/cpufreq/scaling_min_freq - - - - security.SMACK64="System"
+z /sys/devices/system/cpu/*/cpufreq/scaling_max_freq 0660 root system_fw -
+t /sys/devices/system/cpu/*/cpufreq/scaling_max_freq - - - - security.SMACK64="System"
+z /sys/class/thermal/*/temp 0440 root system_fw -
+t /sys/class/thermal/*/temp - - - - security.SMACK64="System"
--- /dev/null
+# Default pass.conf
+# - If you want to use PASS(Power Aware System Service), you have to create
+# new 'pass-[target type].conf' configuration file.
+[PassResource]
+pass_compatible=raspberrypi,4-model-b
+pass_path_compatible=/proc/device-tree/compatible
+pass_num_resources=1
+
+[PassResource0]
+pass_res_type=cpu
+pass_res_name=cpu0
+pass_res_thermal_name=thermal_zone0
+pass_path_conf_file=/etc/pass/pass-cpu0.conf
+pass_first_cpu=0
+pass_num_cpus=4