From cbf57e25438de90d4bbf0d3fb69dd9266d173380 Mon Sep 17 00:00:00 2001 From: Chanwoo Choi Date: Wed, 26 Feb 2020 19:33:19 +0900 Subject: [PATCH] pass-hal: tm2: Update configuration using scenario pass_level for h/w resources Change-Id: I4b0d95faf1c1982ef762d567f28811adc49a2298 Signed-off-by: Chanwoo Choi --- scripts/pass-resource-bus-int.conf | 37 +++++++++++++++------------------- scripts/pass-resource-bus-mif.conf | 41 +++++++++++++++----------------------- scripts/pass-resource-cpu0.conf | 38 ++++++++++++++++++++++++++++------- scripts/pass-resource-cpu4.conf | 38 ++++++++++++++++++++++++++++------- scripts/pass-resource-gpu.conf | 41 +++++++++++++++----------------------- scripts/pass-resource-memory.conf | 27 ++++++++++++------------- 6 files changed, 123 insertions(+), 99 deletions(-) diff --git a/scripts/pass-resource-bus-int.conf b/scripts/pass-resource-bus-int.conf index a38356c..b6674ca 100644 --- a/scripts/pass-resource-bus-int.conf +++ b/scripts/pass-resource-bus-int.conf @@ -2,30 +2,27 @@ pass_support=1 pass_gov_type=0 -pass_num_levels=4 -pass_init_level=0 -pass_min_level=0 -pass_max_level=3 +pass_num_scenario_levels=3 +pass_init_scenario_level=0 -[Level0] +################################ +### Scenario Level for PMQoS ### +################################ +[ScenarioLevel0] limit_min_freq=100000000 limit_max_freq=400000000 -[Level1] -limit_min_freq=267000000 -limit_max_freq=400000000 - -[Level2] -limit_min_freq=334000000 -limit_max_freq=400000000 - -[Level3] +[ScenarioLevel1] limit_min_freq=400000000 limit_max_freq=400000000 -############################ -### Add list of scenario ### -############################ +[ScenarioLevel2] +limit_min_freq=100000000 +limit_max_freq=334000000 + +######################### +### Scenario of PMQoS ### +######################### [PassScenario] pass_scenario_support=yes pass_num_scenarios=2 @@ -33,11 +30,9 @@ pass_num_scenarios=2 [Scenario0] name=AppLaunch support=yes -min_level=3 -max_level=3 +scenario_level=1 [Scenario1] name=UltraPowerSaving support=yes -min_level=0 -max_level=0 +scenario_level=2 diff --git a/scripts/pass-resource-bus-mif.conf b/scripts/pass-resource-bus-mif.conf index c947a2f..356f89d 100644 --- a/scripts/pass-resource-bus-mif.conf +++ b/scripts/pass-resource-bus-mif.conf @@ -2,34 +2,27 @@ pass_support=1 pass_gov_type=0 -pass_num_levels=5 -pass_init_level=0 -pass_min_level=0 -pass_max_level=4 +pass_num_scenario_levels=3 +pass_init_scenario_level=0 -[Level0] +################################ +### Scenario Level for PMQoS ### +################################ +[ScenarioLevel0] limit_min_freq=138000000 limit_max_freq=413000000 -[Level1] -limit_min_freq=165000000 -limit_max_freq=413000000 - -[Level2] -limit_min_freq=207000000 -limit_max_freq=413000000 - -[Level3] -limit_min_freq=275000000 -limit_max_freq=413000000 - -[Level4] +[ScenarioLevel1] limit_min_freq=413000000 limit_max_freq=413000000 -############################ -### Add list of scenario ### -############################ +[ScenarioLevel2] +limit_min_freq=138000000 +limit_max_freq=275000000 + +######################### +### Scenario of PMQoS ### +######################### [PassScenario] pass_scenario_support=yes pass_num_scenarios=2 @@ -37,11 +30,9 @@ pass_num_scenarios=2 [Scenario0] name=AppLaunch support=yes -min_level=4 -max_level=4 +scenario_level=1 [Scenario1] name=UltraPowerSaving support=yes -min_level=0 -max_level=0 +scenario_level=2 diff --git a/scripts/pass-resource-cpu0.conf b/scripts/pass-resource-cpu0.conf index 928ebbb..d6fe132 100644 --- a/scripts/pass-resource-cpu0.conf +++ b/scripts/pass-resource-cpu0.conf @@ -2,6 +2,7 @@ pass_support=1 pass_gov_type=3 +### Property for CPUHP pass_level pass_num_levels=12 pass_init_level=0 pass_min_level=0 @@ -16,6 +17,10 @@ pass_num_cpu_stats=20 pass_level_up_threshold=1 pass_governor_timeout=0.4 +### Property for scenario pass_level +pass_num_scenario_levels=3 +pass_init_scenario_level=0 + [Level0] limit_min_freq=400000 limit_max_freq=1000000 @@ -192,9 +197,30 @@ num_left_cond_nr_running=250 num_left_cond_busy_cpu=3 num_right_cond=0 -############################ -### Add list of scenario ### -############################ +################################ +### Scenario Level for PMQoS ### +################################ +[ScenarioLevel0] +limit_min_freq=400000 +limit_max_freq=1300000 +limit_min_cpu=1 +limit_max_cpu=4 + +[ScenarioLevel1] +limit_min_freq=1000000 +limit_max_freq=1300000 +limit_min_cpu=2 +limit_max_cpu=4 + +[ScenarioLevel2] +limit_min_freq=400000 +limit_max_freq=1000000 +limit_min_cpu=1 +limit_max_cpu=2 + +######################### +### Scenario of PMQoS ### +######################### [PassScenario] pass_scenario_support=yes pass_num_scenarios=2 @@ -202,11 +228,9 @@ pass_num_scenarios=2 [Scenario0] name=AppLaunch support=yes -min_level=9 -max_level=11 +scenario_level=1 [Scenario1] name=UltraPowerSaving support=yes -min_level=0 -max_level=0 +scenario_level=2 diff --git a/scripts/pass-resource-cpu4.conf b/scripts/pass-resource-cpu4.conf index 395809a..a57c0c3 100644 --- a/scripts/pass-resource-cpu4.conf +++ b/scripts/pass-resource-cpu4.conf @@ -2,6 +2,7 @@ pass_support=1 pass_gov_type=3 +### Property for CPUHP pass_level pass_num_levels=16 pass_init_level=0 pass_min_level=0 @@ -16,6 +17,10 @@ pass_num_cpu_stats=20 pass_level_up_threshold=1 pass_governor_timeout=0.4 +### Property for scenario pass_level +pass_num_scenario_levels=3 +pass_init_scenario_level=0 + [Level0] limit_min_freq=500000 limit_max_freq=1000000 @@ -248,9 +253,30 @@ num_left_cond_nr_running=250 num_left_cond_busy_cpu=3 num_right_cond=0 -############################ -### Add list of scenario ### -############################ +################################ +### Scenario Level for PMQoS ### +################################ +[ScenarioLevel0] +limit_min_freq=500000 +limit_max_freq=1700000 +limit_min_cpu=1 +limit_max_cpu=4 + +[ScenarioLevel1] +limit_min_freq=1000000 +limit_max_freq=1700000 +limit_min_cpu=2 +limit_max_cpu=4 + +[ScenarioLevel2] +limit_min_freq=500000 +limit_max_freq=1000000 +limit_min_cpu=1 +limit_max_cpu=2 + +######################### +### Scenario of PMQoS ### +######################### [PassScenario] pass_scenario_support=yes pass_num_scenarios=2 @@ -258,11 +284,9 @@ pass_num_scenarios=2 [Scenario0] name=AppLaunch support=yes -min_level=9 -max_level=11 +scenario_level=1 [Scenario1] name=UltraPowerSaving support=yes -min_level=0 -max_level=0 +scenario_level=2 diff --git a/scripts/pass-resource-gpu.conf b/scripts/pass-resource-gpu.conf index 09ebea5..baf956b 100644 --- a/scripts/pass-resource-gpu.conf +++ b/scripts/pass-resource-gpu.conf @@ -2,34 +2,27 @@ pass_support=1 pass_gov_type=0 -pass_num_levels=5 -pass_init_level=0 -pass_min_level=0 -pass_max_level=4 +pass_num_scenario_levels=3 +pass_init_scenario_level=0 -[Level0] +################################ +### Scenario Level for PMQoS ### +################################ +[ScenarioLevel0] limit_min_freq=160000000 limit_max_freq=700000000 -[Level1] -limit_min_freq=500000000 -limit_max_freq=700000000 - -[Level2] -limit_min_freq=550000000 -limit_max_freq=700000000 - -[Level3] -limit_min_freq=600000000 -limit_max_freq=700000000 - -[Level4] +[ScenarioLevel1] limit_min_freq=700000000 limit_max_freq=700000000 -############################ -### Add list of scenario ### -############################ +[ScenarioLevel2] +limit_min_freq=160000000 +limit_max_freq=500000000 + +######################### +### Scenario of PMQoS ### +######################### [PassScenario] pass_scenario_support=yes pass_num_scenarios=2 @@ -37,11 +30,9 @@ pass_num_scenarios=2 [Scenario0] name=AppLaunch support=yes -min_level=3 -max_level=3 +scenario_level=1 [Scenario1] name=UltraPowerSaving support=yes -min_level=0 -max_level=0 +scenario_level=2 diff --git a/scripts/pass-resource-memory.conf b/scripts/pass-resource-memory.conf index f1f2703..78697e2 100644 --- a/scripts/pass-resource-memory.conf +++ b/scripts/pass-resource-memory.conf @@ -2,32 +2,31 @@ pass_support=1 pass_gov_type=0 -pass_num_levels=2 -pass_init_level=0 -pass_min_level=0 -pass_max_level=1 +pass_num_scenario_levels=2 +pass_init_scenario_level=0 -[Level0] +#################################################### +### Scenario Level for PMQoS and Thermal Monitor ### +#################################################### +[ScenarioLevel0] fault_around_bytes=4096 -[Level1] +[ScenarioLevel1] fault_around_bytes=65536 -############################ -### Add list of scenario ### -############################ +######################### +### Scenario of PMQoS ### +######################### [PassScenario] pass_scenario_support=yes pass_num_scenarios=2 [Scenario0] name=AppLaunch -support=no -min_level=1 -max_level=1 +support=yes +scenario_level=1 [Scenario1] name=UltraPowerSaving support=yes -min_level=0 -max_level=0 +scenario_level=0 -- 2.7.4