Wind River Support Network

HomeDefectsLIN1019-3210
Fixed

LIN1019-3210 : [BTS]"dma_kernel_test" test failed on bcm-2xxx-rpi4 BSP target

Created: Oct 31, 2019    Updated: Dec 17, 2019
Resolved Date: Nov 20, 2019
Found In Version: 10.19.45.1
Fix Version: 10.19.45.2
Severity: Standard
Applicable for: Wind River Linux LTS 19
Component/s: BSP

Description

1. Build project
setup.sh --machines=bcm-2xxx-rpi4 --templates feature/test --accept-eula=yes --dl-layers

. ./oe-init-build-env build_test

bitbake-layers add-layer wr-testing/bts-dev
echo "WRTEMPLATE_append = \" feature/bts\"" >> conf/local.conf

bitbake wrlinux-image-glibc-std

2. Load images to the target

3. Run the following commands on the target

root@bcm-2xxx-rpi4:/opt/wr-test#./main_test.py -s dma_kernel_test

root@bcm-2xxx-rpi4:/opt/wr-test/testcases/bts/dma_kernel_test# ./runtest.sh

#########################################################
Start testcase dma_kernel_test (keyword: ) testing #########################################################

<< [do_test1] start dma kernel mudule test>>
********************
root@bcm-2xxx-rpi4:/opt/wr-test/testcases/bts/dma_kernel_test# lsmod |grep dmatest

root@bcm-2xxx-rpi4:/opt/wr-test/testcases/bts/dma_kernel_test# modprobe dmatest run=1 iterations=42
dmatest: Could not start test, no channels configured
dmatest: Added 1 threads using dma0chan0
dmatest: Added 1 threads using dma0chan1
dmatest: Started 1 threads using dma0chan0
dmatest: Started 1 threads using dma0chan1
dmatest: dma0chan0-copy0: result #1: 'prep error' with src_off=0x13ef dst_off=0x1702 len=0x8e4 (0)

dmatest: dma0chan1-copy0: result #1: 'prep error' with src_off=0x762 dst_off=0x22de len=0x14e1 (0) <<end dma kernel mudule test>>
********************
<<clean subcase>>
********************
dmatest: dma0chan1-copy0: result #2: 'prep error' with src_off=0x1d7a dst_off=0x2046 len=0x1d44 (0)

dmatest: dma0chan0-copy0: result #2: 'prep error' with src_off=0x310 dst_off=0x926 len=0x22c9 (0) << [do_check_call_trace] start check testcase call trace>>
********************
dmatest: dma0chan1-copy0: result #3: 'prep error' with src_off=0xe6a dst_off=0xf03 len=0x3059 (0)
dmatest: dma0chan0-copy0: result #3: 'prep error' with src_off=0x1191 dst_off=0x2734 len=0x14d (0)
dmatest: dma0chan1-copy0: result #4: 'prep error' with src_off=0x20f dst_off=0x10b len=0x3c11 (0)
dmatest: dma0chan0-copy0: result #4: 'prep error' with src_off=0x1a31 dst_off=0x2e4b len=0x30c (0)
dmatest: dma0chan1-copy0: result #5: 'prep error' with src_off=0xaa0 dst_off=0x2cb7 len=0x7cf (0)
dmatest: dma0chan0-copy0: result #5: 'prep error' with src_off=0x317 dst_off=0x289d len=0x1355 (0)
dmatest: dma0chan1-copy0: result #6: 'prep error' with src_off=0x242f dst_off=0x211a len=0x6cf (0)
dmatest: dma0chan0-copy0: result #6: 'prep error' with src_off=0xf76 dst_off=0x1b83 len=0x1485 (0)
dmatest: dma0chan1-copy0: result #7: 'prep error' with src_off=0x1e92 dst_off=0x1938 len=0x11dd (0)
dmatest: dma0chan0-copy0: result #7: 'prep error' with src_off=0xe23 dst_off=0x383 len=0x318d (0)
dmatest: dma0chan1-copy0: result #8: 'prep error' with src_off=0x735 dst_off=0xce1 len=0x2450 (0)
dmatest: dma0chan0-copy0: result #8: 'prep error' with src_off=0x1f9f dst_off=0x1ef3 len=0x1b32 (0)
dmatest: dma0chan1-copy0: result #9: 'prep error' with src_off=0x90a dst_off=0xb2b len=0x778 (0)
dmatest: dma0chan0-copy0: result #9: 'prep error' with src_off=0x4c4 dst_off=0x1e3 len=0x20ea (0)
dmatest: dma0chan1-copy0: result #10: 'prep error' with src_off=0x2fc dst_off=0x20a len=0x3b12 (0)
dmatest: dma0chan0-copy0: result #10: 'prep error' with src_off=0xa37 dst_off=0x1e24 len=0x1a22 (0)
dmatest: dma0chan1-copy0: result #11: 'prep error' with src_off=0x102 dst_off=0x1c5 len=0x3c54 (0)
root@bcmdmatest: dma0chan0-copy0: result #11: 'prep error' with src_off=0x239e dst_off=0x215a len=0x1b4e (0) -2xxx-rpi4:/opt/wr-test/testcases/bts/dma_kernel_test# dmesg |grep -i -w -E -B10 -A50 'Call Trace|BUG:|WARNING:' ||return 0

<<end check testcase call trace>>
********************
<<clean subcase>>
********************
dmatest: dma0chan1-copy0: result #12: 'prep error' with src_off=0x838 dst_off=0x1e0 len=0x34be (0)

dmatest: dma0chan0-copy0: result #12: 'prep error' with src_off=0x18f9 dst_off=0x10a len=0x1c0c (0) << [do_check_kmemleak] start check kmemleak>>
********************
dmatest: dma0chan1-copy0: result #13: 'prep error' with src_off=0xdd5 dst_off=0x29d7 len=0x13ff (0)
dmatest: dma0chan0-copy0: result #13: 'prep error' with src_off=0xafa dst_off=0x1712 len=0x22f4 (0)
dmatest: dma0chan1-copy0: result #14: 'prep error' with src_off=0x499 dst_off=0x1bd2 len=0x20e9 (0)
dmatest: dma0chan0-copy0: result #14: 'prep error' with src_off=0x157e dst_off=0x2bfb len=0x996 (0)
dmatest: dma0chan1-copy0: result #15: 'prep error' with src_off=0x1e0 dst_off=0x4cf len=0x3aa0 (0)
dmatest: dma0chan0-copy0: result #15: 'prep error' with src_off=0x1167 dst_off=0xbae len=0x1321 (0)
dmatest: dma0chan1-copy0: result #16: 'prep error' with src_off=0xf0 dst_off=0x5b len=0x3cfd (0)
dmatest: dma0chan0-copy0: result #16: 'prep error' with src_off=0x7a4 dst_off=0x695 len=0x382e (0)
dmatest: dma0chan1-copy0: result #17: 'prep error' with src_off=0x1d53 dst_off=0x2c94 len=0x1053 (0)
dmatest: dma0chan0-copy0: result #17: 'prep error' with src_off=0x1 dst_off=0x1141 len=0x20ce (0)
dmatest: dma0chan1-copy0: result #18: 'prep error' with src_off=0x12a4 dst_off=0xbc7 len=0x2606 (0)
dmatest: dma0chan0-copy0: result #18: 'prep error' with src_off=0x4c3 dst_off=0x36c len=0x3862 (0)
dmatest: dma0chan1-copy0: result #19: 'prep error' with src_off=0x140 dst_off=0x1cd3 len=0x2287 (0)
dmatest: dma0chan0-copy0: result #19: 'prep error' with src_off=0x216 dst_off=0x94 len=0x3d92 (0)
dmatest: dma0chan1-copy0: result #20: 'prep error' with src_off=0x459 dst_off=0x5b5 len=0x38ba (0)
dmatest: dma0chan0-copy0: result #20: 'prep error' with src_off=0x21f0 dst_off=0x2342 len=0xf74 (0)
dmatest: dma0chan1-copy0: result #21: 'prep error' with src_off=0x18a7 dst_off=0x37fa len=0x711 (0) root@bcm-2xxx-rpi4:/opt/wr-test/testcases/bts/dma_kernel_test# cat /sys/kernel/debug/kmemleak |grep -E -B10 -A50 'kmemleak_alloc|kmem_cache_alloc' ||return 0
dmatest: dma0chan0-copy0: result #21: 'prep error' with src_off=0x5ce dst_off=0xc34 len=0x2d15 (0)
dmatest: dma0chan1-copy0: result #22: 'prep error' with src_off=0x540 dst_off=0x549 len=0x34cf (0)

<<end check kmemleak>>
********************
<<clean subcase>>
********************
dmatest: dma0chan0-copy0: result #22: 'prep error' with src_off=0x1760 dst_off=0x5ed len=0x213d (0)

dmatest: dma0chan1-copy0: result #23: 'prep error' with src_off=0x1a59 dst_off=0x13b5 len=0x20c3 (0) root@bcm-2xxx-rpi4:/opt/wr-test/testcases/bts/dma_kernel_test# lsmod |grep dmatest
dmatest 28672 0
dmatest: dma0chan0-copy0: result #23: 'prep error' with src_off=0xb24 dst_off=0x13e1 len=0x2919 (0) root@bcm-2xxx-rpi4:/opt/wr-test/testcases/bts/dma_kernel_test# modprobe -r dmatest
dmatest: dma0chan1-copy0: result #24: 'prep error' with src_off=0x19b dst_off=0x3d1 len=0x1e0b (0)
dmatest: dma0chan0-copy0: summary 23 tests, 23 failures 8.52 iops 63 KB/s (0)
dmatest: dma0chan1-copy0: summary 24 tests, 24 failures 8.66 iops 76 KB/s (0)

#########################################################################
dma_kernel_test (keyword: ) test results:
*1 dma kernel mudule test(do_test1) FAIL
ERROR CMD OR INFO IS :
line:13 "There is error info in the dmatest"
*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: 5 seconds

Steps to Reproduce

1. Build project
/lpg-build/cdc/fast_prod/WRLINUX_MASTER_WR/MASTER_WR_GIT/wrlinux-10/setup.sh --machines=bcm-2xxx-rpi4 --templates feature/test --accept-eula=yes --dl-layers

. ./oe-init-build-env build_test

bitbake-layers add-layer wr-testing/bts-dev
echo "WRTEMPLATE_append = \" feature/bts\"" >> conf/local.conf 

bitbake wrlinux-image-glibc-std

2. Load images to the target

3. Run the following commands on the target 

root@bcm-2xxx-rpi4:/opt/wr-test#./main_test.py -s dma_kernel_test
Live chat
Online