Sched MC test cases fails even when sched_mc is not enabled at the kernel

Bug #1017021 reported by Ricardo Salveti
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro PMWG QA
Fix Released
Medium
Hongbo Zhang

Bug Description

In case SCHED_MC is not available at the kernel, the test suite will still fail and run the sched_mc related test cases:

make[1]: Entering directory `/root/.local/share/lava_test/installed-tests/pwrmgmt/pm-qa/sched_mc'
###
### sched_01:
### test the presence of the 'sched_mc_power_savings' file
### https://wiki.linaro.org/WorkingGroups/PowerManagement/Doc/QA/Scripts#sched_mc_01
###
sched_01.0: checking 'sched_mc_power_savings' exists... fail
make[1]: *** [sched_01.log] Error 1
###
### sched_02:
### test the topology is implemented in the kernel
### https://wiki.linaro.org/WorkingGroups/PowerManagement/Doc/QA/Scripts#sched_mc_02
###
sched_02.0/cpu0: checking topology is enabled... pass
sched_02.0/cpu1: checking topology is enabled... pass
###
### sched_03:
### test the topology files are present
### https://wiki.linaro.org/WorkingGroups/PowerManagement/Doc/QA/Scripts#sched_mc_03
###
sched_03.0/cpu0: checking 'core_id' exists... pass
sched_03.1/cpu0: checking 'core_siblings' exists... pass
sched_03.2/cpu0: checking 'core_siblings_list' exists... pass
sched_03.3/cpu0: checking 'physical_package_id' exists... pass
sched_03.4/cpu0: checking 'thread_siblings' exists... pass
sched_03.5/cpu0: checking 'thread_siblings_list' exists... pass
sched_03.0/cpu1: checking 'core_id' exists... pass
sched_03.1/cpu1: checking 'core_siblings' exists... pass
sched_03.2/cpu1: checking 'core_siblings_list' exists... pass
sched_03.3/cpu1: checking 'physical_package_id' exists... pass
sched_03.4/cpu1: checking 'thread_siblings' exists... pass
sched_03.5/cpu1: checking 'thread_siblings_list' exists... pass
###
### sched_04:
### test the change are effective for the 'sched_mc_power_savings' file
### https://wiki.linaro.org/WorkingGroups/PowerManagement/Doc/QA/Scripts#sched_mc_04
###
sched_04.0: checking setting value to 0... fail
sched_04.1: checking setting value to 1... fail
sched_04.2: checking setting value to 2... fail
sched_04.3: checking setting invalid value to 3... pass
sched_04.4: checking setting invalid value to -1... pass
make[1]: *** [sched_04.log] Error 1
make[1]: Target `check' not remade because of errors.
make[1]: Leaving directory `/root/.local/share/lava_test/installed-tests/pwrmgmt/pm-qa/sched_mc'
make: *** [check] Error 2

This can be the expected behaviour, but I got the wrong impression from the logs, as it seems it's partially supported. 'Skipped' would probably be a better description.

Also, I'm confused if one single 'fail' should make 'make -k check' to get a !0 return code. At LAVA, if the test script returns !0, it'll think that the test case it self failed to run, and not that it produced failed results.

Revision history for this message
Amit Kucheria (amitk) wrote :

Hongbo, Please make the sched_mc tests optional since the feature is about to be removed from the kernel in 3.5.

Changed in linaro-power-qa:
importance: Undecided → Medium
assignee: nobody → Hongbo Zhang (hongbo-zhang)
Changed in linaro-power-qa:
status: New → In Progress
Revision history for this message
Hongbo Zhang (hongbo-zhang) wrote :

This issue is fixed by checking sanity before executing scripts, patch has been uploaded.

Changed in linaro-power-qa:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.