Wind River Support Network

HomeDefectsLIN6-8169
Fixed

LIN6-8169 : Call trace found when "modprobe bman_tester" is run on fsl-e500mc (CGL)

Created: Aug 14, 2014    Updated: Dec 3, 2018
Resolved Date: Feb 27, 2015
Found In Version: 6.0
Fix Version: 6.0.0.18
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: BSP - Async

Description

root@localhost:/opt/wr-test/testcases/bts/BMAN# modprobe bman_tester
bman_tester: module is from the staging directory, the quality is unknown, you have been warned.
BMAN:  --- starting high-level test ---
BUG: sleeping function called from invalid context at /60async/fsl-e500mc/git_20140805/cgl_spi/bitbake_build/tmp/work/fsl_e500mc-wrs-linux/linux-windriver/3.10-r
0/linux/mm/slub.c:926
in_atomic(): 1, irqs_disabled(): 1, pid: 1803, name: modprobe
INFO: lockdep is turned off.
irq event stamp: 0
hardirqs last  enabled at (0): [<  (null)>]   (null)
hardirqs last disabled at (0): [<c0044bd4>] copy_process.part.38+0x514/0x1290
softirqs last  enabled at (0): [<c0044bd4>] copy_process.part.38+0x514/0x1290
softirqs last disabled at (0): [<  (null)>]   (null)
CPU: 5 PID: 1803 Comm: modprobe Tainted: G        WC   3.10.38-ltsi-WR6.0.0.0_cgl #1
Call Trace:
[e7581ca0] [c0008b5c] show_stack+0xfc/0x1c0 (unreliable)
[e7581cf0] [c01ae364] kmem_cache_alloc_trace+0x164/0x390
[e7581d30] [c07e968c] dpa_alloc_new+0x1fc/0x2b0
[e7581d70] [c07ec434] bman_new_pool+0x274/0x3a0
[e7581da0] [f95161a8] bman_test_high+0xc8/0x2e0 [bman_tester]
[e7581df0] [f951601c] test_init+0x1c/0x40 [bman_tester]
[e7581e00] [c00021b8] do_one_initcall+0x168/0x1c0
[e7581e30] [c00d2888] load_module+0x1b78/0x21b0
[e7581ee0] [c00d3090] SyS_finit_module+0x90/0xc0
[e7581f40] [c0011c58] ret_from_syscall+0x0/0x3c
--- Exception: c00 at 0xff06718
    LR = 0xfd4af30
BMAN:  --- finished high-level test ---
bman_test_thresh: start
bman_test_thresh: buffers are in
thread 0: starting
thread 1: starting
thread 2: starting
thread 3: starting
thread 4: starting
thread 5: starting
thread 6: starting
thread 7: starting
thread 0: draining...
cb_depletion: bpid=33, depleted=1, cpu=0, original=0
cb_depletion: bpid=33, depleted=1, cpu=3, original=3
cb_depletion: bpid=33, depleted=1, cpu=5, original=5
cb_depletion: bpid=33, depleted=1, cpu=6, original=6
cb_depletion: bpid=33, depleted=1, cpu=7, original=7
cb_depletion: bpid=33, depleted=1, cpu=1, original=1
cb_depletion: bpid=33, depleted=1, cpu=2, original=2
cb_depletion: bpid=33, depleted=1, cpu=4, original=4
thread 0: draining done.
root@localhost:/thread 0: exiting
opt/wr-test/testthread 1: exiting
thread 2: exiting
cases/bts/BMAN# thread 3: exiting
thread 4: exiting
thread 5: exiting
thread 6: exiting
thread 7: exiting
bman_test_thresh: done

=============================================
Or to run the "BMAN" BTS test case
root@localhost:/opt/wr-test# ./main_test.sh -u 1 -s BMAN 
rdate: connect to address 147.11.1.11: No route to host

        >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
        The test case list : 
         BMAN
        <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

        Start bts Case BMAN at Thu Aug 14 04:55:27 UTC 2014 with duration 300 s
bman_tester: module is from the staging directory, the quality is unknown, you have been warned.
BMAN:  --- starting high-level test ---
BUG: sleeping function called from invalid context at /60async/fsl-e500mc/git_20140805/cgl_spi/bitbake_build/tmp/work/fsl_e500mc-wrs-linux/linux-windriver/3.10-r
0/linux/mm/slub.c:926
in_atomic(): 1, irqs_disabled(): 1, pid: 1412, name: modprobe
INFO: lockdep is turned off.
irq event stamp: 0
hardirqs last  enabled at (0): [<  (null)>]   (null)
hardirqs last disabled at (0): [<c0044bd4>] copy_process.part.38+0x514/0x1290
softirqs last  enabled at (0): [<c0044bd4>] copy_process.part.38+0x514/0x1290
softirqs last disabled at (0): [<  (null)>]   (null)
CPU: 2 PID: 1412 Comm: modprobe Tainted: G        WC   3.10.38-ltsi-WR6.0.0.0_cgl #1
Call Trace:
[e8ba3ca0] [c0008b5c] show_stack+0xfc/0x1c0 (unreliable)
[e8ba3cf0] [c01ae364] kmem_cache_alloc_trace+0x164/0x390
[e8ba3d30] [c07e968c] dpa_alloc_new+0x1fc/0x2b0
[e8ba3d70] [c07ec434] bman_new_pool+0x274/0x3a0
[e8ba3da0] [f94f21a8] bman_test_high+0xc8/0x2e0 [bman_tester]
[e8ba3df0] [f94f201c] test_init+0x1c/0x40 [bman_tester]
[e8ba3e00] [c00021b8] do_one_initcall+0x168/0x1c0
[e8ba3e30] [c00d2888] load_module+0x1b78/0x21b0
[e8ba3ee0] [c00d3090] SyS_finit_module+0x90/0xc0
[e8ba3f40] [c0011c58] ret_from_syscall+0x0/0x3c
--- Exception: c00 at 0xff06718
    LR = 0xfd4af30
BMAN:  --- finished high-level test ---
bman_test_thresh: start
bman_test_thresh: buffers are in
thread 0: starting
thread 1: starting
thread 2: starting
thread 3: starting
thread 4: starting
thread 5: starting
thread 6: starting
thread 7: starting
thread 0: draining...
cb_depletion: bpid=33, depleted=1, cpu=4, original=4
cb_depletion: bpid=33, depleted=1, cpu=3, original=3
cb_depletion: bpid=33, depleted=1, cpu=5, original=5
cb_depletion: bpid=33, depleted=1, cpu=7, original=7
cb_depletion: bpid=33, depleted=1, cpu=0, original=0
cb_depletion: bpid=33, depleted=1, cpu=1, original=1
cb_depletion: bpid=33, depleted=1, cpu=2, original=2
cb_depletion: bpid=33, depleted=1, cpu=6, original=6
thread 0: draining done.
thread 0: exiting
thread 1: exiting
thread 2: exiting
thread 3: exiting
thread 4: exiting
thread 5: exiting
thread 6: exiting
thread 7: exiting
bman_test_thresh: done
        [BMAN] results:[ FAILED ]
        [BMAN] Upload the results to RTH: Succed!
        ==========================================

        ********Detail logs for BMAN**********

Not found the kernel fragment for testing BMAN, Continue test.
        PASS    BMAN Test
        Tests Passed    : 1
        Tests Failed    : 0
        Tests Skiped    : 0
        Tests Manual    : 0
        Total Tested    : 1
# ./testbman.sh
start "cyclictest -t -a -n -p 60 -q" in the background
Bman Test Pass 
[   83.281659] BUG: sleeping function called from invalid context at /60async/fsl-e500mc/git_20140805/cgl_spi/bitbake_build/tmp/work/fsl_e500mc-wrs-linux/linux-w
indriver/3.10-r0/linux/mm/slub.c:926
[   83.339549] Call Trace:
There was Call Trace/BUG information during the testing
[   83.268747] bman_tester: module is from the staging directory, the quality is unknown, you have been warned.
[   83.277861] BMAN:  --- starting high-level test ---
[   83.281659] BUG: sleeping function called from invalid context at /60async/fsl-e500mc/git_20140805/cgl_spi/bitbake_build/tmp/work/fsl_e500mc-wrs-linux/linux-w
indriver/3.10-r0/linux/mm/slub.c:926
[   83.299114] in_atomic(): 1, irqs_disabled(): 1, pid: 1412, name: modprobe
[   83.304588] INFO: lockdep is turned off.
[   83.307197] irq event stamp: 0
[   83.308938] hardirqs last  enabled at (0): [<  (null)>]   (null)
[   83.313635] hardirqs last disabled at (0): [<c0044bd4>] copy_process.part.38+0x514/0x1290
[   83.320511] softirqs last  enabled at (0): [<c0044bd4>] copy_process.part.38+0x514/0x1290
[   83.327380] softirqs last disabled at (0): [<  (null)>]   (null)
[   83.332078] CPU: 2 PID: 1412 Comm: modprobe Tainted: G        WC   3.10.38-ltsi-WR6.0.0.0_cgl #1
[   83.339549] Call Trace:
[   83.340687] [e8ba3ca0] [c0008b5c] show_stack+0xfc/0x1c0 (unreliable)
[   83.345739] [e8ba3cf0] [c01ae364] kmem_cache_alloc_trace+0x164/0x390
[   83.350790] [e8ba3d30] [c07e968c] dpa_alloc_new+0x1fc/0x2b0
[   83.355055] [e8ba3d70] [c07ec434] bman_new_pool+0x274/0x3a0
[   83.359323] [e8ba3da0] [f94f21a8] bman_test_high+0xc8/0x2e0 [bman_tester]
[   83.364804] [e8ba3df0] [f94f201c] test_init+0x1c/0x40 [bman_tester]
[   83.369763] [e8ba3e00] [c00021b8] do_one_initcall+0x168/0x1c0
[   83.374201] [e8ba3e30] [c00d2888] load_module+0x1b78/0x21b0
[   83.378466] [e8ba3ee0] [c00d3090] SyS_finit_module+0x90/0xc0
[   83.382818] [e8ba3f40] [c0011c58] ret_from_syscall+0x0/0x3c
[   83.387083] --- Exception: c00 at 0xff06718
    LR = 0xfd4af30
[   83.394000] BMAN:  --- finished high-level test ---
[   83.397701] bman_test_thresh: start
[   83.442762] bman_test_thresh: buffers are in
[   83.445938] thread 0: starting
[   83.447886] thread 1: starting
[   83.449783] thread 2: starting
[   83.451843] thread 3: starting
[   83.453698] thread 4: starting
[   83.455589] thread 5: starting
[   83.457500] thread 6: starting
[   83.459445] thread 7: starting
[   83.461226] thread 0: draining...
[   83.464006] cb_depletion: bpid=33, depleted=1, cpu=4, original=4
[   83.464011] cb_depletion: bpid=33, depleted=1, cpu=3, original=3
[   83.464015] cb_depletion: bpid=33, depleted=1, cpu=5, original=5
[   83.464021] cb_depletion: bpid=33, depleted=1, cpu=7, original=7
[   83.464025] cb_depletion: bpid=33, depleted=1, cpu=0, original=0
[   83.464030] cb_depletion: bpid=33, depleted=1, cpu=1, original=1
[   83.464034] cb_depletion: bpid=33, depleted=1, cpu=2, original=2
[   83.464590] cb_depletion: bpid=33, depleted=1, cpu=6, original=6
[   83.526958] thread 0: draining done.
[   83.529411] thread 0: exiting
[   83.531156] thread 1: exiting
[   83.532878] thread 2: exiting
[   83.534593] thread 3: exiting
[   83.536317] thread 4: exiting
[   83.538059] thread 5: exiting
[   83.540382] thread 6: exiting
[   83.542155] thread 7: exiting
[   83.543881] bman_test_thresh: done

        **************End of the logs************
Total Tests:                    1
      Passed:                   0
      Failed:                   1
      Skipped:                  0
      Exception:                0
      Manual:                   0
Test completed unsuccessfully

Steps to Reproduce

1. Build kernel and rootfs images

configure \
  --enable-board=fsl-e500mc \
  --enable-kernel=cgl \
  --enable-rootfs=glibc_cgl \
  --with-layer=wr-testing/kts-test,wr-testing/bts-new \
  --with-template=feature/kts-basic,feature/kts-extended,feature/kts-cgl,feature/bts \
  --enable-jobs=10 \
  --enable-parallel-pkgbuilds=10

make fs

2. Load images to the target (barcode: 18403) and boot it up

3. To run the bts test case of BMAN

Other Downloads


Live chat
Online