Wind River Support Network

HomeDefectsLIN9-2530
Not to be fixed

LIN9-2530 : computer stick: graphic testing with call trace

Created: Dec 5, 2016    Updated: Mar 6, 2019
Resolved Date: Feb 20, 2019
Found In Version: unknown
Severity: Standard
Applicable for: Wind River Linux 9
Component/s: BSP

Description

root@intel-x86-64:/opt/wr-test/testcases/bts/graphic_glxgears# sleep 100
root@intel-x86-64:/opt/wr-test/testcases/bts/graphic_glxgears# glxgears -display :0 > glxgears.log &


root@intel-x86-64:/opt/wr-test/testcases/bts/graphic_glxgears# killall glxgears

root@intel-x86-64:/opt/wr-test/testcases/bts/graphic_glxgears# cat glxgears.log
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
298 frames in 5.0 seconds = 59.544 FPS
300 frames in 5.0 seconds = 59.898 FPS
300 frames in 5.0 seconds = 59.962 FPS
300 frames in 5.0 seconds = 59.960 FPS
300 frames in 5.0 seconds = 59.939 FPS
300 frames in 5.0 seconds = 59.956 FPS
300 frames in 5.0 seconds = 59.949 FPS
300 frames in 5.0 seconds = 59.982 FPS
300 frames in 5.0 seconds = 59.923 FPS
300 frames in 5.0 seconds = 59.950 FPS
300 frames in 5.0 seconds = 59.952 FPS
300 frames in 5.0 seconds = 59.956 FPS
300 frames in 5.0 seconds = 59.972 FPS
300 frames in 5.0 seconds = 59.923 FPS
300 frames in 5.0 seconds = 59.964 FPS
300 frames in 5.0 seconds = 59.947 FPS
300 frames in 5.0 seconds = 59.955 FPS
300 frames in 5.0 seconds = 59.956 FPS
300 frames in 5.0 seconds = 59.953 FPS

root@intel-x86-64:/opt/wr-test/testcases/bts/graphic_glxgears# dmesg |grep -i -w -E -B10 -A50 'Call Trace|BUG:|WARNING:' ||return 0
[  258.432052] BUG: sleeping function called from invalid context at /buildarea1/lyang0/x86-64-project-rt-satao/build-bts/tmp/work-shared/intel-x86-64/kernel-source/kernel/locking/rtmutex.c:931
[  258.432054] in_atomic(): 1, irqs_disabled(): 1, pid: 14, name: migration/0
[  258.432066] Preemption disabled at:[<ffffffff810fcbe3>] cpu_stopper_thread+0xa3/0x130

[  258.432071] CPU: 0 PID: 14 Comm: migration/0 Not tainted 4.8.8-rt5-WR9.0.0.1_preempt-rt #1
[  258.432073] Hardware name: Intel Corporation STK1AW32SC/Cherry Trail CR, BIOS SCCHTAX5.86A.0014.2015.1119.1410 11/19/2015
[  258.432078]  0000000000000000 ffff88007496fd20 ffffffff8140c34d 0000000000000000
[  258.432082]  ffff88007b821c00 ffff88007496fd40 ffffffff81084cad ffff88007a2c08d8
[  258.432085]  ffff88007a2c0000 ffff88007496fd58 ffffffff81a79ca0 0000000000000000
[  258.432086] Call Trace:
[  258.432091]  [<ffffffff8140c34d>] dump_stack+0x4f/0x72
[  258.432096]  [<ffffffff81084cad>] ___might_sleep+0xdd/0x150
[  258.432101]  [<ffffffff81a79ca0>] rt_spin_lock+0x20/0x50
[  258.432105]  [<ffffffff815b1385>] chv_write32+0x65/0x3c0
[  258.432109]  [<ffffffff81a798cd>] ? _raw_spin_lock_irqsave+0x1d/0x50
[  258.432113]  [<ffffffff81585044>] gen8_ggtt_insert_entries+0x124/0x210
[  258.432117]  [<ffffffff81a787b6>] ? rt_spin_lock_slowunlock+0x86/0xc0
[  258.432120]  [<ffffffff81585150>] gen8_ggtt_insert_entries__cb+0x20/0x30
[  258.432123]  [<ffffffff810fc9b3>] multi_cpu_stop+0x93/0xb0
[  258.432126]  [<ffffffff810fc920>] ? cpu_stop_queue_work+0x90/0x90
[  258.432129]  [<ffffffff810fcbe9>] cpu_stopper_thread+0xa9/0x130
[  258.432133]  [<ffffffff81080652>] ? smpboot_thread_fn+0x42/0x370
[  258.432136]  [<ffffffff8108082d>] smpboot_thread_fn+0x21d/0x370
[  258.432139]  [<ffffffff81080610>] ? sort_range+0x30/0x30
[  258.432142]  [<ffffffff8107d6d4>] kthread+0xd4/0xf0
[  258.432145]  [<ffffffff81a7a2cf>] ret_from_fork+0x1f/0x40
[  258.432148]  [<ffffffff8107d600>] ? kthread_worker_fn+0x1b0/0x1b0

Steps to Reproduce

                                                            
#################################################################################################################################### 

Test case Author:  lei.yang
------------------
Project Build Path:
------------------
pek-lpgtest18.wrs.com:/buildarea1/lyang0/x86-64-project-rt-satao/build-bts

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

Project Build:
----------------------
    --machines intel-x86-64 --kernel preempt-rt --dl-layers --base-url git://pek-git.wrs.com --distros=wrlinux-std-sato
    Build Steps:
    . environment-setup-x86_64-wrlinuxsdk-linux
    . oe-init-build-env
    Add BTS layer  
    1.bitbake-layers add-layer <path to wr-testing/bts-dev>
    2.echo 'require templates/feature/bts/template.conf' >> conf/local.conf
    3.bitbake wrlinux-image-glibc-std

Build Configuration:
----------------------------
BB_VERSION        = '1.32.0'
BUILD_SYS         = 'x86_64-linux'
NATIVELSBSTRING   = 'universal'
DISTRO            = 'wrlinux-std-sato'
DISTRO_VERSION    = '9.0.0.1'
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'
wr-base           = 'HEAD:2c6475f02da4e5fec72db74d55f8f3c00c40c00c'
wr-fixes          = 'HEAD:29ec18e91a0b777ea5b538454e6b06b5e9cefa23'
wrlinux           = 'HEAD:0b938e3126f51666b85f2cf28edea0f27510e9e8'
intel-x86         = 'HEAD:75991f8f596e7c38037a256b82197db381f88137'
meta              = 'HEAD:f848c2de36328e92b0f59c79e2ed63246b4a3c76'
meta-initramfs    
meta-python       
meta-networking   
meta-oe           
meta-perl         
meta-webserver    = 'HEAD:1d39c58fecd37fa415a4acef1f96346f656d37c3'
wr-template       = 'HEAD:d1f165f234f11376a31b99ec2aaef4843d9c6ded'
meta-xfce         = 'HEAD:1d39c58fecd37fa415a4acef1f96346f656d37c3'
wr-kernel         = 'HEAD:e07d9ae469b6b8d4160c35fbd17180a37d4a9258'
meta-gnome        
meta-filesystems  = 'HEAD:1d39c58fecd37fa415a4acef1f96346f656d37c3'
meta-realtime     
meta-virtualization = 'HEAD:e07d9ae469b6b8d4160c35fbd17180a37d4a9258'
wr-base-dl        = 'HEAD:8e6b4362de5b93e30a24a321f6e74f5d77e15835'
oe-core-dl-2.2    = 'HEAD:19e5675d1326c63434fbdb9bee59d4dc018c5237'
meta-initramfs-dl-2.2 = 'HEAD:1347989107c2f97644b18d862f850fd4dc0e104e'
meta-python-dl-2.2 = 'HEAD:b7397cb44fb80d3a19b6ef92f4a44de7ffddf53c'
meta-networking-dl-2.2 = 'HEAD:fb410db9d733dc2a7fb988de0cc4a4429d5f22e2'
meta-oe-dl-2.2    = 'HEAD:7067eca229724269d5625ce7b74d39e7cd526304'
meta-perl-dl-2.2  = 'HEAD:4d65c8cf72a198d849104cd3f213b6f3777f7431'
meta-webserver-dl-2.2 = 'HEAD:ec10bc34d57bd4f8f1a8ff4d6fff993d45c754a0'
meta-xfce-dl-2.2  = 'HEAD:b5c398839240694a6dc86ae5872f1d5fa39df8a8'
wr-kernel-dl      = 'HEAD:fbd4543c2568fe08f8e838672fea30fb54938b8f'
meta-gnome-dl-2.2 = 'HEAD:86e40dcfb44212cfeed26cae972edd24c1c99324'
meta-filesystems-dl-2.2 = 'HEAD:ffa26ce28c1a1ddd181aedc6dbc95c2b539f35a4'
local             = 'master:4040b51188adfa3fe0e2f51b103273965f655837'
bts-dev           = 'master:40c541b46a32ccf65280d30cb240bb7258d8e3a6'


Kernel source top 10 commits:
----------------------------
Kexin(Casey) Chen 91df663614a3 aufs: fix compile warning Tue Nov 29 13:39:36 2016 -0800
Wanpeng Li dcbf27e35718 x86/apic: Order irq_enter/exit() calls correctly vs. ack_APIC_irq() Tue Nov 29 13:38:56 2016 -0800
Liwei Song 88f1e5e0a991 serial: 8250_mid fix calltrace when hotplug 8250 serial controller Tue Nov 29 13:38:49 2016 -0800
Yanjiang Jin f55822d81c8f powerpc: cputime: fix a compile warning Mon Nov 21 09:35:38 2016 -0800
Dave Hansen f3fa306e0462 x86/pkeys: Add self-tests Mon Nov 21 09:33:51 2016 -0800
Dave Hansen 3fe53446913e x86/pkeys: Allow configuration of init_pkru Mon Nov 21 09:33:45 2016 -0800
Dave Hansen 7474ed2f524d x86/pkeys: Default to a restrictive init PKRU Mon Nov 21 09:33:39 2016 -0800
Dave Hansen 4ea9cf57629f pkeys: Add details of system call use to Documentation/ Mon Nov 21 09:33:32 2016 -0800
Dave Hansen 96cf1968125b generic syscalls: Wire up memory protection keys syscalls Mon Nov 21 09:33:26 2016 -0800
Dave Hansen feaeccbd180e x86: Wire up protection keys system calls Mon Nov 21 09:33:19 2016 -0800

Kernel config enabled by the testing layer:
------------------------------------------
CONFIG_DEBUG_KMEMLEAK=y
CONFIG_DEBUG_KMEMLEAK_EARLY_LOG_SIZE=5000
CONFIG_IOSCHED_BFQ=y
CONFIG_DMATEST=m
CONFIG_USB_SERIAL_PL2303=y
CONFIG_CMA_DEBUG=y
CONFIG_UIO_PCI_GENERIC=m
CONFIG_USB_USBNET=y
CONFIG_USB_NET_DM9601=y
CONFIG_IOSCHED_BFQ=y

Kernel Boot Parameter:
---------------------
root@intel-x86-64:/opt/wr-test/testcases/bts/graphic_glxgears# cat /proc/cmdline
fs0:\EFI\wrl\bzImage.efi root=/dev/sda2 rw rootwait intel_iommu=off 

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