Wind River Support Network

HomeDefectsLIN8-1232
Not to be fixed

LIN8-1232 : intel-x86-64: cpufreq_bench testing failed on standard kernel

Created: Oct 22, 2015    Updated: Apr 19, 2018
Resolved Date: Apr 17, 2018
Found In Version: 8.0
Severity: Standard
Applicable for: Wind River Linux 8
Component/s: BSP

Description

     Start testcase cpufreq_bench testing      
<<start CPU frequncey for powersave and performance compare>>
********************
acpi_cpufreq            8285  0
root@localhost:/opt/wr-test/test_runner# modprobe cpufreq_powersave

root@localhost:/opt/wr-test/test_runner# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
powersave ondemand performance 
root@localhost:/opt/wr-test/test_runner# echo powersave > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo powersave > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo powersave > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo powersave > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo powersave > /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo powersave > /sys/devices/system/cpu/cpu5/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo powersave > /sys/devices/system/cpu/cpu6/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo powersave > /sys/devices/system/cpu/cpu7/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo powersave > /sys/devices/system/cpu/cpu8/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo powersave > /sys/devices/system/cpu/cpu9/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo powersave > /sys/devices/system/cpu/cpu10/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo powersave > /sys/devices/system/cpu/cpu11/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo powersave > /sys/devices/system/cpu/cpu12/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo powersave > /sys/devices/system/cpu/cpu13/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo powersave > /sys/devices/system/cpu/cpu14/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo powersave > /sys/devices/system/cpu/cpu15/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo powersave > /sys/devices/system/cpu/cpu16/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo powersave > /sys/devices/system/cpu/cpu17/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo powersave > /sys/devices/system/cpu/cpu18/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo powersave > /sys/devices/system/cpu/cpu19/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo powersave > /sys/devices/system/cpu/cpu20/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo powersave > /sys/devices/system/cpu/cpu21/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo powersave > /sys/devices/system/cpu/cpu22/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo powersave > /sys/devices/system/cpu/cpu23/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
2392000
root@localhost:/opt/wr-test/test_runner# time for i in {1..1000000}; do echo a > /dev/null; done

real	0m38.325s
user	0m15.247s
sys	0m21.984s
root@localhost:/opt/wr-test/test_runner# echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo performance > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo performance > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo performance > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo performance > /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo performance > /sys/devices/system/cpu/cpu5/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo performance > /sys/devices/system/cpu/cpu6/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo performance > /sys/devices/system/cpu/cpu7/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo performance > /sys/devices/system/cpu/cpu8/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo performance > /sys/devices/system/cpu/cpu9/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo performance > /sys/devices/system/cpu/cpu10/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo performance > /sys/devices/system/cpu/cpu11/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo performance > /sys/devices/system/cpu/cpu12/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo performance > /sys/devices/system/cpu/cpu13/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo performance > /sys/devices/system/cpu/cpu14/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo performance > /sys/devices/system/cpu/cpu15/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo performance > /sys/devices/system/cpu/cpu16/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo performance > /sys/devices/system/cpu/cpu17/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo performance > /sys/devices/system/cpu/cpu18/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo performance > /sys/devices/system/cpu/cpu19/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo performance > /sys/devices/system/cpu/cpu20/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo performance > /sys/devices/system/cpu/cpu21/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo performance > /sys/devices/system/cpu/cpu22/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# echo performance > /sys/devices/system/cpu/cpu23/cpufreq/scaling_governor

root@localhost:/opt/wr-test/test_runner# cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
1196000
<<end CPU frequncey for powersave and performance compare>>
********************
<<clean subcase>>
********************

<<start check testcase call trace>>
********************
root@localhost:/opt/wr-test/test_runner# dmesg |grep -i -w -E -B10 -A50 'Call Trace|BUG:' ||return 0

<<end check testcase call trace>>
********************
<<clean subcase>>
********************

<<start check kmemleak>>
********************
root@localhost:/opt/wr-test/test_runner# cat /sys/kernel/debug/kmemleak |grep -E -B10 -A50 'kmemleak_alloc|kmem_cache_alloc' ||return 0

<<end check kmemleak>>
********************
<<clean subcase>>
********************

cpufreq_bench test results:
*1 CPU frequncey for powersave and performance compare(do_test1)   FAIL  
ERROR CMD OR INFO IS :
		line:46 "powersave's frequency is bigger than perfomance"
*2 check testcase call trace(do_check_call_trace)              PASS  
*3 check kmemleak(do_check_kmemleak)                           PASS  
Test Summary
Total number : 3
Pass number  : 2
Fail number  : 1
Skip number  : 0
Excution Time: 51 seconds
          End testcase cpufreq_bench testing

Steps to Reproduce

Test case Author:  lei.yang
------------------
Product update date(Spin):
------------------
spin=GIT_20151022
------------------
Project Build Path:
------------------


To Get The Testing Layer:
------------------------
# git clone git://git.wrs.com/git/projects/wassp-repos/testcases/wrlinux
# cd wrlinux;git checkout master

Project Configure Line:
----------------------
# Generated by wrlinux configure at Thu Oct 22 16:04:51 CST 2015
wrlinux-8/wrlinux/configure --enable-board=intel-x86-64 --enable-kernel=standard --enable-rootfs=glibc-std --enable-jobs=36 --enable-parallel-pkgbuilds=36 --with-layer=/buildarea2/lyang0/wrlinux-test/wr-testing/bts-dev --with-template=feature/bts,feature/wr-hp-support --enable-bootimage=iso --with-rcpl-version=0

Build Configuration:
----------------------------
BB_VERSION        = "1.28.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-14.04"
DISTRO            = "wrlinux"
DISTRO_VERSION    = "8.0.0.0"
MACHINE           = "intel-x86-64"
DEFAULTTUNE       = "corei7-64"
TARGET_SYS        = "x86_64-wrs-linux"
TUNE_FEATURES     = "m64 corei7"
TARGET_FPU        = ""
lib32:  DEFAULTTUNE       = "corei7-32"
lib32:  TARGET_SYS        = "i686-wrsmllib32-linux"
lib32:  TUNE_FEATURES     = "m32 corei7"
wrlinux           = "master:c0a24462a2415fe5bfcb0d6af9f202e44a9ac674"
wrlcompat         = "master:c1ba5f727a53889c75dc028685db650aaa1663e5"
wr-sdk-toolchain  = "master:1b3f1f910e79486438cb75827e129b87501ee304"
wr-tcwrappers     = "master:ccfc4f8c3dadc2f5a8e0ef7864a5f8026ddae213"
meta              = "wr-8.0-20151016:ca80eb2598f47160b9249b90858515c8e544c259"
oe-core-dl-2.0    = "master:541f32c8ee9362b35ca24cc2bedbc5cd3a5c4f49"
meta-downloads    = "master:a8d5bbe743c171ee78962d310666f62ce8c82c1d"
wr-kernel         = "master:1bf73bbc4147bc8c872625d341d20beb651086c9"
intel-x86         = "master:8025c9f9f4dba609bae79fbab20340346be94201"
wr-base           = "master:b19db79a7a066f7e7b1a444e6a982d51cc966292"
wr-fixes          = "master:eed1fd441f1aca9624a4642bac90d3a120e38ab3"
wr-tools-profile  = "master:b6af7b9cf4e6b02270421334e0a233db05f87695"
wr-tools-debug    = "master:c307715e864eab1340f61e2dab49867aac01a76d"
meta-filesystems  
meta-initramfs    
meta-gnome        
meta-multimedia   
meta-networking   
meta-oe           
meta-python       
meta-perl         
meta-webserver    
meta-xfce         = "wr-8.0-20151016:fa8c2a1fb0170e5aef1ba30f5499cf2aaf7e02a7"
wr-prebuilts      = "master:152e4960d828a1daefdccb0b31b0917178161b3e"
bts-dev           = "master:227fbc40c8d168a2ad3a4ab3f1aea4465f4130e2"

----------------------------------------------------------------------

Kernel source top 10 commits:
----------------------------
Yang Shi 70aed99 ARM: Disable prefetchw on Simics Cortex-A9 model Wed Oct 21 11:34:59 2015 -0700
Dave Lerner 4cc723e perf: fix backtrace for AAPCS with FP enabled Wed Oct 21 11:33:19 2015 -0700
Will Deacon 50b917f arm64: entry: always restore x0 from the stack on syscall return Tue Oct 20 09:14:56 2015 -0700
Frederic Weisbecker bf2fa2a nohz: Assert existing housekeepers when nohz full enabled Tue Oct 20 09:10:44 2015 -0700
Vatika Harlalka db0ee4e nohz: Affine unpinned timers to housekeepers Tue Oct 20 09:10:38 2015 -0700
Frederic Weisbecker d8f73bf nohz: Remove useless argument on tick_nohz_task_switch() Tue Oct 20 09:10:31 2015 -0700
Frederic Weisbecker d15bf8d nohz: Move tick_nohz_restart_sched_tick() above its users Tue Oct 20 09:10:24 2015 -0700
Frederic Weisbecker a68da50 nohz: Restart nohz full tick from irq exit Tue Oct 20 09:10:18 2015 -0700
Frederic Weisbecker 7d1eb0b nohz: Remove idle task special case Tue Oct 20 09:10:11 2015 -0700
Chris Metcalf ad2131a nohz: Prevent tilegx network driver interrupts Tue Oct 20 09:10:05 2015 -0700

Kernel config enabled by the testing layer:
------------------------------------------
CONFIG_DEBUG_KMEMLEAK=y
CONFIG_DEBUG_KMEMLEAK_EARLY_LOG_SIZE=5000
CONFIG_IOSCHED_BFQ=y
CONFIG_INPUT_EVDEV=y
CONFIG_KVM=m
CONFIG_KVM_INTEL=m
CONFIG_DMATEST=m
CONFIG_DMA_API_DEBUG=y
CONFIG_USB_SERIAL_PL2303=y
CONFIG_PM_TEST_SUSPEND=m
CONFIG_IOMMU_STRESS=m
CONFIG_OPROFILE=y
CONFIG_ACPI_DEBUG=y
CONFIG_DEBUG_HIGHMEM=y
CONFIG_DEBUG_HOTPLUG_CPU0=y
CONFIG_DMADEVICES_DEBUG=y
CONFIG_PCI_DEBUG=y
CONFIG_USB_GADGET=m
CONFIG_USB_MASS_STORAGE=m
CONFIG_CMA_DEBUG=y
CONFIG_AUFS_FS=y

Kernel Boot Parameter:
---------------------
root@localhost:/opt/wr-test/test_runner# cat /proc/cmdline
BOOT_IMAGE=/vmlinuz initrd=/initrd LABEL=boot  root=/dev/ram0  

To reproduce it:
---------------
# /opt/wr-test/testcases/bts/cpufreq_bench/runtest.sh
Live chat
Online