Hi!
I use a kvm based on Intel(R) Atom(TM) CPU S1240 @ 1.60GHz Atom cpu to test. The cmd which create vm is qemu-system-x86_64 -enable-kvm -cpu host.
Only cputopology_04 skip: ### cputopology_01: ### test the topology is implemented in the kernel ### https://wiki.linaro.org/WorkingGroups/PowerManagement/Resources/TestSuite/Pm... ### cputopology_01.0/cpu0: checking topology is enabled... Ok cputopology_01.0/cpu1: checking topology is enabled... Ok cputopology_01.0/cpu2: checking topology is enabled... Ok cputopology_01.0/cpu3: checking topology is enabled... Ok
cputopology_01: pass
### ### cputopology_02: ### test the topology files are present ### https://wiki.linaro.org/WorkingGroups/PowerManagement/Resources/TestSuite/Pm... ### cputopology_02.0/cpu0: checking 'core_id' exists in '/sys/devices/system/cpu/cpu0/topology'... Ok cputopology_02.1/cpu0: checking 'core_siblings' exists in '/sys/devices/system/cpu/cpu0/topology'... Ok cputopology_02.2/cpu0: checking 'core_siblings_list' exists in '/sys/devices/system/cpu/cpu0/topology'... Ok cputopology_02.3/cpu0: checking 'physical_package_id' exists in '/sys/devices/system/cpu/cpu0/topology'... Ok cputopology_02.4/cpu0: checking 'thread_siblings' exists in '/sys/devices/system/cpu/cpu0/topology'... Ok cputopology_02.5/cpu0: checking 'thread_siblings_list' exists in '/sys/devices/system/cpu/cpu0/topology'... Ok cputopology_02.0/cpu1: checking 'core_id' exists in '/sys/devices/system/cpu/cpu1/topology'... Ok cputopology_02.1/cpu1: checking 'core_siblings' exists in '/sys/devices/system/cpu/cpu1/topology'... Ok cputopology_02.2/cpu1: checking 'core_siblings_list' exists in '/sys/devices/system/cpu/cpu1/topology'... Ok cputopology_02.3/cpu1: checking 'physical_package_id' exists in '/sys/devices/system/cpu/cpu1/topology'... Ok cputopology_02.4/cpu1: checking 'thread_siblings' exists in '/sys/devices/system/cpu/cpu1/topology'... Ok cputopology_02.5/cpu1: checking 'thread_siblings_list' exists in '/sys/devices/system/cpu/cpu1/topology'... Ok cputopology_02.0/cpu2: checking 'core_id' exists in '/sys/devices/system/cpu/cpu2/topology'... Ok cputopology_02.1/cpu2: checking 'core_siblings' exists in '/sys/devices/system/cpu/cpu2/topology'... Ok cputopology_02.2/cpu2: checking 'core_siblings_list' exists in '/sys/devices/system/cpu/cpu2/topology'... Ok cputopology_02.3/cpu2: checking 'physical_package_id' exists in '/sys/devices/system/cpu/cpu2/topology'... Ok cputopology_02.4/cpu2: checking 'thread_siblings' exists in '/sys/devices/system/cpu/cpu2/topology'... Ok cputopology_02.5/cpu2: checking 'thread_siblings_list' exists in '/sys/devices/system/cpu/cpu2/topology'... Ok cputopology_02.0/cpu3: checking 'core_id' exists in '/sys/devices/system/cpu/cpu3/topology'... Ok cputopology_02.1/cpu3: checking 'core_siblings' exists in '/sys/devices/system/cpu/cpu3/topology'... Ok cputopology_02.2/cpu3: checking 'core_siblings_list' exists in '/sys/devices/system/cpu/cpu3/topology'... Ok cputopology_02.3/cpu3: checking 'physical_package_id' exists in '/sys/devices/system/cpu/cpu3/topology'... Ok cputopology_02.4/cpu3: checking 'thread_siblings' exists in '/sys/devices/system/cpu/cpu3/topology'... Ok cputopology_02.5/cpu3: checking 'thread_siblings_list' exists in '/sys/devices/system/cpu/cpu3/topology'... Ok
cputopology_02: pass
### ### cputopology_03: ### test that the sched_domain files are present and show the topology related flags ### https://wiki.linaro.org/WorkingGroups/PowerManagement/Resources/TestSuite/Pm... ### cputopology_03.0/cpu0: checking sched_domain_flags (domain 0)... Ok domain0 flag 0x102f domain0 share cpu capacity flag not set domain0 share power domain flag not set domain0 share cpu package resources flag not set cputopology_03.0/cpu1: checking sched_domain_flags (domain 0)... Ok domain0 flag 0x102f domain0 share cpu capacity flag not set domain0 share power domain flag not set domain0 share cpu package resources flag not set cputopology_03.0/cpu2: checking sched_domain_flags (domain 0)... Ok domain0 flag 0x102f domain0 share cpu capacity flag not set domain0 share power domain flag not set domain0 share cpu package resources flag not set cputopology_03.0/cpu3: checking sched_domain_flags (domain 0)... Ok domain0 flag 0x102f domain0 share cpu capacity flag not set domain0 share power domain flag not set domain0 share cpu package resources flag not set
cputopology_03: pass
### ### cputopology_04: ### Test capacity calculation (this is based on the algorithm in arch/arm/kernel/topology.c), make sure that the information in /sys/firmware/devicetree/base/cpus corresponds to that reported by the kernel log. ### https://wiki.linaro.org/WorkingGroups/PowerManagement/Resources/TestSuite/Pm... ### cputopology_04.0: no cpus directory present... skip <===
cputopology_04: skip
The skip reason is that there is not /sys/firmware/devicetree/base/cpus. But i do not find how to enable this. Could you help me?
Thanks Xiang