Hi!
I test with below two cpu to test: - Intel(R) Xeon(R) CPU E7-8890 v4 @ 2.20GHz - Intel(R) Xeon(R) CPU E5-2697 v2 @ 2.70GHz
With below action: make -C cpuidle cpuidle_killer make -C cpufreq run_tests
And only cpufreq_02 and cpufreq_03 can pass. Log as below(ignore pass part):
make: Entering directory '/lkp/benchmarks/pm-qa/cpufreq' ### ### cpufreq_01: ### test the cpufreq framework is available for frequency ### https://wiki.linaro.org/WorkingGroups/PowerManagement/Resources/TestSuite/Pm... ### cpufreq_01.0/cpu0: checking 'scaling_available_frequencies' exists in '/sys/devices/system/cpu/cpu0/cpufreq'... Err cpufreq_01.0/cpu1: checking 'scaling_available_frequencies' exists in '/sys/devices/system/cpu/cpu1/cpufreq'... Err cpufreq_01.0/cpu10: checking 'scaling_available_frequencies' exists in '/sys/devices/system/cpu/cpu10/cpufreq'... Err
### ### cpufreq_04: ### test the change of the frequency is effective in 'userspace' mode ### https://wiki.linaro.org/WorkingGroups/PowerManagement/Resources/TestSuite/Pm... ### cpufreq_04.0: userspace not supported... skip
cpufreq_04: skip
### ### cpufreq_05: ### test 'ondemand' and 'conservative' trigger correctly the configuration directory ### https://wiki.linaro.org/WorkingGroups/PowerManagement/Resources/TestSuite/Pm... ### cpufreq_05.0: ondemand not supported... skip cpufreq_05.1: conservative not supported... skip cpufreq_05.2: userspace not supported... skip cpufreq_05.3: checking 'ondemand' directory exists... Err cpufreq_05.4: checking 'conservative' directory exists... Err
cpufreq_05: fail
### ### cpufreq_06: ### test the change of the frequencies affect the performances of a test program ### https://wiki.linaro.org/WorkingGroups/PowerManagement/Resources/TestSuite/Pm... ### cpufreq_06.0: userspace not supported... skip ### ### cpufreq_07: ### test the load of the cpu affects the frequency with 'ondemand' ### https://wiki.linaro.org/WorkingGroups/PowerManagement/Resources/TestSuite/Pm... ### cpufreq_07.0: ondemand not supported... skip ### ### cpufreq_08: ### test the load of the cpu does not affect the frequency with 'userspace' ### https://wiki.linaro.org/WorkingGroups/PowerManagement/Resources/TestSuite/Pm... ### cpufreq_08.0: userspace not supported... skip ### ### cpufreq_09: ### test the load of the cpu does not affect the frequency with 'powersave' ### https://wiki.linaro.org/WorkingGroups/PowerManagement/Resources/TestSuite/Pm... ### cpufreq_09.0/cpu0: checking 'powersave' sets frequency to 1200000 KHz... Err cpufreq_09.1/cpu0: checking 'powersave' frequency 1200000 KHz is fixed... Err cpufreq_09.0/cpu1: checking 'powersave' sets frequency to 1200000 KHz... Err cpufreq_09.1/cpu1: checking 'powersave' frequency 1200000 KHz is fixed... Err cpufreq_09.0/cpu10: checking 'powersave' sets frequency to 1200000 KHz... Err
I check cpus and make sure two cpus can support cpufreq refer to https://www.kernel.org/doc/Documentation/cpu-freq/user-guide.txt.
Do i miss something important or this subtest can not all pass with Intel cpu?
Thanks Xiang