1f08c3bdfSopenharmony_ci################################################################################ 2f08c3bdfSopenharmony_ci## ## 3f08c3bdfSopenharmony_ci## Copyright (c) International Business Machines Corp., 2007 ## 4f08c3bdfSopenharmony_ci## ## 5f08c3bdfSopenharmony_ci## This program is free software; you can redistribute it and#or modify ## 6f08c3bdfSopenharmony_ci## it under the terms of the GNU General Public License as published by ## 7f08c3bdfSopenharmony_ci## the Free Software Foundation; either version 2 of the License, or ## 8f08c3bdfSopenharmony_ci## (at your option) any later version. ## 9f08c3bdfSopenharmony_ci## ## 10f08c3bdfSopenharmony_ci## This program is distributed in the hope that it will be useful, but ## 11f08c3bdfSopenharmony_ci## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ## 12f08c3bdfSopenharmony_ci## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ## 13f08c3bdfSopenharmony_ci## for more details. ## 14f08c3bdfSopenharmony_ci## ## 15f08c3bdfSopenharmony_ci## You should have received a copy of the GNU General Public License ## 16f08c3bdfSopenharmony_ci## along with this program; if not, write to the Free Software ## 17f08c3bdfSopenharmony_ci## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## 18f08c3bdfSopenharmony_ci## ## 19f08c3bdfSopenharmony_ci################################################################################ 20f08c3bdfSopenharmony_ci 21f08c3bdfSopenharmony_ciPOWER MANAGEMENT TESTS AUTOMATION SUITE 22f08c3bdfSopenharmony_ci---------------------------------------- 23f08c3bdfSopenharmony_ciThe tests requires the Kernel to be compiled with the following config's 24f08c3bdfSopenharmony_ci 25f08c3bdfSopenharmony_cifor CPU FREQUENCY tests: 26f08c3bdfSopenharmony_ci 27f08c3bdfSopenharmony_ciCONFIG_CPU_FREQ 28f08c3bdfSopenharmony_ciCONFIG_CPU_FREQ_TABLE 29f08c3bdfSopenharmony_ciCONFIG_CPU_FREQ_DEBUG 30f08c3bdfSopenharmony_ciCONFIG_CPU_FREQ_STAT 31f08c3bdfSopenharmony_ciCONFIG_CPU_FREQ_STAT_DETAILS 32f08c3bdfSopenharmony_ciCONFIG_CPU_FREQ_DEFAULT_GOV_* 33f08c3bdfSopenharmony_ciCONFIG_CPU_FREQ_GOV_* 34f08c3bdfSopenharmony_ci 35f08c3bdfSopenharmony_cifor CPU IDLE tests: 36f08c3bdfSopenharmony_ci 37f08c3bdfSopenharmony_ciCONFIG_CPU_IDLE 38f08c3bdfSopenharmony_ciCONFIG_CPU_IDLE_GOV_LADDER 39f08c3bdfSopenharmony_ciCONFIG_CPU_IDLE_GOV_MENU 40f08c3bdfSopenharmony_ci 41f08c3bdfSopenharmony_cifor SCHED_MC tests: 42f08c3bdfSopenharmony_ci 43f08c3bdfSopenharmony_ciCONFIG_SCHED_MC 44f08c3bdfSopenharmony_ci 45f08c3bdfSopenharmony_ciThe power management test automation suite helps run the power management functionality 46f08c3bdfSopenharmony_ci(e.g: cpu frequency, cpu idle etc..) tests and report results. 47f08c3bdfSopenharmony_ci 48f08c3bdfSopenharmony_ciTest Scripts for CPU FREQUENCY: 49f08c3bdfSopenharmony_cichange_freq.sh 50f08c3bdfSopenharmony_cichange_govr.sh 51f08c3bdfSopenharmony_cicheck_cpufreq_sysfs_files.sh 52f08c3bdfSopenharmony_ci 53f08c3bdfSopenharmony_ciTest Scripts for CPU IDLE: 54f08c3bdfSopenharmony_ciwill be added soon 55f08c3bdfSopenharmony_ci 56f08c3bdfSopenharmony_ciTest Scripts for SCHED_MC: 57f08c3bdfSopenharmony_citest_sched_mc.sh 58f08c3bdfSopenharmony_ci 59f08c3bdfSopenharmony_ciCommon functionality: 60f08c3bdfSopenharmony_cipm_include.sh 61f08c3bdfSopenharmony_cicheck_kv_arch.c 62f08c3bdfSopenharmony_cipwkm_load_unload.sh 63f08c3bdfSopenharmony_ci 64f08c3bdfSopenharmony_ciTo run your tests you can execute the runpwtests.sh 65f08c3bdfSopenharmony_ci 66f08c3bdfSopenharmony_ciTo run the tests individually : 67f08c3bdfSopenharmony_ci 68f08c3bdfSopenharmony_ciP.S. As of now the supporting architecture(s) are x86,x86_64 69f08c3bdfSopenharmony_ci 70f08c3bdfSopenharmony_ciSupport of system: 71f08c3bdfSopenharmony_ci----------------- 72f08c3bdfSopenharmony_ciIf you see some thing like following, 73f08c3bdfSopenharmony_ci 74f08c3bdfSopenharmony_ciPower Management 1 FAIL : Required kernel configuration for SCHED_MC NOT set 75f08c3bdfSopenharmony_cior 76f08c3bdfSopenharmony_ciPower Management 1 FAIL : Required kernel configuration for CPU_FREQ NOT set 77f08c3bdfSopenharmony_ci 78f08c3bdfSopenharmony_ciThen either configuration is not set or the system won't support. 79f08c3bdfSopenharmony_ci 80f08c3bdfSopenharmony_ciFor CPU consolidation verification ebizzy is included in utils directory of LTP. 81f08c3bdfSopenharmony_ciTo run cpu consolidation test user has to provide -w <workload> -l <sched_mc_level>. 82f08c3bdfSopenharmony_ciRefer to README in LTPROOT/utils/benchmark/ebizzy-0.2 directory for details of ebizzy. 83f08c3bdfSopenharmony_ci 84f08c3bdfSopenharmony_ciTo test CPU consolidation for sched_mc 2 kernbench has to run. Kernbench needs linux kernel source as input in /root directory . For example download from http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.29.4.tar.bz2. If Linux kernel source not found kernbench wiil not execute. 85f08c3bdfSopenharmony_ciCPU consolidation testcases will not execute if number of CPU's in package is less then 2. If system is hyper threaded but number of CPU is 1 only sched_smt testcases will be excuted. For better coverage of testcases select a system which is at least quad core and then hyper threaded so that you will observe 8 CPU's in each package. 86f08c3bdfSopenharmony_ci 87f08c3bdfSopenharmony_ciTimer migration interface test will execute on kernel versions 2.6.31 and above. Timer migration functionality verification testcases will be executed only on suitable architecture like quad core or the number of CPU's in each package should be at least 4 and above 88