Wind River Support Network

HomeDefectsLIN7-1959
Not to be fixed

LIN7-1959 : fsl-t2xxx i2cget test failed on sfp

Created: Nov 24, 2014    Updated: Apr 19, 2018
Resolved Date: Apr 17, 2018
Found In Version: 7.0
Severity: Standard
Applicable for: Wind River Linux 7
Component/s: BSP

Description

root@fsl-t2xxx:~# uname -a
Linux fsl-t2xxx 3.14.23-rt9-WR7.0.0.0_preempt-rt #1 SMP PREEMPT RT Sat Nov 22 18:18:10 CST 2014 ppc64 GNU/Linux
root@fsl-t2xxx:~# cat /proc/cmdline
root=/dev/nfs rw nfsroot=128.224.178.20:/export/pxeboot/vlm-boards/21919/rootfs TCF=1 ip=128.224.178.34:128.224.178.20:128.224.178.1:255.255.254.0:2080rdb:eth2:off console=ttyS0,115200 usb-storage.delay_use=10
root@fsl-t2xxx:~# /opt/wr-test/testcases/bts/i2c_get/runtest.sh -q -k "sfp" 
Error: Read failed
WRL Test Completed Unsuccessfully
######################################################### 
           Start i2c_get testing      
######################################################### 
<<start Get i2c bus(4) via address 0x0050>>
********************
root@fsl-t2xxx:/root# i2cget -f -y 4 0x0050

<<end Get i2c bus(4) via address 0x0050>>
********************
<<start check testcase call trace>>
********************
root@fsl-t2xxx:/root# dmesg |grep -B10 -A50 'Call Trace' ||exit 0

<<end check testcase call trace>>
********************
<<start check kmemleak>>
********************
root@fsl-t2xxx:/root# cat /sys/kernel/debug/kmemleak |grep -B10 -A50 'kmemleak_alloc' ||exit 0

<<end check kmemleak>>
********************

Project Configure Line:
# Generated by wrlinux configure at Sat Nov 22 17:56:51 CST 2014
/lpg-build/cdc/fast_prod/wrlinux70/WRL70_LB18/wrlinux-7/wrlinux/configure --enable-board=fsl-t2xxx --enable-kernel=preempt-rt --enable-rootfs=glibc-std --with-layer=/lpg-build/cdc/WASSP_LINUX/testcases/wrlinux/wr-testing/bts-dev --with-template=feature/kexec,feature/kdump,feature/bts --enable-multilib=lib32 --enable-jobs=8 --enable-parallel-pkgbuilds=8 --enable-reconfig=yes --with-rcpl-version=0

Kernel Boot Parameter:
root@fsl-t2xxx:/root# cat /proc/cmdline
root=/dev/nfs rw nfsroot=128.224.178.20:/export/pxeboot/vlm-boards/21919/rootfs TCF=1 ip=128.224.178.34:128.224.178.20:128.224.178.1:255.255.254.0:2080rdb:eth2:off console=ttyS0,115200 usb-storage.delay_use=10

Kernel source top 10 commits:
Yang Shi 45827c8 rt: cpufreq: check whether cpufreq_rwsem is locked before trying to acquire it Wed Nov 19 11:17:12 2014 -0800
Rabin Vincent b693368 tracing/syscalls: Ignore numbers outside NR_syscalls' range Wed Nov 19 10:50:55 2014 -0800
He Zhe 17919d7 x86, kgdb: correct kgdb_arch_remove_breakpoint Wed Nov 19 02:07:22 2014 -0800
Jiang Lu b2ccb45 Powerpc/Oprofile:Disable pagefaults during user stack read Wed Nov 19 01:22:36 2014 -0800
Shan Hai 66130b0 fs/jffs2: fix a locking order bug in garbage collect path Tue Nov 18 17:46:20 2014 -0800
Bin Jiang 8a3a362 MIPS: get_user: fix compile problem Tue Nov 18 01:26:53 2014 -0800
Jiang Lu 493c82e phy_device:prevent dead loop when probe c45 devcie Mon Nov 17 01:46:09 2014 -0800
Kevin Hao aa0ce3a memblock: change the annotation to __init_memblock for memblock_is_reserved() Sun Nov 16 18:14:04 2014 -0800
Eric W. Biederman e9b0a83 mnt: Prevent pivot_root from creating a loop in the mount tree Fri Nov 14 00:33:05 2014 -0800
Kevin Hao 1fc0b17 edac: mpc85xx: don't do the ecc scrubbing for the reserved memory Fri Nov 14 00:30:31 2014 -0800


############################################################### 
Test Results:
*1 Get i2c bus(4) via address 0x0050(do_test1)       FAIL  
ERROR CMD OR INFO IS :
		i2cget -f -y 4 0x0050
*2 check testcase call trace(do_check_call_trace)    PASS  
*3 check kmemleak(do_check_kmemleak)                 PASS  
############################################################### 
Excution Time: 61 seconds
logWrite/*tc*//*tc*/root@fsl-t2xxx:~# 

Steps to Reproduce

1) configure --enable-board=fsl-t2xxx --enable-kernel=preempt-rt --enable-rootfs=glibc-std --with-layer=testcases/wrlinux/wr-testing/bts-dev --with-template=feature/kexec,feature/kdump,feature/bts --enable-multilib=lib32 --enable-jobs=8 --enable-parallel-pkgbuilds=8 --enable-reconfig=yes
2) make all
3) deploy images and boot target.
4) follow description's steps to do testing.

Check the commands output and logs
Live chat
Online