Wind River Support Network

HomeDefectsLIN6-6952
Fixed

LIN6-6952 : Using 'isolcpus=' in bootargs and use 'sched_setaffinity' in pthread, the pthread stops and the kernel prints out BUG_ON

Created: Dec 11, 2012    Updated: Dec 3, 2018
Resolved Date: Mar 16, 2014
Previous ID: LIN4-6444, LIN5-11503
Found In Version: 6.0
Fix Version: 6.0.0.5
Severity: Critical
Applicable for: Wind River Linux 6
Component/s: BSP
Host OS: Linux Ubuntu
Architecture: PowerPC

Description

Problem Description
====================== 
Using wrll-fsl-p2041 bsp in wrlinux4.3,  we set 'isolcpus=1' in bootargs, after the kernel is brought up. We startup a ssh termeinal, and run a pth_test in this terminal. (The code for pth_test will be attched).  The pthread would stop and the kernel prints out BUG_ON after running for few minutes. 

 wrll-fsl_psc913x bsp also has this problem on psc9132 board.
When we disable CONFIG_RT_GROUP_SCHED, the error occur easily. If we use the patch for WIND00379568, it seems no effect.

Expected Behavior
====================== 
pthread would run smoothly.

Observed Behavior
====================== 
The printing infomation of the pthread stops and kernel prints out BUG_ON

Logs(Key error logs)
====================== 
N/A

Workaround

N/A

Steps to Reproduce

1. create project  
  $ /home/wrlinux4_3/WindRiver/wrlinux-4/wrlinux/../ldat/configure --enable-board=fsl_p204x --enable-bootimage=flash --enable-build=production --enable-jobs=6 --enable-kernel=standard --enable-parallel-pkgbuilds=6 --enable-rootfs=glibc_small+debug+demo --with-product-dir=/home/wrlinux4_3/WindRiver/wrlinux-4/wrlinux

2. Make images
make openssh.addpkg
make fs
make boot-image BOOTIMAGE_TYPE=flash BOOTIMAGE_RAM0SIZE=128000. 

3. boot the board
setenv bootargs 'root=/dev/ram rw console=ttyS0,115200 ramdisk_size=800000  isolcpus=1 ';

setenv ipaddr 128.224.156.253;setenv serverip 128.224.156.168;tftp 3000000 p2041_uimage.gh;tftp 5000000 p2041rdb.dtb.gh;tftp 6000000 p2041_ramdisk.gh;bootm 3000000 0x6000000 5000000;

4. After the board is bring up, get pth_test by tftp
ifconfig eth0 128.224.156.18
tftp -r wrs/pth_test -g 128.224.156.133
chmod 777 pth_test

5. connect to the board by ssh
ssh root@128.224.156.18 

6. In ssh terminal, run ./pth_test for 1-2 minutes, then CTRL+C to stop, then run ./pth_test again, then CTRL+C. several times, The printing infomation of the pthread stops and kernel prints out BUG_ON

Other Downloads


Live chat
Online