[#6685] kernel ops without APP_STACK_L1
Submitted By: Scott Jiang
Open Date
2011-07-12 23:28:32
Priority:
Medium Assignee:
steven miao
Status:
Open Fixed In Release:
N/A
Found In Release:
2011R1 Release:
Category:
N/A Board:
N/A
Processor:
BF561 Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Not reproducible
Uboot version or rev.:
Toolchain version or rev.:
ADI-2010R1-RC4
App binary format:
N/A
Summary: kernel ops without APP_STACK_L1
Details:
if we don't choose Support locating application stack in L1 Scratch Memory.*APP_STACK_L1.
ffmpeg -f video4linux2 -r 10.0 -s 720x480 -i /dev/video0 -qscale 6 -f mjpeg udp:$serverip:1234
NULL pointer access
Kernel OOPS in progress
Deferred Exception context
CURRENT PROCESS:
COMM=ffmpeg PID=177 CPU=0
TEXT = 0x02fe0000-0x02ff4ea0 DATA = 0x02fc8ea0-0x02fce44c
BSS = 0x02fce44c-0x00ba0000 USER-STACK = 0x00bbfe20
return address: [0x000e5de0]; contents of:
0x000e5dc0: 3016 4f41 c402 4209 e100 3830 42c9 e302
0x000e5dd0: 4cc3 2f94 6007 2ee9 05fb e800 0005 3238
0x000e5de0: [ad7c] e3f9 889d e422 006d e522 0037 0c0a
0x000e5df0: 1863 0000 0000 0000 ad52 0c42 1865 3044
ADSP-BF561-0.3(Detected 0.5) 600(MHz CCLK) 100(MHz SCLK) (mpu off)
Linux version 2.6.39.3-ADI-2011R1-pre-00148-g21c11e2 (scott@scott-desktop) (gcc version 4.3.5 (ADI-2010R1-RC4) ) #432 Wed Jul 13 12:00:02 EDT 2011
SEQUENCER STATUS: Not tainted
SEQSTAT: 00000027 IPEND: 8008 IMASK: ffff SYSCFG: 0006
EXCAUSE : 0x27
physical IVG3 asserted : <0x0000a784> { _trap + 0x0 }
physical IVG15 asserted : <0x0000b068> { _evt_system_call + 0x0 }
logical irq 6 mapped : <0x00007130> { _bfin_coretmr_interrupt + 0x0 }
logical irq 11 mapped : <0x000d6ce4> { _ppi_irq_err + 0x0 }
logical irq 18 mapped : <0x000d70e0> { _bcap_isr + 0x0 }
logical irq 35 mapped : <0x000acf44> { _bfin_serial_dma_rx_int + 0x0 }
logical irq 36 mapped : <0x000acc8c> { _bfin_serial_dma_tx_int + 0x0 }
logical irq 82 mapped : <0x000c50f8> { _smc_interrupt + 0x0 }
RETE: <0x00000000> /* Maybe null pointer? */
RETN: <0x02eb7c54> /* kernel dynamic memory (maybe user-space) */
RETX: <0x00000480> /* Maybe fixed code section */
RETS: <0x001000fe> { _ip_finish_output + 0xd2 }
PC : <0x000e5de0> { _dev_queue_xmit + 0x8 }
DCPLB_FAULT_ADDR: <0x00000014> /* Maybe null pointer? */
ICPLB_FAULT_ADDR: <0x000e5de0> { _dev_queue_xmit + 0x8 }
PROCESSOR STATE:
R0 : 00000000 R1 : 0000000e R2 : 00000010 R3 : 00000000
R4 : 000005c8 R5 : 6416630a R6 : 000005c8 R7 : 02fc5d80
P0 : 02cb2010 P1 : 02c9b284 P2 : 000e5dd8 P3 : 02044440
P4 : 02cb2024 P5 : 001004c0 FP : 00000000 SP : 02eb7b78
LB0: 00099576 LT0: 00099576 LC0: 00000000
LB1: 0009f8ba LT1: 0009f8b0 LC1: 00000000
B0 : 00000001 L0 : 00000000 M0 : 01010101 I0 : 02cb2024
B1 : 00000020 L1 : 00000000 M1 : 00000010 I1 : 02c9b284
B2 : 0000ff00 L2 : 00000000 M2 : 00000080 I2 : 00000020
B3 : 00000000 L3 : 00000000 M3 : 00bbe84c I3 : 10030e0b
A0.w: 00000000 A0.x: 00000000 A1.w: 00000000 A1.x: 00000000
USP : 00bbe1c0 ASTAT: 02003004
Hardware Trace:
0 Target : <0x000043d4> { _trap_c + 0x0 }
Source : <0x0000a718> { _exception_to_level5 + 0xa4 } JUMP.L
1 Target : <0x0000a674> { _exception_to_level5 + 0x0 }
Source : <0x0000a528> { _bfin_return_from_exception + 0x20 } RTX
2 Target : <0x0000a508> { _bfin_return_from_exception + 0x0 }
Source : <0x0000a5cc> { _ex_trap_c + 0x74 } JUMP.S
3 Target : <0x0000a558> { _ex_trap_c + 0x0 }
Source : <0x0000a430> { _ex_workaround_261 + 0x1c } JUMP.S
4 Target : <0x0000a414> { _ex_workaround_261 + 0x0 }
Source : <0x0000a7ec> { _trap + 0x68 } JUMP (P4)
5 Target : <0x0000a7a2> { _trap + 0x1e }
Source : <0x0000a79e> { _trap + 0x1a } IF CC JUMP pcrel
6 Target : <0x0000a784> { _trap + 0x0 }
FAULT : <0x000e5de0> { _dev_queue_xmit + 0x8 } R4 = W[P7 + 5](X)
Source : <0x0000a528> { _bfin_return_from_exception + 0x20 } RTX
7 Target : <0x0000a508> { _bfin_return_from_exception + 0x0 }
Source : <0x0000a426> { _ex_workaround_261 + 0x12 } IF !CC JUMP pcrel
8 Target : <0x0000a414> { _ex_workaround_261 + 0x0 }
Source : <0x0000a7ec> { _trap + 0x68 } JUMP (P4)
9 Target : <0x0000a7a2> { _trap + 0x1e }
Source : <0x0000a79e> { _trap + 0x1a } IF CC JUMP pcrel
10 Target : <0x0000a784> { _trap + 0x0 }
Source : <0x000e5dde> { _dev_queue_xmit + 0x6 } 0x3238
11 Target : <0x000e5dd8> { _dev_queue_xmit + 0x0 }
Source : <0x0010010a> { _ip_finish_output + 0xde } JUMP (P2)
12 Target : <0x00100108> { _ip_finish_output + 0xdc }
Source : <0x0000acea> { __common_int_entry + 0xda } RTI
13 Target : <0x0000ac88> { __common_int_entry + 0x78 }
Source : <0x0000aac4> { _return_from_int + 0x58 } RTS
14 Target : <0x0000aac4> { _return_from_int + 0x58 }
Source : <0x0000aa9a> { _return_from_int + 0x2e } IF !CC JUMP pcrel
15 Target : <0x0000aa6c> { _return_from_int + 0x0 }
Source : <0x0000ac84> { __common_int_entry + 0x74 } JUMP.L
Kernel Stack
Stack info:
SP: [0x02eb7f24] <0x02eb7f24> /* kernel dynamic memory (maybe user-space) */
Memory from 0x02eb7f20 to 02eb8000
02eb7f20: 00000010 [025ef274] 00008000 00000000 00000000 02eb8000 025ef274 025ef274
02eb7f40: 026803b2 0000b0cc 02002000 0261bef7 025e0483 0261bef6 025e0482 00000000
02eb7f60: 00000000 00000000 00000000 00000000 00000000 00000000 0000ff00 00000020
02eb7f80: 00000001 00000000 00000000 00000000 00000000 00bbe84c 00000080 00000010
02eb7fa0: 01010101 10030e0b 00000020 0040022c 00980b90 00bbe1c0 00bbe1cc 00a9c220
02eb7fc0: 00a9c980 00af1628 00a9c1e0 025ef260 00000146 000005c0 00ae7ee8 00000010
02eb7fe0: 00a9c238 00000000 000005c0 00a9c980 00000004 00000004 00000146 00000006
Return addresses in stack:
Modules linked in:
Kernel panic - not syncing: Kernel exception
Hardware Trace:
Stack info:
SP: [0x02eb7a80] <0x02eb7a80> /* kernel dynamic memory (maybe user-space) */
FP: (0x02eb7ee8)
Memory from 0x02eb7a80 to 02eb8000
02eb7a80:[0015f308] 0012f620 02eb7b78 0015f308 001954bb 001954bb 001954bb 02eb7ac8
02eb7aa0: 00000000 000048a4 02eb7b78 ffe02014 02044440 00008008 0000000b 00000027
02eb7ac0: 00000013 02eb7b78 0000003f ffffffff 33f9e0da 00000000 0003000b 0000005c
02eb7ae0: 001a5154 02eb6000 0019ace8 0019aae8 0019a8e8 0019a6e8 02eb7af8 02eb7af8
02eb7b00: 0000000a <00016ffc> 00199dc0 00000004 02eb6000 00000001 00000004 00000100
02eb7b20: 00017008 000db2c4 6416630a 000362c0 001a5154 02c9b270 02044440 6416630a
02eb7b40: 00004958 001aa330 02c9b270 02044440 00000006 0000a71c 00192000 00008008
02eb7b60: 00000027 6416630a 000005c8 0000ac82 ffc00014 00000480 00000480 00008008
02eb7b80: 00000027 00000000 02eb7c54 00000480 000e5de0 001000fe 00000000 02003004
02eb7ba0: 0009f8ba 00099576 0009f8b0 00099576 00000000 00000000 00000000 00000000
02eb7bc0: 00000000 00000000 00000000 0000ff00 00000020 00000001 00000000 00000000
02eb7be0: 00000000 00000000 00bbe84c 00000080 00000010 01010101 10030e0b 00000020
02eb7c00: 02c9b284 02cb2024 00bbe1c0 00000000 001004c0 02cb2024 02044440 000e5dd8
02eb7c20: 02c9b284 02cb2010 02fc5d80 000005c8 6416630a 000005c8 00000000 00000010
02eb7c40: 0000000e 00000000 00000000 02cb2010 00000006 00000000 00000000 02cb2010
02eb7c60: 00000006 001004c0 6416630a 001000fe 001004c0 02cb2024 02044440 02fc5d80
02eb7c80: 00000000 00000000 00000000 00000000 0011812e 00000000 00000000 00000000
02eb7ca0: 02eb7ca0 000ff6a4 00119ac0 02fc5d80 02eb7ec0 00000000 000005c0 fffff000
02eb7cc0: 02044440 6416630a e316630a 0a6316e3 00000001 000005c8 00000008 02eb7d30
02eb7ce0: 02eb7d40 00000000 00000000 02eb7d30 00000000 6416630a 6416630a 00000000
02eb7d00: 02ebd204 00b7e200 00000000 02fc5dec 00000000 00000000 00000000 04110000
02eb7d20: 00000000 6416630a 6416630a d204dca6 6416630a 00000000 00000000 00000000
02eb7d40: 00000000 00bbe1cc <000d7ebe> 0203a060 02eb7e40 00000010 00000000 00000080
02eb7d60: 00a9c238 02eb7e34 02eb6000 001af678 00000000 000005c0 00000020 00000004
02eb7d80: 00000000 00000001 ffffffff 00000000 00000000 00000000 00000000 00000000
02eb7da0: 020542e0 00000000 00000000 0000ffff ffffffe0 02eb7de8 02eb7db4 00000000
02eb7dc0: 001af678 001aec24 00000000 0003e638 00000000 001af674 001af678 00000000
02eb7de0: 000000d0 00000001 00000004 000200d0 00000000 000005c0 0203a060 00000001
02eb7e00: 00000000 02eb7ec0 00000000 000d85d2 00000010 02eb7e40 00000000 001a48c4
02eb7e20: 0000005c 000d919a 000d91cc 000005c0 00000000 0000005c ffffffc0 ffe02104
02eb7e40: d2040002 6416630a 00000000 00000000 0000ffff 00000000 000482e8 00a99cfc
02eb7e60: 0000ffff 00000000 00048b1e 0019b754 00a99cfc 00a9858c 00980000 00000020
02eb7e80: 00b0f000 00980000 0019aae8 00000005 0019a6e8 00000000 00000000 00000000
02eb7ea0: 00000011 00011000 00000011 02eb6000 0000ffff 00bbe160 00049024 00000000
02eb7ec0: 02eb7e40 00000010 02eb7edc 00000001 00000000 00000000 00000000 00a9c980
02eb7ee0: 000005c0 00000000 (00000000)<0000a926> 000d9120 00000146 00af1628 00000000
02eb7f00: ffffe000 00000010 00a9c238 ffc00014 ff26dadb 00000000 00000000 00a9c238
02eb7f20: 00000010 025ef274 00008000 00000000 00000000 02eb8000 025ef274 025ef274
02eb7f40: 026803b2 0000b0cc 02002000 0261bef7 025e0483 0261bef6 025e0482 00000000
02eb7f60: 00000000 00000000 00000000 00000000 00000000 00000000 0000ff00 00000020
02eb7f80: 00000001 00000000 00000000 00000000 00000000 00bbe84c 00000080 00000010
02eb7fa0: 01010101 10030e0b 00000020 0040022c 00980b90 00bbe1c0 00bbe1cc 00a9c220
02eb7fc0: 00a9c980 00af1628 00a9c1e0 025ef260 00000146 000005c0 00ae7ee8 00000010
02eb7fe0: 00a9c238 00000000 000005c0 00a9c980 00000004 00000004 00000146 00000006
Return addresses in stack:
address : <0x00016ffc> { ___do_softirq + 0x7c }
address : <0x000d7ebe> { _sock_sendmsg + 0x72 }
frame 1 : <0x0000a926> { _system_call + 0x6a }
Follow-ups
--- steven miao 2011-07-29 01:36:19
not reproducible
--- Vivi Li 2011-08-11 03:50:39
I can see the crash when I test VS6624 on bf537-stamp.
I first run ffmpeg and generate file camera.avi and then rcp it to local host,
crash happens at this time.
Here CONFIG_APP_STACK_L1 is set to no and config files are attached.
Bellow is the log:
--
root:/> modprobe vs6624
Linux video capture interface: v2.00
root:/>
root:/> modprobe videobuf2_dma_contig; sleep 3; modprobe bfin_video_capture
ppi probe success
bfin_capture bfin_capture.0: v4l2 device registered
bfin_capture bfin_capture.0: video device registered as: video0
vs6624 0-0010: chip found @ 0x20 (i2c-bfin-twi)
bfin_capture bfin_capture.0: v4l2 sub device registered
root:/>
root:/> ffmpeg -f video4linux2 -s 320x240 -pix_fmt uyvy422 -r 25 -i
/dev/video0 -qscale 6 -vcodec mpeg2video -f avi /var/camera.avi
FFmpeg version SVN-r10295, Copyright (c) 2000-2009 Fabrice Bellard, et al.
built on Aug 10 2011 22:14:53 with gcc 4.3.5
configuration: --prefix=/usr
--source-path=/home/test/work/cruise/checkouts/uclinux-dist/lib/ffmpeg/build/../ffmpeg-svn-20-
libavutil 50. 3. 0 / 50. 3. 0
libavcodec bfin_capture bfin_capture.0: dma_alloc_coherent of size 153600
failed
52.37. 0 / 52.37. 0
libavformat 52.39. 2 / 52.39. 2
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
[video4linux2 @ 0x2039010][3]Capabilities: 4000001
Input #0, video4linux2, from '/dev/video0':
Duration: N/A, start: 166.982705, bitrate: 30720 kb/s
Stream #0.0: Video: rawvideo, uyvy422, 320x240, 30720 kb/s, 25 tbr, 1000k
tbn, 25 tbc
Output #0, avi, to '/var/camera.avi':
Stream #0.0: Video: mpeg2video, yuv420p, 320x240, q=2-31, 200 kb/s, 25 tbn,
25 tbc
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
frame= 455 fps= 25 q=6.0 Lsize= 2306kB time=18.16 bitrate=1040.1kbits/s
video:2289kB audio:0kB global headers:0kB muxing overhead 0.718224%
Received signal 2: terminating.
(On host PC, run command `rcp root@10.100.4.50:/var/camera.avi .`)
root:/>
NULL pointer access
Kernel OOPS in progress
Deferred Exception context
CURRENT PROCESS:
COMM=rshd PID=186 CPU=0
TEXT = 0x02600000-0x02603d68 DATA = 0x00abed68-0x00abf450
BSS = 0x00abf450-0x02fe0000 USER-STACK = 0x02fffe70
return address: [0x00100116]; contents of:
0x001000f0: 0234 e6a0 0237 e418 0013 0830 185d e14a
0x00100100: 0019 e14d 0200 0020 9174 e10d 0270 9110
0x00100110: 912e 0c00 1c48 [e420] 00c5 0c00 1444 e422
0x00100120: 00b0 5256 e420 0086 0a01 1c3d e12a 0070
ADSP-BF537-0.2 500(MHz CCLK) 125(MHz SCLK) (mpu off)
Linux version 3.0.0-ADI-2011R1-pre-svn10049
(test@uclinux57-usb1761-vs6624-ad1371) (gcc version 4.3.5 (ADI-trunk/svn-5013)
)1
SEQUENCER STATUS: Not tainted
SEQSTAT: 00000027 IPEND: 8008 IMASK: ffff SYSCFG: 0006
EXCAUSE : 0x27
physical IVG3 asserted : <0x0000a168> { _trap + 0x0 }
physical IVG15 asserted : <0x0000aa4c> { _evt_system_call + 0x0 }
logical irq 6 mapped : <0x00006c58> { _bfin_coretmr_interrupt + 0x0
}
logical irq 10 mapped : <0x000c5284> { _bfin_rtc_interrupt + 0x0 }
logical irq 16 mapped : <0x000c712c> { _bfin_twi_interrupt_entry +
0x0 }
logical irq 18 mapped : <0x000ae930> { _bfin_serial_dma_rx_int + 0x0
}
logical irq 19 mapped : <0x000ae688> { _bfin_serial_dma_tx_int + 0x0
}
logical irq 106 mapped : <0x000c2908> { _bfin_mac_interrupt + 0x0 }
RETE: <0x00000000> /* Maybe null pointer? */
RETN: <0x00b11c6c> /* kernel dynamic memory (maybe user-space) */
RETX: <0x00000480> /* Maybe fixed code section */
RETS: <0x001000bc> { _tcp_transmit_skb + 0x294 }
PC : <0x00100116> { _tcp_transmit_skb + 0x2ee }
DCPLB_FAULT_ADDR: <0x00000334> /* Maybe null pointer? */
ICPLB_FAULT_ADDR: <0x00100116> { _tcp_transmit_skb + 0x2ee }
PROCESSOR STATE:
R0 : 08080808 R1 : 0000000b R2 : 00000001 R3 : 00000020
R4 : 00b11c7c R5 : 00000001 R6 : 00000000 R7 : 00003890
P0 : 0257e898 P1 : 0257e8b8 P2 : 0019ee60 P3 : 02699ec0
P4 : 00000020 P5 : 02000270 FP : 02699ed8 SP : 00b11b90
LB0: 0009a9f0 LT0: 0009a9ee LC0: 00000000
LB1: 000a130a LT1: 000a1300 LC1: 00000000
B0 : 00000137 L0 : 00000000 M0 : fffffffc I0 : 0257e8b8
B1 : 000000c0 L1 : 00000000 M1 : 00000001 I1 : 0207c774
B2 : 7ffff000 L2 : 00000000 M2 : 00001802 I2 : 00000003
B3 : 00000000 L3 : 00000000 M3 : 0000005b I3 : 00000007
A0.w: 0000323d A0.x: 00000000 A1.w: 0000006f A1.x: 00000000
USP : 02fff96c ASTAT: 02003044
Hardware Trace:
0 Target : <0x000042b4> { _trap_c + 0x0 }
Source : <0x0000a0fc> { _exception_to_level5 + 0xa4 } JUMP.L
1 Target : <0x0000a058> { _exception_to_level5 + 0x0 }
Source : <0x00009f0c> { _bfin_return_from_exception + 0x20 } RTX
2 Target : <0x00009eec> { _bfin_return_from_exception + 0x0 }
Source : <0x00009fb0> { _ex_trap_c + 0x74 } JUMP.S
3 Target : <0x00009f3c> { _ex_trap_c + 0x0 }
Source : <0x00009e14> { _ex_workaround_261 + 0x1c } JUMP.S
4 Target : <0x00009df8> { _ex_workaround_261 + 0x0 }
Source : <0x0000a1d0> { _trap + 0x68 } JUMP (P4)
5 Target : <0x0000a186> { _trap + 0x1e }
Source : <0x0000a182> { _trap + 0x1a } IF CC JUMP pcrel
6 Target : <0x0000a168> { _trap + 0x0 }
FAULT : <0x00100116> { _tcp_transmit_skb + 0x2ee } R0 = [P4 +
0x14]
Source : <0x00009f0c> { _bfin_return_from_exception + 0x20 } RTX
7 Target : <0x00009eec> { _bfin_return_from_exception + 0x0 }
Source : <0x00009e0a> { _ex_workaround_261 + 0x12 } IF !CC JUMP
pcrel
8 Target : <0x00009df8> { _ex_workaround_261 + 0x0 }
Source : <0x0000a1d0> { _trap + 0x68 } JUMP (P4)
9 Target : <0x0000a186> { _trap + 0x1e }
Source : <0x0000a182> { _trap + 0x1a } IF CC JUMP pcrel
10 Target : <0x0000a168> { _trap + 0x0 }
Source : <0x00100114> { _tcp_transmit_skb + 0x2ec } IF CC JUMP pcrel
(BP)
11 Target : <0x00100108> { _tcp_transmit_skb + 0x2e0 }
Source : <0x0000a6ce> { __common_int_entry + 0xda } RTI
12 Target : <0x0000a66c> { __common_int_entry + 0x78 }
Source : <0x0000a4a8> { _return_from_int + 0x58 } RTS
13 Target : <0x0000a4a8> { _return_from_int + 0x58 }
Source : <0x0000a47e> { _return_from_int + 0x2e } IF !CC JUMP pcrel
14 Target : <0x0000a450> { _return_from_int + 0x0 }
Source : <0x0000a668> { __common_int_entry + 0x74 } JUMP.L
15 Target : <0x0000a666> { __common_int_entry + 0x72 }
Source : <0x0000482a> { _asm_do_IRQ + 0x6a } RTS
Kernel Stack
Stack info:
SP: [0x00b11f24] <0x00b11f24> /* kernel dynamic memory (maybe
user-space) */
Memory from 0x00b11f20 to 00b12000
00b11f20: 0207ed5f [02e0e88e] 00008000 00000000 00000000 00b12000 02e0e88e
02e0e88e
00b11f40: 02601f2e 0000aab0 02001044 02e1ba7b 025945bf 02e1ba7a 025945be
00000000
00b11f60: 00000000 0000008b 00000000 0000008b 00000000 00000000 7ffff000
000000c0
00b11f80: 00000137 00000000 00000000 00000000 00000000 0000005b 00001802
00000001
00b11fa0: fffffffc 00000007 00000003 0207c774 02fff7b1 02fff96c 02fff978
00000000
00b11fc0: 02fffcd0 0207d1c8 02e7f770 02e0e884 00000004 00000000 00000000
0207ed5f
00b11fe0: ffffffb4 0000e884 00000001 026039dc 00000002 00000002 00000004
00000006
Return addresses in stack:
Modules linked in: bfin_video_capture videobuf2_core videobuf2_dma_contig
videobuf2_memops vs6624 v4l2_common videodev
Kernel panic - not syncing: Kernel exception
Hardware Trace:
Stack info:
SP: [0x00b11a98] <0x00b11a98> /* kernel dynamic memory (maybe
user-space) */
FP: (0x00b11df4)
Memory from 0x00b11a90 to 00b12000
00b11a90: 00b11a98 00000013 [001502dc] 00120b38 00b11b90 001502dc 001823db
001823db
00b11ab0: 001823db 00b11ae0 02699ed8 00004770 00b11b90 ffe02014 02699ec0
00008008
00b11ad0: 0000000b 00000027 00000013 00b11b90 0000003f ffffffff 0019138c
00b10000
00b11af0: 0003000b 00187a0c 0018780c 0018760c 00b11b00 00b11b00 0000000a
<00016f84>
00b11b10: 00186ce0 00000004 00b10000 00000001 00000004 00016f90 00000001
02f70040
00b11b30: 02699ec0 00000006 00000000 00000001 00b11c7c 02699ed8 00004822
001962cc
00b11b50: 02f70040 02699ec0 00000006 00000000 00000001 00b11c7c 00b96248
0000a100
00b11b70: 0017f000 00008008 00000027 00000001 00b11c7c 00000000 00000000
00000480
00b11b90: 00000480 00008008 00000027 00000000 00b11c6c 00000480 00100116
<001000bc>
00b11bb0: 08080808 02003044 000a130a 0009a9f0 000a1300 0009a9ee 00000000
00000000
00b11bd0: 0000006f 00000000 0000323d 00000000 00000000 7ffff000 000000c0
00000137
00b11bf0: 00000000 00000000 00000000 00000000 0000005b 00001802 00000001
fffffffc
00b11c10: 00000007 00000003 0207c774 0257e8b8 02fff96c 02699ed8 02000270
00000020
00b11c30: 02699ec0 0019ee60 0257e8b8 0257e898 00003890 00000000 00000001
00b11c7c
00b11c50: 00000020 00000001 0000000b 08080808 08080808 0257e898 00000006
00000020
00b11c70: 00000001 02007860 00b11c90 00000002 00000000 ffffaae1 10ac4149
00000000
00b11c90: 00000000 02699e38 00102040 02699e20 02f70040 00001700 000005a8
00000001
00b11cb0: 00000001 c7361e91 000000d0 00b11d84 0004bea6 00000020 000000d0
01017120
00b11cd0: 00000000 0000000a 02f700c0 00000660 02003ce0 00b11cfc 00001052
0257e8b8
00b11cf0: 001026ce 02f70040 00b11e94 02f70040 00000000 00000001 00000000
00000000
00b11d10: 00000000 000005a8 00000000 00000000 00000020 000f7492 02699e20
00bab006
00b11d30: 00b11d30 00b11d30 00000000 00b11d78 02c49850 0108d2ba 00b6c940
00000000
00b11d50: 000005a8 00000000 00000001 026039dd 000005a8 0003c254 00b6c940
02f700c0
00b11d70: 00000000 0000003f 00000000 7fffffff 000005a8 02fff978
<000c827c> 00b11e24
00b11d90: 00b11e94 00b11ef0 00000005 00b11e94 00b11dd8 ffffffb4 0247fe60
00b11e90
00b11db0: 00000004 00000001 00000000 91827364 00b11dc0 00000001 00b12e60
00b11dc8
00b11dd0: 00000000 00b11dd8 00000000 00000000 00b11e94 00000001 00000000
00000000
00b11df0: 00000000 (00b11e24)<0004de72> 00b11e24 02c39540 00b11e94
00000001 026039dc
00b11e10: 00000001 00000001 00000000 00000000 00000000 (00000000) 00000000
00000000
00b11e30: 00000001 ffffffff 02c39540 00000000 00000000 00000000 00000000
0206d040
00b11e50: 00000000 00000000 00000000 00000000 00b11db8 00000100 00000001
00000100
00b11e70: 00000001 00000000 00000000 02def494 0004f08e 0247fe20 02c49850
02c49850
00b11e90: 0247fe28 026039dc 00000001 0004e6f0 02c39540 00000004 0207d1c8
00b11ef0
00b11eb0: 0004bf32 00000000 02fff8b4 00b11ef0 0002a5ea 02019ae0 0004e79c
02c39540
00b11ed0: 00000004 026039dc 00000001 0207ed5f ffffffff 00000000 00000000
00b11ef0
00b11ef0: 00000000 00000000 00000000 <0000a30a> 0004e76c 00000000
ffffe000 02e02308
00b11f10: 0000bcc0 0000fffe 0000e884 ffffffb4 0207ed5f 02e0e88e 00008000
00000000
00b11f30: 00000000 00b12000 02e0e88e 02e0e88e 02601f2e 0000aab0 02001044
02e1ba7b
00b11f50: 025945bf 02e1ba7a 025945be 00000000 00000000 0000008b 00000000
0000008b
00b11f70: 00000000 00000000 7ffff000 000000c0 00000137 00000000 00000000
00000000
00b11f90: 00000000 0000005b 00001802 00000001 fffffffc 00000007 00000003
0207c774
00b11fb0: 02fff7b1 02fff96c 02fff978 00000000 02fffcd0 0207d1c8 02e7f770
02e0e884
00b11fd0: 00000004 00000000 00000000 0207ed5f ffffffb4 0000e884 00000001
026039dc
00b11ff0: 00000002 00000002 00000004 00000006
Return addresses in stack:
address : <0x00016f84> { ___do_softirq + 0x7c }
address : <0x001000bc> { _tcp_transmit_skb + 0x294 }
address : <0x000c827c> { _sock_aio_write + 0xa0 }
frame 1 : <0x0004de72> { _do_sync_write + 0x8e }
address : <0x0000a30a> { _system_call + 0x6a }
--
After I set CONFIG_APP_STACK_L1 is set to yes, it crash again when rcp.
Bellow is the log:
--
root:/> modprobe vs6624
Linux video capture interface: v2.00
root:/>
root:/> modprobe videobuf2_dma_contig; sleep 3; modprobe bfin_video_capture
ppi probe success
bfin_capture bfin_capture.0: v4l2 device registered
bfin_capture bfin_capture.0: video device registered as: video0
vs6624 0-0010: chip found @ 0x20 (i2c-bfin-twi)
bfin_capture bfin_capture.0: v4l2 sub device registered
root:/>
root:/> ffmpeg -f video4linux2 -s 320x240 -pix_fmt uyvy422 -r 25 -i
/dev/video0
-qscale 6 -vcodec mpeg2video -f avi /var/camera.avi
FFmpeg version SVN-r10295, Copyright (c) 2000-2009 Fabrice Bellard, et al.
built on Aug 10 2011 22:14:53 with gcc 4.3.5
configuration: --prefix=/usr
--source-path=/home/test/work/crbise/checkouts/uclinux-dist/lib/ffmpeg/build/../ffmpeg-svn-20-
libavutil 50. 3.fin_capture bfin_capture.0: dma_alloc_coherent of size
153600 failed
0 / 50. 3. 0
libavcodec 52.37. 0 / 52.37. 0
libavformat 52.39. 2 / 52.39. 2
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
[video4linux2 @ 0x266cfa0][3]Capabilities: 4000001
Input #0, video4linux2, from '/dev/video0':
Duration: N/A, start: 47.595084, bitrate: 30720 kb/s
Stream #0.0: Video: rawvideo, uyvy422, 320x240, 30720 kb/s, 25 tbr, 1000k
tbn, 25 tbc
Output #0, avi, to '/var/camera.avi':
Stream #0.0: Video: mpeg2video, yuv420p, 320x240, q=2-31, 200 kb/s, 25 tbn,
25 tbc
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
frame= 79 fps= 25 q=6.0 Lsize= 76kB time=3.12 bitrate= 199.2kbits/s
video:68kB audio:0kB global headers:0kB muxing overhead 10.871303%
Received signal 2: terminating.
(Start rcp on host PC)
root:/> NULL pointer access
Kernel OOPS in progress
Deferred Exception context
No Valid process in current context
return address: [0x000ffc06]; contents of:
0x000ffbe0: 6000 0127 05b4 0010 0000 e522 0023 a490
0x000ffbf0: 0c08 1792 600a 2fa8 3208 0568 e12a 0048
0x000ffc00: 0167 6fa6 5a91 [9110] e14a 0019 e10a 9158
0x000ffc10: e40b 0018 9111 e54e 0123 5283 0d01 1860
ADSP-BF537-0.2 500(MHz CCLK) 125(MHz SCLK) (mpu off)
Linux version 3.0.0-ADI-2011R1-pre-svn10049
(test@uclinux57-usb1761-vs6624-ad1371) (gcc version 4.3.5 (ADI-trunk/svn-5013)
)1
SEQUENCER STATUS: Not tainted
SEQSTAT: 00000027 IPEND: c008 IMASK: ffff SYSCFG: 0006
EXCAUSE : 0x27
physical IVG3 asserted : <0x0000a198> { _trap + 0x0 }
physical IVG14 asserted : <0x0000a4f0> { _evt_evt14 + 0x0 }
physical IVG15 asserted : <0x0000aa7c> { _evt_system_call + 0x0 }
logical irq 6 mapped : <0x00006c88> { _bfin_coretmr_interrupt + 0x0
}
logical irq 10 mapped : <0x000c53d8> { _bfin_rtc_interrupt + 0x0 }
logical irq 16 mapped : <0x000c7280> { _bfin_twi_interrupt_entry +
0x0 }
logical irq 18 mapped : <0x000aea84> { _bfin_serial_dma_rx_int + 0x0
}
logical irq 19 mapped : <0x000ae7dc> { _bfin_serial_dma_tx_int + 0x0
}
logical irq 106 mapped : <0x000c2a5c> { _bfin_mac_interrupt + 0x0 }
RETE: <0x00000000> /* Maybe null pointer? */
RETN: <0x0019dc8c> /* kernel dynamic memory (maybe user-space) */
RETX: <0x00000480> /* Maybe fixed code section */
RETS: <0x0010010c> { _tcp_transmit_skb + 0x190 }
PC : <0x000ffc06> { ___tcp_select_window + 0xe }
DCPLB_FAULT_ADDR: <0x00000048> /* Maybe null pointer? */
ICPLB_FAULT_ADDR: <0x000ffc06> { ___tcp_select_window + 0xe }
PROCESSOR STATE:
R0 : 00000000 R1 : e3c67be4 R2 : 0000ffc0 R3 : 00000000
R4 : 0019dcb8 R5 : 3204640a R6 : 00000020 R7 : 0000388f
P0 : 02fc2040 P1 : 00000000 P2 : 00000048 P3 : 02037800
P4 : 02fc2040 P5 : 0207ae80 FP : 02037818 SP : 0019dbb0
LB0: 0009ac20 LT0: 0009ac20 LC0: 00000000
LB1: 0004bd46 LT1: 0004bd40 LC1: 00000000
B0 : 00000137 L0 : 00000000 M0 : 0000002c I0 : 00200200
B1 : 000000c0 L1 : 00000000 M1 : 00000001 I1 : 0000ffff
B2 : 7ffff000 L2 : 00000000 M2 : 00001802 I2 : 00000001
B3 : 00000000 L3 : 00000000 M3 : 0000005b I3 : 00000007
A0.w: 00002760 A0.x: 00000000 A1.w: 00000087 A1.x: 00000000
USP : 0019e000 ASTAT: 02003004
Hardware Trace:
0 Target : <0x000042e0> { _trap_c + 0x0 }
Source : <0x0000a12c> { _exception_to_level5 + 0xa4 } JUMP.L
1 Target : <0x0000a088> { _exception_to_level5 + 0x0 }
Source : <0x00009f3c> { _bfin_return_from_exception + 0x20 } RTX
2 Target : <0x00009f1c> { _bfin_return_from_exception + 0x0 }
Source : <0x00009fe0> { _ex_trap_c + 0x74 } JUMP.S
3 Target : <0x00009f6c> { _ex_trap_c + 0x0 }
Source : <0x00009e44> { _ex_workaround_261 + 0x1c } JUMP.S
4 Target : <0x00009e28> { _ex_workaround_261 + 0x0 }
Source : <0x0000a200> { _trap + 0x68 } JUMP (P4)
5 Target : <0x0000a1b6> { _trap + 0x1e }
Source : <0x0000a1b2> { _trap + 0x1a } IF CC JUMP pcrel
6 Target : <0x0000a198> { _trap + 0x0 }
FAULT : <0x000ffc06> { ___tcp_select_window + 0xe } R0 = [P2]
Source : <0x00009f3c> { _bfin_return_from_exception + 0x20 } RTX
7 Target : <0x00009f1c> { _bfin_return_from_exception + 0x0 }
Source : <0x00009e3a> { _ex_workaround_261 + 0x12 } IF !CC JUMP
pcrel
8 Target : <0x00009e28> { _ex_workaround_261 + 0x0 }
Source : <0x0000a200> { _trap + 0x68 } JUMP (P4)
9 Target : <0x0000a1b6> { _trap + 0x1e }
Source : <0x0000a1b2> { _trap + 0x1a } IF CC JUMP pcrel
10 Target : <0x0000a198> { _trap + 0x0 }
Source : <0x000ffc04> { ___tcp_select_window + 0xc } 0x5a91
11 Target : <0x000ffbf8> { ___tcp_select_window + 0x0 }
Source : <0x00100108> { _tcp_transmit_skb + 0x18c } CALL pcrel
12 Target : <0x00100108> { _tcp_transmit_skb + 0x18c }
Source : <0x0000a6fe> { __common_int_entry + 0xda } RTI
13 Target : <0x0000a69c> { __common_int_entry + 0x78 }
Source : <0x0000a4d8> { _return_from_int + 0x58 } RTS
14 Target : <0x0000a4d8> { _return_from_int + 0x58 }
Source : <0x0000a4ae> { _return_from_int + 0x2e } IF !CC JUMP pcrel
15 Target : <0x0000a480> { _return_from_int + 0x0 }
Source : <0x0000a698> { __common_int_entry + 0x74 } JUMP.L
Kernel Stack
Stack info:
SP: [0x0019df50] <0x0019df50> /* kernel dynamic memory (maybe
user-space) */
Memory from 0x0019df50 to 0019e000
0019df50:[fffffffc] 00000007 00000003 02f6c774 02e33cb8 0019e000 0017d0a0
0000167c
0019df70: 0019c008 0019c008 0018e030 0019c008 0000a410 0000167c 00000000
00000000
0019df90: ffdfefdf 00000065 00000008 02069820 0000ffff 0000ffff 0000a410
00000006
0019dfb0: 0017d00c 001b42e0 00000000 0019e000 0019e60a 00188578 0017d000
0017d00c
0019dfd0: 001b42e0 0014e53c 001b1910 0017c3f8 00000013 0019e1d4 001b42e0
001a5d5a
0019dff0: ffe00000 03f1f1d8 03f1ff80 ffb00000
Return addresses in stack:
Modules linked in: bfin_video_capture videobuf2_core videobuf2_dma_contig
videobuf2_memops vs6624 v4l2_common videodev
Kernel panic - not syncing: Kernel exception
Hardware Trace:
Stack info:
SP: [0x0019dab8] <0x0019dab8> /* kernel dynamic memory (maybe
user-space) */
FP: (0x0019de80)
Memory from 0x0019dab0 to 0019e000
0019dab0: 0019dab8 00000013 [00150490] 00120c8c 0019dbb0 00150490 001823db
001823db
0019dad0: 001823db 0019db00 02037818 0000479c 0019dbb0 ffe02014 02037800
0000c008
0019daf0: 0000000b 00000027 00000013 0019dbb0 0000003f ffffffff 00000000
20a9f511
0019db10: 0003000b 0019138c <00006c9a> 0018d7e4 ffffffc0 0019138c
0003751a 00000000
0019db30: ffffffc0 ffe02104 00000001 00000001 00015620 00000006 00b96254
0019c000
0019db50: 00b96248 00000000 00b96254 02037818 00037610 0019138c 02fc2040
02037800
0019db70: 00000006 0019ded4 3204640a 0019dcb8 00000010 0000000c 00000000
0000a130
0019db90: 0017f000 0000c008 00000027 3204640a 0019dcb8 0019b874 0019ae5c
00000480
0019dbb0: 00000480 0000c008 00000027 00000000 0019dc8c 00000480 000ffc06
0010010c
0019dbd0: 00000000 02003004 0004bd46 0009ac20 0004bd40 0009ac20 00000000
00000000
0019dbf0: 00000087 00000000 00002760 00000000 00000000 7ffff000 000000c0
00000137
0019dc10: 00000000 00000000 00000000 00000000 0000005b 00001802 00000001
0000002c
0019dc30: 00000007 00000001 0000ffff
0019e000 02037818 0207ae80 02fc2040
0019dc50: 02037800 00000048 00000000 02fc2040 0000388f 00000020 3204640a
0019dcb8
0019dc70: 00000000 0000ffc0 e3c67be4 00000000 00000000 02fc2040 00000006
00000000
0019dc90: 0000ffc0 e3c67be4 0010010c 0000388f 00000020 3204640a 00000020
02fc2040
0019dcb0: 00000020 0019dccc 00000002 00000000 ffff1a10 10b0ea53 00000000
00000000
0019dcd0: 02037778 00100764 02fc2040 02037760 02562844 00000021 00000020
3204640a
0019dcf0: 02562830 02037760 02562844 00000021 00000020 000fe4f6 02fc2040
<0010606c>
0019dd10: 000cdd5c 00000021 00104aaa 0019dd58 00104a68 02037760 02037760
02fc2040
0019dd30: 00000202 00000002 02037760 0018b064 0018aafc 00000021 ae04640a
00000000
0019dd50: 00104ea2 02037760 02fc2040 00105092 02037760 02562844 0018aafc
00000202
0019dd70: 00000000 00000051 00000000 0000fe03 3204640a 00000202 00000002
02037760
0019dd90: 0018a98c ffffffc0 <000ecf72> 02037760 0018b064 0018aafc
00000006 00000008
0019ddb0: 02036000 0000003f 00000001 ffffffc0 <000d427c> 02037760
<000d427c> 02037760
0019ddd0: 0018aadc 00000000 0019b8d8 0019b8d8 02037800 02036000 0018aafc
0019b904
0019ddf0: 000d430a 0019b8c4 0019b8d8 0018e030 00000000 00000001 00000000
0019b8f8
0019de10: 02037760 ffffffc0 ffe02104 0019b8cc <000d45de> 0019b904
0019b8c4 0018e030
0019de30: 00000040 00000001 0000012b ffff1a12 0017d0a0 00037610 0019390c
0000000a
0019de50:
00186ce8 0000000c 0019c000 00000001 0000000c 00000100 00000003
0019de70:<00038a86> 0019390c 00000006 00000000 (00000000)
0017d0a0 0000484e
0019de90: 001962cc 0019c008 0019c008 00000018 00000000 00000000 ffdfefdf
0009ab42
0019deb0: 00000000 00000000 0000a696 ffc00014 0000167c 00000000 00000000
7ffff000
0019ded0: 000000c0 000016a4 00008810 00000000 00000000 02e74000 02e0dbf4
000016a4
0019def0:<00001d68> 0000000b 02002060 02e75135 0009ab44 02e7512e
0009ab42 00000013
0019df10: 00000000 00000051 00000000 0011e451 00000000 00000000 7ffff000
000000c0
0019df30: 00000137 00000000 00000000 00000000 00000000 0000005b 00001802
00000001
0019df50: fffffffc 00000007 00000003 02f6c774 02e33cb8 0019e000 0017d0a0
0000167c
0019df70: 0019c008 0019c008 0018e030 0019c008 0000a410 0000167c 00000000
00000000
0019df90: ffdfefdf 00000065 00000008 02069820 0000ffff 0000ffff 0000a410
00000006
0019dfb0: 0017d00c 001b42e0 00000000 0019e000 0019e60a 00188578 0017d000
0017d00c
0019dfd0: 001b42e0 0014e53c 001b1910 0017c3f8 00000013 0019e1d4 001b42e0
001a5d5a
0019dff0: ffe00000 03f1f1d8 03f1ff80 ffb00000
Return addresses in stack:
address : <0x00006c9a> { _bfin_coretmr_interrupt + 0x12 }
address : <0x00200200> /* kernel dynamic memory (maybe user-space)
*/
address : <0x0010606c> { _tcp_child_process + 0xdc }
address : <0x000ecf72> { _ip_local_deliver + 0x5e }
address : <0x000d427c> { ___netif_receive_skb + 0x2f4 }
address : <0x000d427c> { ___netif_receive_skb + 0x2f4 }
address : <0x000d45de> { _net_rx_action + 0x86 }
address : <0x00017004> { ___do_softirq + 0x7c }
address : <0x00038a86> { _unmask_irq + 0x12 }
frame 1 : <0x00037222> { _generic_handle_irq + 0x2a }
address : <0x00001d68> { _cpu_idle + 0x30 }
--
--- steven miao 2011-08-18 23:47:59
didn't replicate with attached config, it seems this bug is related to the
_ex_workaround_261
--- Vivi Li 2011-09-14 02:08:30
Yeah, I don't see the crash with vs6624 test on bf537-stamp now.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
config.user.camera application/octet-stream 51390 Vivi Li
config.kernel.camera application/octet-stream 39068 Vivi Li