[#6154] connection refused when play sound in the bluetooth ALSA testing
Submitted By: angelia wu
Open Date
2010-08-06 02:08:59 Close Date
2010-10-18 04:43:28
Priority:
Medium Assignee:
steven miao
Status:
Closed Fixed In Release:
N/A
Found In Release:
2010R1 Release:
Blackfin Linux:2010R1
Category:
N/A Board:
STAMP
Processor:
BF537 Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Fixed
Uboot version or rev.:
Toolchain version or rev.:
svn-4681
App binary format:
N/A
Summary: connection refused when play sound in the bluetooth ALSA testing
Details:
when test bluetooth ALSA, at the last step play sound,error happened.
the error info as follow.
root:/> aplay -D headset b.wav
headsetd[253]: Configuration phase ended: target bdaddr is 50:63:13:89:7B:07, timeout is 6000 ms
headsetd[253]: Changing state: Idle-->Paging
headsetd[253]: unable to connect L2CAP socket to headset: Connection refused
headsetd[253]: Changing state: Paging-->Idle
aplay: main:550: audio open error: Connection refused
root:/> INFO: task sdpd:250 blocked for more than 120 seconds.
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
sdpd D ffa00a50 0 250 213 0x00000000
Stack info:
SP: [0x00d69da4] <0x00d69da4> /* kernel dynamic memory */
Memory from 0x00d69da0 to 00d6a000
00d69da0: 020683ec [00f1c060] 020680e0 02068260 020683c0 00000001 00f1c060 001d24c8
00d69dc0: 00d69de4 ffa01e9c 020680e0 02068c60 00000000 00000000 00d68008 00d68000
00d69de0: 00d68000 00d69e64 ffa022ee 00d69eb4 001d16f0 00d68000 7fffffff 00000001
00d69e00: 00d68000 00000002 00000000 00000002 00000000 001024c1 00d69e48 00d69e38
00d69e20: ffa02052 00d69eb4 7fffffff ffa02138 00d69eb4 7fffffff 00000001 00d68000
00d69e40: 000000fb 00000000 00d69e74 0100f96e 00000001 020680e0 0000f628 00d69eb8
00d69e60: 00d69eb8 002bfb9c 00010c7c 02068c60 00004000 00dd11f0 00004111 000000fb
00d69e80: 00000000 00000000 000f11f0 00d69eb4 00d69f24 00000000 00000000 00000000
00d69ea0: 00000000 002bfa34 00000000 000504b0 00000802 00000000 00d69e5c 00d69e5c
00d69ec0: 00001914 ffa000e0 000000be 00dd11f0 00000000 ffffe000 00000000 002bfec4
00d69ee0: 00000003 000f1a30 00000000 00000000 00000000 00000000 ffa000ec 0000013c
00d69f00: 00000000 ffffe000 <ffa0097a> ffc00014 00000002 0000fd18 0000c054 002bfec4
00d69f20: 00000000 0148c05a 00008000 00002000 00000000 00d6a000 0148c05a 0148c05a
00d69f40: 00289912 ffa01120 02003044 00f13ffb 00f145cf 00f13ff8 00f145ce 00000000
00d69f60: 00000000 00000000 00000000 00000000 00000000 00000000 7ffff000 000000c0
00d69f80: 00000137 00000000 00000000 00000000 00000000 0000005b 00001802 00000001
00d69fa0: fffffffc 00000006 00000003 00dd11f0 002bffe7 002bfb8c 002bfb9c 00000001
00d69fc0: 00286388 00dd11f0 02b7f3cc 0148c054 000000be 00286128 0028bb34 00000000
00d69fe0: 002bfec4 0000c054 00000010 00000000 00000000 00000000 000000be 00000006
Return addresses in stack:
address : <0xffa0097a> { _system_call + 0x6a }
INFO: task sdpd:251 blocked for more than 120 seconds.
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
sdpd D ffa00a50 0 251 250 0x00000000
Stack info:
SP: [0x015d5da4] <0x015d5da4> /* kernel dynamic memory */
FP: (0x015d5f04)
Memory from 0x015d5da0 to 015d6000
015d5da0: 0206810c [00f1c060] 02068c60 02068de0 020680e0 00000001 00f1c060 001d24c8
015d5dc0: 015d5de4 ffa01e9c 015d5de4 0000ade0 020683ec 79875e87 015d4008 015d4000
015d5de0: 015d4000 015d5e64 ffa022ee 015d5eb4 001d16f0 015d4000 7fffffff 00000001
015d5e00: 015d4000 00000002 020683c0 001d24c8 000034c6 ffd7f36b 015d5e48 0000b164
015d5e20: 02068c60 020683ec 02068c8c ffa02138 015d5eb4 7fffffff 00000001 015d4000
015d5e40: 000000fc 00000000 015d5e74 0100f96e 00000001 02068c60 0000f628 015d5eb8
015d5e60: 015d5eb8 002bfb9c 00010c7c 020683c0 00004000 00dd11f0 00004111 000000fc
015d5e80: 00000000 00000000 00000000 000003e9 015d5f24 00000000 00000000 00000000
015d5ea0: 00000000 000000ab 000000d7 000002a8 000000fe 00000000 015d5e5c 015d5e5c
015d5ec0: 00001914 ffa000e0 000000be 00dd11f0 00000000 ffffe000 00000000 002bfec4
015d5ee0: 02068c60 00000042 00dd11f0 00000000 00000000 00000000 ffa000ec <ffa0097a>
015d5f00: 0001cb18 (00000000)<ffa0097a> 00f1c060 02068c60 0036459c 0000e054 002bfec4
015d5f20: 00000000 0148c05a 00008000 00002000 00000000 015d6000 0148c05a 0148c05a
015d5f40: 0028992a ffa01120 02002040 00f13ffb 00f145cf 00f13ff8 00f145ce 00000000
015d5f60: 00000000 00000000 00000000 00000000 00000000 00000000 7ffff000 000000c0
015d5f80: 00000137 00000000 00000000 00000000 00000000 0000005b 00001802 00000001
015d5fa0: fffffffc 00000006 00000003 00dd11f0 002bffe7 002bfb8c 002bfb9c 00000001
015d5fc0: 00286388 00dd11f0 02b7f3cc 0148c054 000000be 00286128 0028bb34 00000000
015d5fe0: 002bfec4 0000e054 00000010 00000000 000000fb 000000fb 000000be 00000006
Return addresses in stack:
address : <0xffa0097a> { _system_call + 0x6a }
frame 1 : <0xffa0097a> { _system_call + 0x6a }
Follow-ups
--- steven miao 2010-08-19 23:01:29
The last test connected to the wrong bdaddr, it should be
00:1A:45:4A:EA:39(jabra bt125). I tested this case again but data misalignment
exception asserted, the error message as follows:
root:/> aplay -D headset 0.wav
headsetd[248]: Configuration phase ended: target bdaddr is 00:1A:45:4A:EA:39,
timeout is 6000 ms
headsetd[248]: Changing state: Idle-->Paging
Data access misaligned address violation
<5> - Attempted misaligned data memory or data cache access.
Kernel OOPS in progress
Deferred Exception context
No Valid process in current context
return address: [0x00152ac8]; contents of:
0x00152aa0: 0803 17d8 3046 6480 604a e3c5 7639 0d0e
0x00152ab0: 17aa 2fd2 0c01 17ce e598 01a8 4a30 0d0e
0x00152ac0: e698 01a8 17a0 2fc8 [a451] 2fae 6c12 9111
0x00152ad0: 2fab e491 0002 2fa8 e120 ff80 e51a 0087
ADSP-BF537-0.2 500(MHz CCLK) 125(MHz SCLK) (mpu off)
Linux version 2.6.34.4-ADI-2010R1-pre-svn9089 (steven@debiansteven) (gcc
version 4.1.2 (ADI svn)) #113 Thu Aug 19 02:15:55 EDT 2010
SEQUENCER STATUS: Not tainted
SEQSTAT: 00002024 IPEND: c008 IMASK: ffff SYSCFG: 0006
EXCAUSE : 0x24
physical IVG3 asserted : <0xffa007b4> { _trap + 0x0 }
physical IVG14 asserted : <0xffa00b0c> { _evt_evt14 + 0x0 }
physical IVG15 asserted : <0xffa01098> { _evt_system_call + 0x0 }
logical irq 6 mapped : <0xffa003c8> { _bfin_coretmr_interrupt + 0x0
}
logical irq 10 mapped : <0x000cff18> { _bfin_rtc_interrupt + 0x0 }
logical irq 12 mapped : <0x000f83c0> { _rx_handler + 0x0 }
logical irq 13 mapped : <0x000f835c> { _tx_handler + 0x0 }
logical irq 18 mapped : <0x000ab4c8> { _bfin_serial_dma_rx_int + 0x0
}
logical irq 19 mapped : <0x000abb6c> { _bfin_serial_dma_tx_int + 0x0
}
logical irq 24 mapped : <0x000bae18> { _bfin_mac_interrupt + 0x0 }
logical irq 45 mapped : <0x000f91b0> { _err_handler + 0x0 }
logical irq 54 mapped : <0x000c06e0> { _usb_hcd_irq + 0x0 }
RETE: <0x00000000> /* Maybe null pointer? */
RETN: <0x001f9cc0> /* kernel dynamic memory (maybe user-space) */
RETX: <0x00000480> /* Maybe fixed code section */
RETS: <0x00153f50> { _l2cap_recv_frame + 0xa88 }
PC : <0x00152ac8> { _l2cap_parse_conf_req + 0xf4 }
DCPLB_FAULT_ADDR: <0x02a64168> /* kernel dynamic memory (maybe
user-space) */
ICPLB_FAULT_ADDR: <0x00152ac8> { _l2cap_parse_conf_req + 0xf4 }
PROCESSOR STATE:
R0 : 00000004 R1 : 001f9da0 R2 : 00000004 R3 : 00000002
R4 : 000002a0 R5 : 00000000 R6 : 00000004 R7 : 00000001
P0 : 02a6416b P1 : 00000004 P2 : 02a64167 P3 : 02a64000
P4 : 001f9da0 P5 : 02a6416b FP : 02a64000 SP : 001f9be4
LB0: ffa01774 LT0: ffa01772 LC0: 00000000
LB1: 000ca70a LT1: 000ca6fe LC1: 00000000
B0 : 00000000 L0 : 00000000 M0 : 00000000 I0 : 02d4c004
B1 : 00000000 L1 : 00000000 M1 : 00000000 I1 : 02a24014
B2 : 00000000 L2 : 00000000 M2 : 00000000 I2 : 00000000
B3 : 00000000 L3 : 00000000 M3 : 00000000 I3 : 00000000
A0.w: 00000000 A0.x: 00000000 A1.w: 00000000 A1.x: 00000000
USP : 001fa000 ASTAT: 02003025
Hardware Trace:
0 Target : <0x00003e60> { _trap_c + 0x0 }
Source : <0xffa00748> { _exception_to_level5 + 0xa4 } CALL pcrel
1 Target : <0xffa006a4> { _exception_to_level5 + 0x0 }
Source : <0xffa00558> { _bfin_return_from_exception + 0x20 } RTX
2 Target : <0xffa00538> { _bfin_return_from_exception + 0x0 }
Source : <0xffa005fc> { _ex_trap_c + 0x74 } JUMP.S
3 Target : <0xffa00588> { _ex_trap_c + 0x0 }
Source : <0xffa0081c> { _trap + 0x68 } JUMP (P4)
4 Target : <0xffa007d2> { _trap + 0x1e }
Source : <0xffa007ce> { _trap + 0x1a } IF CC JUMP pcrel
5 Target : <0xffa007b4> { _trap + 0x0 }
FAULT : <0x00152ac8> { _l2cap_parse_conf_req + 0xf4 } P1 = [P2 +
1]
Source : <0x00152a16> { _l2cap_parse_conf_req + 0x42 } IF CC JUMP
pcrel
6 Target : <0x00152a04> { _l2cap_parse_conf_req + 0x30 }
Source : <0x00152a02> { _l2cap_parse_conf_req + 0x2e } JUMP.S
7 Target : <0x001529d4> { _l2cap_parse_conf_req + 0x0 }
Source : <0x00153f4c> { _l2cap_recv_frame + 0xa84 } CALL pcrel
8 Target : <0x00153f42> { _l2cap_recv_frame + 0xa7a }
Source : <0x00153e2a> { _l2cap_recv_frame + 0x962 } IF CC JUMP pcrel
(BP)
9 Target : <0x00153e1e> { _l2cap_recv_frame + 0x956 }
Source : <0xffa01776> { _memcpy + 0x5a } RTS
10 Target : <0xffa0176e> { _memcpy + 0x52 }
Source : <0xffa01738> { _memcpy + 0x1c } IF CC JUMP pcrel
11 Target : <0xffa01730> { _memcpy + 0x14 }
Source : <0xffa01728> { _memcpy + 0xc } IF !CC JUMP pcrel
12 Target : <0xffa0171c> { _memcpy + 0x0 }
Source : <0x00153e1a> { _l2cap_recv_frame + 0x952 } JUMP.L
13 Target : <0x00153e0a> { _l2cap_recv_frame + 0x942 }
Source : <0x001538ae> { _l2cap_recv_frame + 0x3e6 } JUMP.S
14 Target : <0x0015388a> { _l2cap_recv_frame + 0x3c2 }
Source : <0x00151656> { ___l2cap_get_chan_by_scid + 0x32 } RTS
15 Target : <0x00151654> { ___l2cap_get_chan_by_scid + 0x30 }
Source : <0x0015163a> { ___l2cap_get_chan_by_scid + 0x16 } JUMP.S
Kernel Stack
Stack info:
SP: [0x001f9f60] <0x001f9f60> /* kernel dynamic memory (maybe
user-space) */
Memory from 0x001f9f60 to 001fa000
001f9f60:[00000000] 00000000 02d4c014 02d4c004 001fa000 001fa000 ffa002ac
001f8000
001f9f80: 001d426c 001e6730 001f8000 ffa00a2c ffffffc0 00000000 00000000
00000000
001f9fa0: 00000002 00000000 00000000 0000ffff 0000ffff ffa00a2c 00000006
00000000
001f9fc0: 00000000 00000000 001fa6f8 001df568 001d424c 00000000 00199cc4
00211fa4
001f9fe0: 001d358c 00000039 001fa2b4 00214974 0020590a 00000000 00000000
ffb00000
Return addresses in stack:
Modules linked in:
Kernel panic - not syncing: Kernel exception
Hardware Trace:
Stack info:
SP: [0x001f9b04] <0x001f9b04> /* kernel dynamic memory (maybe
user-space) */
Memory from 0x001f9b00 to 001fa000
001f9b00: 02a64000 [0019bc20] 00011b80 001f9be4 0019bc20 001d93ce 001d93ce
001d93ce
001f9b20: 001f9b38 001f9b38 00004230 001f9be4 0019b5c0 000cabd0 0000003f
ffffffff
001f9b40: 000cabb0 02a366c8 00030001 00000001 001f9de8 <000c070e>
02a36600 02d42f00
001f9b60: 02a57640 0000ffff 00000000 00000036 02d42f00 02a36600 02a440c0
02a57640
001f9b80:<00032aaa> 02a33520 00000000 02d42f00 ffa017b4 00000000
00034770 001ea750
001f9ba0: 00000036 00000036 00000000 00000000 001e8480 00034770 00009b50
001ee130
001f9bc0: ffa0074c 001d6000 0000c008 00002024 00000000 000002a0 001f9ee0
02a5740c
001f9be0: 00000480 00000480 0000c008 00002024 00000000 001f9cc0 00000480
00152ac8
001f9c00: 00153f50 00000004 02003025 000ca70a ffa01774 000ca6fe ffa01772
00000000
001f9c20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000
001f9c40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000
001f9c60: 00000000 00000000 00000000 02a24014 02d4c004 001fa000 02a64000
02a6416b
001f9c80: 001f9da0 02a64000 02a64167 00000004 02a6416b 00000001 00000004
00000000
001f9ca0: 000002a0 00000002 00000004 001f9da0 00000004 00000004 02a6416b
00000006
001f9cc0: 02a5740c 02d42f00 00000001 0000000c 00000000 00000000 00000000
001f9da6
001f9ce0: 00153f50 001f9da0 02a440c0 02a6f814 00000004 00000008 00000000
02d42f00
001f9d00: 00009b50 001ee130 00000000 00000000 02a57640 00016746
<ffa0037c> 00000008
001f9d20: 001f9ee0 02a5740c 3377aebd 0014a592 0014a5fa ffa00cb2 ffc00014
02d42f00
001f9d40: 00000018 02a481c0 02a36600 02a481c8 00100ebc 0000d010 00002000
00000000
001f9d60: 02da0000 02b0e640 00100ebc 0014b278 0000000c 02003025 000ca70a
ffa01756
001f9d80: 000ca6fe ffa01756 00000000 00000000 00000000 00000000 00000000
00000000
001f9da0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000
001f9dc0: 00000000 00000000 00000000 00000000 00000000 00000000 02a24014
02d4c004
001f9de0: 00080104 02a57640 02a57640 00155bfc 02a440c0 02d42f00 02a57640
00000010
001f9e00: 0000202a 02a5740c 00000006 00000006 00000003 00000002 00000004
<0014b314>
001f9e20: 02a6fc00 02a57400 02d42f00 <000c070e> 02a36600 001f8000
001d426c 0000000a
001f9e40:<00016588> 001e7ad8 001e6730 001ddcc0 00000000 00000018
00000100 02a33520
001f9e60: 00000000 00000004 <00016310> 001ddce0 00000018 001f8000
00000001 00000036
001f9e80: 00000000 001fa000 0000e3de 00034140 00009b50 001fa000 ffa00362
001ee130
001f9ea0: 001f8000 001d426c 00000022 00000000 00000000 00000000 02ae5af0
ffa01668
001f9ec0: 00000000 ffa00cb2 ffc00014 ffffffc0 00000000 00000000 00000000
00000000
001f9ee0: ffa002d4 00009010 00002000 00000000 02da0000 02b0e640 ffa002d4
<ffa00140>
001f9f00: 0000000c 02003024 02b1e8f7 ffa01756 02b1e8f6 ffa01756 00000000
00000000
001f9f20: 00000538 00000000 0003fd38 00000000 00000000 00000000 00000000
00000000
001f9f40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000
001f9f60: 00000000 00000000 02d4c014 02d4c004 001fa000 001fa000 ffa002ac
001f8000
001f9f80: 001d426c 001e6730 001f8000 ffa00a2c ffffffc0 00000000 00000000
00000000
001f9fa0: 00000002 00000000 00000000 0000ffff 0000ffff ffa00a2c 00000006
00000000
001f9fc0: 00000000 00000000 001fa6f8 001df568 001d424c 00000000 00199cc4
00211fa4
001f9fe0: 001d358c 00000039 001fa2b4 00214974 0020590a 00000000 00000000
ffb00000
Return addresses in stack:
address : <0x000c070e> { _usb_hcd_irq + 0x2e }
address : <0x00032aaa> { _handle_IRQ_event + 0x3e }
address : <0xffa0037c> { _asm_do_IRQ + 0x50 }
address : <0x0014b314> { _hci_rx_task + 0x1a0 }
address : <0x000c070e> { _usb_hcd_irq + 0x2e }
address : <0x00016588> { _tasklet_action + 0x60 }
address : <0x00016310> { ___do_softirq + 0x7c }
address : <0xffa00140> { _cpu_idle + 0x20 }
--- steven miao 2010-09-16 23:28:48
using get_unaligned and put get_unaligned function to get/put l2cap
conf value to avoid unaligned pointer access.
--- angelia wu 2010-10-18 04:43:28
now .bluetooth alsa can work well.
I closed the bug 6154.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
kernel-config-btalsa application/octet-stream 41527 angelia wu
config-config-btalsa application/octet-stream 49064 angelia wu