This patch adds the new resource configuration for the memory h/w device
in order to handle the 'fault_around_bytes'[1] element.
The 'fault_around_bytes' indicates the number of bytes to be mapped
around the fault. If the value is low(e.g., 4096), it is able to
increase the empty memory on normal case. On the other hand,
if the value is high (e.g., 65536), it is able to improve
the performance by mapping the huge pages such as the app launching.
[1] https://lkml.org/lkml/2016/4/18/612
Change-Id: Icc280c4eaf82420eaafcc8611b9869a2738831e2
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/scripts/pass-resource2.conf DESTINATION /etc/pass)
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/scripts/pass-resource3.conf DESTINATION /etc/pass)
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/scripts/pass-resource4.conf DESTINATION /etc/pass)
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/scripts/pass-resource5.conf DESTINATION /etc/pass)
%config %{_sysconfdir}/pass/pass-resource2.conf
%config %{_sysconfdir}/pass/pass-resource3.conf
%config %{_sysconfdir}/pass/pass-resource4.conf
+%config %{_sysconfdir}/pass/pass-resource5.conf
--- /dev/null
+[Pass]
+pass_support=1
+pass_gov_type=0
+
+pass_num_levels=2
+pass_init_level=0
+pass_min_level=0
+pass_max_level=1
+
+[Level0]
+fault_around_bytes=4096
+
+[Level1]
+fault_around_bytes=65536
+
+############################
+### Add list of scenario ###
+############################
+[PassScenario]
+pass_scenario_support=yes
+pass_num_scenarios=2
+
+[Scenario0]
+name=AppLaunch
+support=yes
+min_level=1
+max_level=1
+
+[Scenario1]
+name=UltraPowerSaving
+support=yes
+min_level=0
+max_level=0
[PassResource]
pass_compatible=samsung,tm2
pass_path_compatible=/proc/device-tree/compatible
-pass_num_resources=5
+pass_num_resources=6
[PassResource0]
pass_res_type=cpu
pass_res_name=14ac0000.mali
pass_res_thermal_name=thermal_zone2
pass_path_conf_file=/etc/pass/pass-resource4.conf
+
+[PassResource5]
+pass_res_type=memory
+pass_res_name=memory
+pass_path_conf_file=/etc/pass/pass-resource5.conf