[#4933] test 7 will hang sometimes for gadget fs bulk test on bf527
Submitted By: Vivi Li
Open Date
2009-02-23 05:37:11 Close Date
2009-06-17 01:53:51
Priority:
Medium High Assignee:
Cliff Cai
Status:
Closed Fixed In Release:
N/A
Found In Release:
N/A Release:
Category:
N/A Board:
EZKIT Lite
Processor:
BF527 Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Fixed
Uboot version or rev.:
Toolchain version or rev.:
gcc4.1_2009-01-19
App binary format:
N/A
Summary: test 7 will hang sometimes for gadget fs bulk test on bf527
Details:
For gadget fs bulk test on bf527, sometimes it will hang at test 7.
--
test@uclinux63-527-usbdev:~/work/cruise/checkouts/uclinux-dist/testsuites/usbdev> sudo ./src/testusb -D /proc/bus/usb/005/043 -t7
unknown speed /proc/bus/usb/005/043
(no response)
--
At the same time, NULL pointer access info shows up in target board.
--
root:/> ./usb -r "1.3" -v
gadgetfs: bound to musb_hdrc driver
/dev/gadget/musb_hdrc ep0 configured
serial="1.3"
gadgetfs: connected
s: disconnectedpfed:g4 1a75
DISCONNECT
gadgetfs: connected
iguTUPr8at06 i0o00 n000 #355ighconfed
SETUP 80.06 v0302 i0409 255
SETUP 80.06 v0301 i0409 255
SETUP 80.06 v0303 i0409 255
SETUP 00.09 v0003 i0000 0
CONFIG #3
simple_source_thread start 1026 fd 6
simple_sink_thread start 2051 fd 7
SETUP 80.06 v0304 i0409 255
SETUP 80.06 v0305 i0409 255
badNOUU byLL pointer access
Deferred Exception context
CURRENT PROCESS:
COMM=usb PID=251
CPU = 0
TEXT = 0x006f4000-0x006f7e6c DATA = 0x006f2e6c-0x006f3444
BSS = 0x006f3444-0x006c0000 USER-STACK = 0x006dfeb0
return address: [0x006f5cb4]; contents of:
0x006f5c90: 007e 3210 9113 b99b e418 0086 3008 b9d2
0x006f5ca0: 3003 b99b e3ff f814 b99a e410 007e 3210
0x006f5cb0: 9113 b9fa [9950] 4342 b99b e418 0087 3008
0x006f5cc0: 3003 b99b e3ff f804 b9d1 6078 5401 6079
SEQUENCER STATUS: Not tainted
SEQSTAT: 00062027 IPEND: 0030 SYSCFG: 0006
EXCAUSE : 0x27
interrupts disabled
physical IVG5 asserted : <0xffa00aec> { _evt_ivhw + 0x0 }
RETE: <0x00000000> { _do_one_initcall + 0xfffff000 }
RETN: <0x031ba000> /* kernel dynamic memory */
RETX: <0x00000480> /* Maybe fixed code section */
RETS: <0x006f5ca8> [ /usb + 0x1ca8 ]
PC : <0x006f5cb4> [ /usb + 0x1cb4 ]
DCPLB_FAULT_ADDR: <0x00000000> { _do_one_initcall + 0xfffff000 }
ICPLB_FAULT_ADDR: <0x006f5cb4> [ /usb + 0x1cb4 ]
PROCESSOR STATE:
R0 : 03189248 R1 : 00000001 R2 : 00000000 R3 : 031892d8
R4 : 006f3000 R5 : 03185548 R6 : 00000000 R7 : 031892d8
P0 : 03189310 P1 : 006b8550 P2 : 00000000 P3 : 03185548
P4 : 031b3e24 P5 : 031b3e24 FP : 031b2110 SP : 031b9f24
LB0: 03192191 LT0: 03192184 LC0: 00000000
LB1: 031dd773 LT1: 031dd772 LC1: 00000000
B0 : 00000000 L0 : 00000000 M0 : 00000000 I0 : 031f68fc
B1 : 00000000 L1 : 00000000 M1 : 00000000 I1 : 00000000
B2 : 00000000 L2 : 00000000 M2 : 00000000 I2 : 00000000
B3 : 00000000 L3 : 00000000 M3 : 00000000 I3 : 00000000
A0.w: 00000008 A0.x: 00000000 A1.w: 00000008 A1.x: 00000000
USP : 031b20e0 ASTAT: 02003025
Hardware Trace:
0 Target : <0x00004a74> { _trap_c + 0x0 }
Source : <0xffa005aa> { _exception_to_level5 + 0x9e } CALL pcrel
1 Target : <0xffa0050c> { _exception_to_level5 + 0x0 }
Source : <0xffa003de> { _bfin_return_from_exception + 0x6 } RTX
2 Target : <0xffa003d8> { _bfin_return_from_exception + 0x0 }
Source : <0xffa00466> { _ex_trap_c + 0x66 } JUMP.S
3 Target : <0xffa00400> { _ex_trap_c + 0x0 }
Source : <0xffa00636> { _trap + 0x2a } JUMP (P4)
4 Target : <0xffa0060c> { _trap + 0x0 }
Source : <0x006f5cb2> [ /usb + 0x1cb2 ] 0xb9fa
5 Target : <0x006f5ca8> [ /usb + 0x1ca8 ]
Source : <0x031db844> [ /lib/libc.so.0 + 0x1b844 ] RTS
6 Target : <0x031db840> [ /lib/libc.so.0 + 0x1b840 ]
Source : <0x031dd208> [ /lib/libc.so.0 + 0x1d208 ] RTS
7 Target : <0x031dd200> [ /lib/libc.so.0 + 0x1d200 ]
Source : <0x006b4632> [ /lib/libpthread.so.0 + 0x4632 ] RTS
8 Target : <0x006b462c> [ /lib/libpthread.so.0 + 0x462c ]
Source : <0x006b461a> [ /lib/libpthread.so.0 + 0x461a ] IF !CC JUMP
9 Target : <0x006b4606> [ /lib/libpthread.so.0 + 0x4606 ]
Source : <0x006b45e2> [ /lib/libpthread.so.0 + 0x45e2 ] JUMP.S
10 Target : <0x006b45e2> [ /lib/libpthread.so.0 + 0x45e2 ]
Source : <0x006b608e> [ /lib/libpthread.so.0 + 0x608e ] RTS
11 Target : <0x006b6088> [ /lib/libpthread.so.0 + 0x6088 ]
Source : <0x006b6162> [ /lib/libpthread.so.0 + 0x6162 ] JUMP.S
12 Target : <0x006b6160> [ /lib/libpthread.so.0 + 0x6160 ]
Source : <0x006b85d2> [ /lib/libpthread.so.0 + 0x85d2 ] RTS
13 Target : <0x006b85c6> [ /lib/libpthread.so.0 + 0x85c6 ]
Source : <0x00000428> /* Maybe fixed code section */ RTS
14 Target : <0x00000420> /* Maybe fixed code section */
Source : <0x006b85c4> [ /lib/libpthread.so.0 + 0x85c4 ] CALL (P5)
15 Target : <0x006b85c0> [ /lib/libpthread.so.0 + 0x85c0 ]
Source : <0x006b8566> [ /lib/libpthread.so.0 + 0x8566 ] IF !CC JUMP
Userspace Stack
Stack info:
SP: [0x031b20e0] <0x031b20e0> [ usb + 0x20e0 ]
Memory from 0x031b20e0 to 031b3000
031b20e0:[03185548] 00000200 00000000 00000000 000000be 006f3168 00000000 031b2118
031b2100: 031b2118 00000000 001b3d50 00000000 031b3d50 <006f5f92> 03185548 00000030
031b2120: 031b2148 0000032a 006f2f7c 006f2f97 006f3168 00000000 006f3010 006f2fb0
031b2140: 1804321a 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2160: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2180: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b21a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b21c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b21e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2200: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2220: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2240: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2260: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2280: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b22a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b22c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b22e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2300: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2320: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2340: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2360: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2380: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b23a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b23c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b23e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2400: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2420: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2440: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2460: 00000000 00000000 00000000 00000000 000044be 00000000 00000000 00000000
031b2480: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b24a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b24c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b24e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2500: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2520: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2540: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2560: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2580: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b25a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b25c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b25e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2600: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2620: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2640: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2660: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2680: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b26a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b26c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b26e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2700: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2720: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2740: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2760: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2780: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b27a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b27c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b27e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2800: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2820: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2840: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2860: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2880: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b28a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b28c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b28e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2900: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2920: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2940: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2960: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2980: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b29a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b29c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b29e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2a00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2a20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2a40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2a60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2a80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2aa0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2ac0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2ae0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2b00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2b20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2b40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2b60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2b80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2ba0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2bc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2be0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2c00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2c20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2c40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2c60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2c80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2ca0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2cc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2ce0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2d00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2d20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2d40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2d60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2d80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2da0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2dc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2de0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2e00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2e20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2e40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2e60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2e80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2ea0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2ec0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2ee0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2f00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2f20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2f40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2f60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2f80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2fa0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b2fe0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
031b3000: 00000000
Return addresses in stack:
address : <0x006f5f92> [ /usb + 0x1f92 ]
808, expected 00 got be
0:SIGSEGV
root:/>
--
Follow-ups
--- Sonic Zhang 2009-04-07 04:02:59
Although still hang on bf527 v0.2, there is no kernel dump any more.
/064 -t7rc/testusb -D /proc/bus/usb/005
unknown speed /proc/bus/usb/005/064
timeout: testusb t7
Last passed test result is not found!!
Case 15 ...FAIL
--- Cliff Cai 2009-05-18 04:15:21
This bug is the same with bug #4924.The problem exists in the
empty_out_buf()usb.c.When one of the read data is not equal to expected
value,the following code in empty_out_buf() is badly wrong:
for (i = 0, data = 0; i < nbytes; i++, data++) {
if (0 == (i % 16))
fprintf (stderr, "%4d:", i);
fprintf (stderr, " %02x", *data);
if (15 == (i % 16))
fprintf (stderr, "\n");
}
data is a pointer,"data = 0",should be "data = buf".
Cliff
--- Vivi Li 2009-06-17 01:53:51
It's OK now. Close it.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
No Files Were Found