Fixed
Created: Mar 14, 2016
Updated: Dec 3, 2018
Resolved Date: Jun 27, 2016
Previous ID: LIN8-3047
Found In Version: 8.0.0.3
Fix Version: 8.0.0.7
Severity: Standard
Applicable for: Wind River Linux 9
Component/s: BSP
Start testcase kernwarning_buildcheck testing
<<start Check build warning>>
********************
root@axxiaarm:/root# cat /opt/wr-test/kernel.do_compile | grep -v 'TODO:' |grep -B10 -A10 'warning' ||return 0
CC drivers/usb/storage/option_ms.o
CC drivers/usb/storage/usual-tables.o
CC drivers/usb/core/devices.o
CC drivers/tty/serial/serial_core.o
CC drivers/tty/serial/earlycon.o
CC drivers/tty/serial/amba-pl011.o
CC drivers/scsi/scsi_sysctl.o
CC drivers/usb/core/port.o
LD drivers/usb/storage/usb-storage.o
/buildarea1/WRL8CGP_regression/build_dir/bsp/axxiaarm/LSI_ARM_Amarillo_cgl_glibc_cgl_WR_systemd/lxbuilds/LSI-ARM-Amarillo_platform_up/axxiaarm-cgl-glibc-cgl/wrlinux/bitbake_build/tmp/work-shared/axxiaarm/kernel-source/drivers/tty/serial/serial_core.c: In function 'uart_set_info':
/buildarea1/WRL8CGP_regression/build_dir/bsp/axxiaarm/LSI_ARM_Amarillo_cgl_glibc_cgl_WR_systemd/lxbuilds/LSI-ARM-Amarillo_platform_up/axxiaarm-cgl-glibc-cgl/wrlinux/bitbake_build/tmp/work-shared/axxiaarm/kernel-source/drivers/tty/serial/serial_core.c:749:26: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
new_info->iomem_base = (unsigned char *)uport->mapbase;
^
LD drivers/usb/storage/built-in.o
CC drivers/tty/vt/vt_ioctl.o
CC drivers/tty/vt/vc_screen.o
CC drivers/tty/vt/selection.o
CC drivers/scsi/scsi_proc.o
CC drivers/scsi/scsi_trace.o
CC drivers/usb/core/hcd-pci.o
CC drivers/tty/vt/keyboard.o
<<end Check build warning>>
********************
<<clean subcase>>
********************
<<start Check kernel QA issue>>
********************
root@axxiaarm:/root# cat /opt/wr-test/linux-kernel.do_package_qa | grep -B10 -A10 'WARNING: QA Issue' ||return 0
<<end Check kernel QA issue>>
********************
<<clean subcase>>
********************
<<start check testcase call trace>>
********************
root@axxiaarm:/root# dmesg |grep -i -w -E -B10 -A50 'Call Trace|BUG:' ||return 0
<<end check testcase call trace>>
********************
<<clean subcase>>
********************
<<start check kmemleak>>
********************
root@axxiaarm:/root# cat /sys/kernel/debug/kmemleak |grep -E -B10 -A50 'kmemleak_alloc|kmem_cache_alloc' ||return 0
<<end check kmemleak>>
********************
<<clean subcase>>
********************
kernwarning_buildcheck test results:
*1 Check build warning(do_test1) FAIL
ERROR CMD OR INFO IS :
line:10 "There is some build warning in kernel's log.do_compile"
*2 Check kernel QA issue(do_test2) PASS
*3 check testcase call trace(do_check_call_trace) PASS
*4 check kmemleak(do_check_kmemleak) PASS
Test Summary
Total number : 4
Pass number : 3
Fail number : 1
Skip number : 0
Excution Time: 14 seconds
End testcase kernwarning_buildcheck testing
Test case Author: lei.yang
------------------
Product update date(Spin):
------------------
spin=GIT_20160311
------------------
Project Build Path:
------------------
pek-lpgtest18.wrs.com:/buildarea1/WRL8CGP_regression/build_dir/bsp/axxiaarm/LSI_ARM_Amarillo_cgl_glibc_cgl_WR_systemd/lxbuilds/LSI-ARM-Amarillo_platform_up/axxiaarm-cgl-glibc-cgl/wrlinux
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 Mon Mar 14 10:40:41 CST 2016
/lpg-build/cdc/fast_prod/wrlinux80RCPL/RCPL0003_LX02/wrlinux-8/wrlinux/configure --enable-board=axxiaarm --enable-kernel=cgl --enable-rootfs=glibc-cgl --with-layer=/lpg-build/cdc/WASSP_LINUX_ARM/testcases/wrlinux/wr-testing/bts-dev --with-template=feature/bts,feature/kexec,feature/kdump --enable-jobs=8 --enable-parallel-pkgbuilds=8 --enable-reconfig=yes --with-rcpl-version=0003
Build Configuration:
----------------------------
BB_VERSION = "1.28.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "RedHat-6"
DISTRO = "wrlinux-cgl"
DISTRO_VERSION = "8.0.0.3"
MACHINE = "axxiaarm"
DEFAULTTUNE = "cortexa15t-neon"
TARGET_SYS = "arm-wrs-linux-gnueabi"
TUNE_FEATURES = "arm armv7a vfp thumb neon cortexa15"
TARGET_FPU = "vfp-neon"
wrlinux = "LB13_8.0_RCPL0003:8f08d2502e0bf176866d9d805160a4464b5781c2"
wrlcompat = "LB13_8.0_RCPL0003:4b1238228248f4fcb14a7796be2fed7df5b1f40b"
wr-sdk-toolchain = "LB13_8.0_RCPL0003:7f1ebd9eb4887609f3336b998477a432d2146b81"
wr-tcwrappers = "LB13_8.0_RCPL0003:6d4a369c118fd0035918d944bfdb3b939f67f46c"
meta = "LB13_8.0_RCPL0003:0eee28c8e5f891c52f684769c4efcafc0f09f4d9"
oe-core-dl-2.0 = "LB13_8.0_RCPL0003:102f99afff4970ec8fa4d601c73bfe7bf1e58f10"
meta-downloads = "LB13_8.0_RCPL0003:61883d790beeceb0245c351539b73da1eade52a1"
wr-kernel = "LB13_8.0_RCPL0003:991bcd0d488439ad4d86eabe271bf15090e15367"
axxiaarm = "LB13_8.0_RCPL0003:a985ad7cee02e4876e1a2eec7d2fcf2c8b253e5f"
wr-base = "LB13_8.0_RCPL0003:010e9a08d65bada77e7986a99b0b348d037ee90d"
wr-fixes = "LB13_8.0_RCPL0003:de41a377cbb46992db298c26feceaeefa0b76109"
wr-tools-profile = "LB13_8.0_RCPL0003:f17f59114ae71add301da08f86f823809a2bd2c5"
wr-tools-debug = "LB13_8.0_RCPL0003:b3361fc0bb65c164104cb60df1b1a9e62e34bd35"
meta-filesystems
meta-initramfs
meta-gnome
meta-multimedia
meta-networking
meta-oe
meta-python
meta-perl
meta-webserver
meta-xfce = "LB13_8.0_RCPL0003:d3ef3476774d3efebb04007d6038ddb358d06b7f"
wr-prebuilts = "LB13_8.0_RCPL0003:61fbe7ea17afa5323a47b728b92be93e35b18e68"
meta-selinux = "wr-8.0-20151119:3d4587c5221f77a58147673fb730f6d21c0f120b"
wr-security = "LB13_8.0_RCPL0003:7a087a3b1221f635e7d311ffb2bde220394622d0"
cgp = "LB13_8.0_RCPL0003:c5a67eeb2aeea1b5ab7fdbe6c7b063b236f9d4fb"
common-downloads = "LB13_8.0_RCPL0003:2896bccbc08b347fe6c6dffa0663320412d843c8"
bts-dev = "master:be3cd1e524beeebcac6707a7c7d8b2df45c54a67"
----------------------------------------------------------------------
Kernel source top 10 commits:
----------------------------
Xulin Sun 2c1307e axxiaarm: change serial amba-pl1011 irq driver handler to oneshot Wed Mar 9 16:04:26 2016 +0800
Andrey Ryabinin 09f8449 kasan: fix kmemleak false-positive in kasan_module_alloc() Tue Mar 8 14:15:11 2016 +0800
Alexey Kodanev 1aef373 locktorture: fix deadlock in 'rw_lock_irq' type Tue Mar 8 14:14:18 2016 +0800
Yue Tao 28a82fe fix 2 warnings introduced by commit e02ac252 Fri Mar 4 13:24:09 2016 +0800
Yang Shi c2e7d25 tracing, kasan: Silence Kasan warning in check_stack of stack_tracer Thu Mar 3 11:02:34 2016 +0800
Andrey Ryabinin 6625595 compiler, atomics, kasan: Provide READ_ONCE_NOCHECK() Thu Mar 3 11:02:32 2016 +0800
Qi Hou 9378a15 fixed ERROR while compiling bsp of axxiaarm with DEBUG_LL enabled. Tue Mar 1 19:05:17 2016 +0800
Martin KaFai Lau d70e519 ipv6: Check RTF_LOCAL on rt->rt6i_flags instead of rt->dst.flags Tue Mar 1 19:01:55 2016 +0800
Martin KaFai Lau a84bb01 ipv6: Stop /128 route from disappearing after pmtu update Tue Mar 1 19:01:53 2016 +0800
Aristeu Rozanski c5d08cf sb_edac: correctly fetch DIMM width on Ivy Bridge and Haswell Tue Mar 1 11:11:44 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_MTD_TESTS=m
CONFIG_I2C_CHARDEV=m
CONFIG_DMATEST=m
CONFIG_PERF_EVENTS=y
Kernel Boot Parameter:
---------------------
root@axxiaarm:/root# cat /proc/cmdline
console=ttyAMA0,9600 root=/dev/nfs rw nfsroot=128.224.178.20:/export/pxeboot/vlm-boards/20358/rootfs,nfsvers=3 ip=128.224.179.59:128.224.178.20:128.224.178.1:255.255.254.0:axxiaarm:eth0:off selinux=1 enforcing=0 crashkernel=128M@256M mem=2048M TCF=1
To reproduce it:
---------------
# /opt/wr-test/testcases/bts/kernwarning_buildcheck/runtest.sh
WRL Test Completed Unsuccessfully
/opt/wrlogWrite/*tc*//*tc*/-test/lib/common_lib.sh: line 532: 17201 Killed watchdog_daemon
root@axxiaarm:~#