FAQ: [#6874] Fail to run hcid in bluetooth alsa test on bf537-stamp in 2011r1 branch(2011)

Document created by Aaronwu Employee on Sep 12, 2013
Version 1Show Document
  • View in full screen mode

[#6874] Fail to run hcid in bluetooth alsa test on bf537-stamp in 2011r1 branch

Submitted By: Vivi Li

Open Date

2011-11-10 03:51:15    

Priority:

Medium High     Assignee:

Bob Liu

Status:

Open     Fixed In Release:

N/A

Found In Release:

2011R1     Release:

Category:

N/A     Board:

N/A

Processor:

BF537     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Assigned (Not Start)

Uboot version or rev.:

    Toolchain version or rev.:

gcc4.3-2011R1-RC2

App binary format:

N/A     

Summary: Fail to run hcid in bluetooth alsa test on bf537-stamp in 2011r1 branch

Details:

 

Fail to run hcid in bluetooth alsa test on bf537-stamp in 2011r1 branch.

 

--

Linux version 3.0.8-ADI-2011R1-svn10145 (test@54-7393-1362-sl811-jtag) (gcc version 4.3.5 (ADI-2011R1-RC2) ) #42 Wed Nov 9 21:071

register early platform devices

bootconsole [early_shadow0] enabled

bootconsole [early_BFuart0] enabled

early printk enabled on early_BFuart0

Limiting kernel memory to 56MB due to anomaly 05000263

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x0016c450

  rodata    = 0x0016c450-0x001dc2e4

  bss       = 0x001dd000-0x001ed7f8

  data      = 0x001ed7f8-0x00202000

    stack   = 0x00200000-0x00202000

  init      = 0x00202000-0x00a49000

  available = 0x00a49000-0x03800000

  DMA Zone  = 0x03e00000-0x04000000

Hardware Trace active and enabled

Boot Mode: 0

Blackfin support (C) 2004-2010 Analog Devices, Inc.

Compiled for ADSP-BF537 Rev 0.2

Blackfin Linux support by http://blackfin.uclinux.org/

Processor Speed: 500 MHz core clock and 125 MHz System Clock

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

  External memory: cacheable in instruction cache

Data Cache Enabled for CPU0

  External memory: cacheable (write-back) in data cache

Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 14224

Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart0,57600 console=ttyBF0,57600 ip=10.100.4.50f

PID hash table entries: 256 (order: -2, 1024 bytes)

Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)

Memory available: 46204k/65536k RAM, (8476k init code, 1453k kernel code, 599k data, 2048k dma, 6756k reserved)

NR_IRQS:146

Configuring Blackfin Priority Driven Interrupts

bfin-rtc: invalid date; resetting

console [ttyBF0] enabled, bootconsole disabled

console [ttyBF0] enabled, bootconsole disabled

Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)

pid_max: default: 32768 minimum: 301

Mount-cache hash table entries: 512

Blackfin Scratchpad data SRAM: 4 KB

Blackfin L1 Data A SRAM: 16 KB (16 KB free)

Blackfin L1 Data B SRAM: 16 KB (16 KB free)

Blackfin L1 Instruction SRAM: 48 KB (35 KB free)

NET: Registered protocol family 16

Blackfin DMA Controller

stamp_init(): registering device resources

bio: create slab <bio-0> at 0

bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs@ffc00500, dma channel@7

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

Advanced Linux Sound Architecture Driver Version 1.0.24.

Bluetooth: Core ver 2.16

NET: Registered protocol family 31

Bluetooth: HCI device and connection manager initialized

Bluetooth: HCI socket layer initialized

Bluetooth: L2CAP socket layer initialized

Bluetooth: SCO socket layer initialized

Switching to clocksource bfin_cs_cycles

NET: Registered protocol family 2

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

TCP established hash table entries: 2048 (order: 2, 16384 bytes)

TCP bind hash table entries: 2048 (order: 1, 8192 bytes)

TCP: Hash tables configured (established 2048 bind 2048)

TCP reno registered

UDP hash table entries: 256 (order: 0, 4096 bytes)

UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)

NET: Registered protocol family 1

debug-mmrs: setting up Blackfin MMR debugfs

msgmni has been set to 90

io scheduler noop registered (default)

bfin-uart: Blackfin serial driver

bfin-uart.0: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART

brd: module loaded

bfin_mii_bus: probed

bfin_mac: attached PHY driver [SMSC LAN83C185] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=24)@sclk=125MHz)

bfin_mac bfin_mac.0: eth0: Blackfin on-chip Ethernet MAC driver, Version 1.1

sl811: driver sl811-hcd, 19 May 2005

sl811-hcd sl811-hcd.0: SL811HS v1.5

sl811-hcd sl811-hcd.0: new USB bus registered, assigned bus number 1

sl811-hcd sl811-hcd.0: irq 54, io mem 0x20340000

hub 1-0:1.0: USB hub found

hub 1-0:1.0: 1 port detected

rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0

bfin-wdt: initialized: timeout=20 sec (nowayout=0)

Bluetooth: Generic Bluetooth USB driver ver 0.6

usbcore: registered new interface driver btusb

usbcore: registered new interface driver usbhid

usbhid: USB HID core driver

ALSA device list:

  No soundcards found.

TCP cubic registered

NET: Registered protocol family 17

Bluetooth: RFCOMM socket layer initialized

Bluetooth: RFCOMM ver 1.11

rtc-bfin rtc-bfin: setting system clock to 1970-01-01 10:29:24 UTC (37764)

IP-Config: Complete:

     device=eth0, addr=10.100.4.50, mask=255.255.255.0, gw=10.100.4.174,

     host=bf537-stamp, domain=, nis-domain=(none),

     bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=

dma_alloc_init: dma_page @ 0x02ab4000 - 512 pages at 0x03e00000

Freeing unused kernel memory: 8476k freed

usb 1-1: new full speed USB device number 2 using sl811-hcd

hub 1-1:1.0: USB hub found

hub 1-1:1.0: 4 ports detected

                           _____________________________________

        a8888b.           / Welcome to the uClinux distribution \

       d888888b.         /       _     _                         \

       8P"YP"Y88        /       | |   |_|            __  __ (TM)  |

       8|o||o|88  _____/        | |    _ ____  _   _ \ \/ /       |

       8'    .88       \        | |   | |  _ \| | | | \  /        |

       8`._.' Y8.       \       | |__ | | | | | |_| | /  \        |

      d/      `8b.       \      \____||_|_| |_|\____|/_/\_\       |

     dP   .    Y8b.       \   For embedded processors including   |

    d8:'  "  `::88b        \    the Analog Devices Blackfin      /

   d8"         'Y88b        \___________________________________/

  :8P    '      :888

   8a.   :     _a88P         For further information, check out:

._/"Yaa_:   .| 88P|            - hutp://blackfin.uclinux.org/

\    YP"    `| 8P  `.          - http://docs.blackfin.uclinux.org/

/     \.___.d|    .'           - http://www.uclinux.org/

`--..__)8888P`._.'  jgs/a:f    - http://www.analog.com/blackfin

 

Have a lot of fun...

sb 1-1.2: new full speed USB device number 3 using sl811-hcd

 

 

BusyBox v1.18.4 (2011-11-09 21:02:27 CST) hush - the humble shell

 

root:/> usb 1-1.4: new full speed USB device number 4 using sl811-hcd

PHY: 0:01 - Link is Up - 100/Full

 

root:/> modprobe snd_soc_bf5xx_sport; sleep 1; modprobe snd_bf5xx_tdm; sleep 1;

modprobe snd_soc_ad1836; sleep 1; modprobe snd_soc_bf5xx_tdm; sleep 1; modprobe

snd_ad1836

bfin-tdm bfin-tdm.0: dma rx:3 tx:4, err irq:45, regs:ffc00800

asoc: ad1836-hifi <-> bfin-tdm.0 mapping ok

root:/> hciconfig hci0 up

root:/> hciconfig hci0

hci0:   Type: USB

        BD Address: 00:10:60:D0:8C:41 ACL MTU: 384:8 SCO MTU: 64:8

        UP RUNNING PSCAN ISCAN

        RX bytes:894 acl:0 sco:0 events:33 errors:0

        TX bytes:139 acl:0 sco:0 commands:32 errors:0

 

root:/> hcitool scan

Scanning ...

        00:1C:D6:92:10:62       n/a

        00:07:80:89:8F:0E       WT12-A

        78:DD:08:AF:F4:AF       JJIANG-L01

        00:1A:45:4A:EA:39       Jabra BT125

root:/> hcid -n &

[1] 279 hcid -n

root:/> hcid[279]: Bluetooth HCI daemon

hcid[279]: Starting security manager 0

hdev=0

Illegal use of supervisor resource

<5> - Attempted to use a Supervisor register or instruction from User mode.

<5>   Supervisor resources are registers and instructions that are reserved

<5>   for Supervisor use: Supervisor only registers, all MMRs, and Supervisor

<5>   only instructions.

Deferred Exception context

CURRENT PROCESS:

COMM=hcid PID=281  CPU=0

TEXT = 0x01130000-0x0113853c        DATA = 0x002f453c-0x002f5f7c

BSS = 0x002f5f7c-0x02f20000  USER-STACK = 0x02f3fea0

 

return address: [0x002e4722]; contents of:

0x002e4700:  ff59  0051  e519  ff56  e51b  ff57  0051  e519

0x002e4710:  ff54  e51b  ff55  0051  e519  ff52  e51b  ff53

0x002e4720:  0051 [e519] ff50  e51b  ff51  0051  e519  ff4e

0x002e4730:  e51b  ff4f  0051  e519  ff4c  e51b  ff4d  0051

 

ADSP-BF537-0.2 500(MHz CCLK) 125(MHz SCLK) (mpu off)

Linux version 3.0.8-ADI-2011R1-svn10145 (test@54-7393-1362-sl811-jtag) (gcc version 4.3.5 (ADI-2011R1-RC2) ) #42 Wed Nov 9 21:071

 

SEQUENCER STATUS:               Not tainted

SEQSTAT: 0000002e  IPEND: 0008  IMASK: ffff  SYSCFG: 0006

  EXCAUSE   : 0x2e

  physical IVG3 asserted : <0xffa00790> { _trap + 0x0 }

RETE: <0x00000000> /* Maybe null pointer? */

RETN: <0x010ec000> [ hcid + 0x0 ]

RETX: <0x00000480> /* Maybe fixed code section */

RETS: <0x002e6cb6> [ /usr/lib/libbluetooth.so.2 + 0x6cb6 ]

PC  : <0x002e4722> [ /usr/lib/libbluetooth.so.2 + 0x4722 ]

DCPLB_FAULT_ADDR: <0xfffffd5c> /* core mmrs */

ICPLB_FAULT_ADDR: <0x002e4722> [ /usr/lib/libbluetooth.so.2 + 0x4722 ]

PROCESSOR STATE:

R0 : ffffffff    R1 : 400448dd    R2 : ffffffff    R3 : 00000003

R4 : 002f5d0c    R5 : 0000001f    R6 : 02c97010    R7 : 00000000

P0 : 00000036    P1 : 02b4e1a8    P2 : 002f5f34    P3 : 0000001f

P4 : 002f49e8    P5 : 00000000    FP : 002f5c7c    SP : 010ebf24

LB0: 02b6157d    LT0: 02b6157a    LC0: 00000000

LB1: 02b5e137    LT1: 02b5e136    LC1: 00000000

B0 : 00000137    L0 : 00000000    M0 : fffffffc    I0 : 0000000a

B1 : 000000c0    L1 : 00000000    M1 : 00000001    I1 : 02f48d54

B2 : 7ffff000    L2 : 00000000    M2 : 00001802    I2 : 00000003

B3 : 00000000    L3 : 00000000    M3 : 0000005b    I3 : 00000007

A0.w: 00000000   A0.x: 00000000   A1.w: 00000000   A1.x: 00000000

USP : 002f5c80  ASTAT: 02003026

 

Hardware Trace:

   0 Target : <0x00003fb8> { _trap_c + 0x0 }

     Source : <0xffa00724> { _exception_to_level5 + 0xa4 } JUMP.L

   1 Target : <0xffa00680> { _exception_to_level5 + 0x0 }

     Source : <0xffa00534> { _bfin_return_from_exception + 0x20 } RTX

   2 Target : <0xffa00514> { _bfin_return_from_exception + 0x0 }

     Source : <0xffa005d8> { _ex_trap_c + 0x74 } JUMP.S

   3 Target : <0xffa00564> { _ex_trap_c + 0x0 }

     Source : <0xffa007f8> { _trap + 0x68 } JUMP (P4)

   4 Target : <0xffa007ae> { _trap + 0x1e }

     Source : <0xffa007aa> { _trap + 0x1a } IF CC JUMP pcrel

   5 Target : <0xffa00790> { _trap + 0x0 }

      FAULT : <0x002e4722> [ /usr/lib/libbluetooth.so.2 + 0x4722 ] P1 = [P3 + 0x40]

     Source : <0x002e6cb2> [ /usr/lib/libbluetooth.so.2 + 0x6cb2 ] CALL pcrel

   6 Target : <0x002e6cb0> [ /usr/lib/libbluetooth.so.2 + 0x6cb0 ]

     Source : <0x002e6ca4> [ /usr/lib/libbluetooth.so.2 + 0x6ca4 ] IF CC JUMP pcrel

   7 Target : <0x002e6ca2> [ /usr/lib/libbluetooth.so.2 + 0x6ca2 ]

     Source : <0x02b5db84> [ /lib/libc.so.0 + 0x1db84 ] RTS

   8 Target : <0x02b5db7c> [ /lib/libc.so.0 + 0x1db7c ]

     Source : <0x02b5db6a> [ /lib/libc.so.0 + 0x1db6a ] IF !CC JUMP pcrel (BP)

   9 Target : <0x02b5db66> [ /lib/libc.so.0 + 0x1db66 ]

     Source : <0x02b5e106> [ /lib/libc.so.0 + 0x1e106 ] RTS

  10 Target : <0x02b5e0f6> [ /lib/libc.so.0 + 0x1e0f6 ]

     Source : <0x02b5dcb0> [ /lib/libc.so.0 + 0x1dcb0 ] JUMP.S

  11 Target : <0x02b5dcac> [ /lib/libc.so.0 + 0x1dcac ]

     Source : <0x02b5cf20> [ /lib/libc.so.0 + 0x1cf20 ] RTS

  12 Target : <0x02b5cf18> [ /lib/libc.so.0 + 0x1cf18 ]

     Source : <0x02b5ceba> [ /lib/libc.so.0 + 0x1ceba ] IF CC JUMP pcrel

  13 Target : <0x02b5ceb8> [ /lib/libc.so.0 + 0x1ceb8 ]

     Source : <0x02b4e1d2> [ /lib/libc.so.0 + 0xe1d2 ] RTS

  14 Target : <0x02b4e1ca> [ /lib/libc.so.0 + 0xe1ca ]

     Source : <0x02b4e1bc> [ /lib/libc.so.0 + 0xe1bc ] IF CC JUMP pcrel (BP)

  15 Target : <0x02b4e1b4> [ /lib/libc.so.0 + 0xe1b4 ]

     Source : <0xffa00cf6> { __common_int_entry + 0xda } RTI

Userspace Stack

Stack info:

SP: [0x002f5c80] <0x002f5c80> [ /usr/sbin/hcid + 0x9c80 ]

FP: (0x002f5d0c)

Memory from 0x002f5c80 to 002f6000

002f5c80:[01132b30] 02c97014  002f5d0c  01132b46  00000000  63680000  00000000  00000000

002f5ca0: 001060d0  0000101d  8fffff01  00f99bfe  00000080  0000ccf8  0000000f

002f5cc0: 00080180

00000000  00000000  00000026  00000052  00000000  00000000

002f5ce0: 00000000  00000000  00000a3a  000000c7  00000000  00000003  00000000  00000000

002f5d00: 00000000  00000000  00000000 (00000000)<02b4cbd0> 02c97014  002f5ef8  00000000

002f5d20: 02c97010  002f49e8  00000000  00000000  00000000  00000000  02c97004  00000000

002f5d40: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

002f5d60: 02c970f8  00000000  00000000  00000000  00000000  00000000  00000000  00000000

002f5d80: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

002f5da0: 00000001  02c97004  02f48e78  00000000  02c9715c  00000000  00000001  02f18004

002f5dc0: 00000001  00000001  00000000  00000000  00000000  00000007  02f18543  65756c42

002f5de0: 2528205a  00002964  00000000  00000000  00000000  00000000  00000000  00000000

002f5e00: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

002f5e20: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

002f5e40: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

002f5e60: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

002f5e80: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

002f5ea0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

002f5ec0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000002

002f5ee0: 00000000  00000000  00000000  00000000  02c9701c  002f5f34  02f49028  00000001

002f5f00: 00000001  00000001  01136a90  65756c42  0000005a  00000000  00000000  00000005

002f5f20: 02c9719c  02f49038  00000000  02f49068  00000004  000000c3  02c971c4  003e0100

002f5f40: 00000000  00000000  000f8000  00000003  00000000  02f3ffed  02f3ffa3  00000000

002f5f60: 0000004a  fffffffe  00000000  02f184d2  00000001  02f18004  00000041  00000000

002f5f80: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

002f5fa0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

002f5fc0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

002f5fe0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

Return addresses in stack:

    address : <0x00008000> { _decode_address + 0x37c }

    address : <0x00080040> { _sysfs_permission + 0x3c }

   frame  1 : <0x02b4cbd0> [ /lib/libc.so.0 + 0xcbd0 ]

 

root:/>

--

 

Follow-ups

No Messages Were Found

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.config.bluetoothalsa    application/octet-stream    51883    Vivi Li

config.linux.bluetoothalsa    application/octet-stream    42760    Vivi Li

Outcomes