pass-hal: tm2: Add pass-resource5.conf for memory h/w device 49/146349/2 accepted/tizen/4.0/unified/20170919.170919 accepted/tizen/unified/20170913.070650 submit/tizen/20170911.052326 submit/tizen_4.0/20170915.014015
authorChanwoo Choi <cw00.choi@samsung.com>
Mon, 28 Aug 2017 04:12:21 +0000 (13:12 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 7 Sep 2017 02:18:38 +0000 (11:18 +0900)
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>
CMakeLists.txt
packaging/pass-hal-tm2.spec
scripts/pass-resource5.conf [new file with mode: 0644]
scripts/pass.conf

index 47f6d89..fa7ef56 100644 (file)
@@ -16,3 +16,4 @@ INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/scripts/pass-resource1.conf DESTINATIO
 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)
index f6f0200..304de0b 100644 (file)
@@ -58,3 +58,4 @@ fi
 %config %{_sysconfdir}/pass/pass-resource2.conf
 %config %{_sysconfdir}/pass/pass-resource3.conf
 %config %{_sysconfdir}/pass/pass-resource4.conf
+%config %{_sysconfdir}/pass/pass-resource5.conf
diff --git a/scripts/pass-resource5.conf b/scripts/pass-resource5.conf
new file mode 100644 (file)
index 0000000..2a17227
--- /dev/null
@@ -0,0 +1,33 @@
+[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
index 8575acb..2b1a81e 100644 (file)
@@ -4,7 +4,7 @@
 [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
@@ -39,3 +39,8 @@ pass_res_type=gpu
 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