FAQ: [#6147] kernel crash with none dma usb host hci(2010)

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

[#6147] kernel crash with none dma usb host hci

Submitted By: angelia wu

Open Date

2010-08-03 03:31:14     Close Date

2010-08-06 00:14:48

Priority:

Medium     Assignee:

Michael Hennerich

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2010R1     Release:

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: kernel crash with none dma usb host hci

Details:

 

kernel crash immediately after kernel boot when test bluetooth ALSA.

 

the follow is Erro info

 

WARNING: at fs/sysfs/dir.c:451 _sysfs_add_one+0x7c/0x90()

sysfs: cannot create duplicate filename '/devices/platform/sl811-hcd.0/usb1/power/power'

Modules linked in:

Hardware Trace:

   0 Target : <0x001526b8> { _dump_stack + 0x0 }

     Source : <0x000112d8> { _warn_slowpath_common + 0x40 } CALL pcrel

   1 Target : <0x000112d8> { _warn_slowpath_common + 0x40 }

     Source : <0x0002deec> { _print_modules + 0x4c } RTS

   2 Target : <0x0002dee6> { _print_modules + 0x46 }

     Source : <0x001527bc> { _printk + 0x14 } RTS

   3 Target : <0x001527b8> { _printk + 0x10 }

     Source : <0x00011f3e> { _vprintk + 0x16a } RTS

   4 Target : <0x00011f32> { _vprintk + 0x15e }

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

   5 Target : <0xffa00ce0> { __common_int_entry + 0x78 }

     Source : <0xffa00b1c> { _return_from_int + 0x58 } RTS

   6 Target : <0xffa00b1c> { _return_from_int + 0x58 }

     Source : <0xffa00af2> { _return_from_int + 0x2e } IF !CC JUMP pcrel

   7 Target : <0xffa00ac4> { _return_from_int + 0x0 }

     Source : <0xffa00cdc> { __common_int_entry + 0x74 } JUMP.L

   8 Target : <0xffa00cda> { __common_int_entry + 0x72 }

     Source : <0xffa0038e> { _asm_do_IRQ + 0x6a } RTS

   9 Target : <0xffa00386> { _asm_do_IRQ + 0x62 }

     Source : <0x0001558a> { __local_bh_enable + 0x3a } RTS

  10 Target : <0x00015550> { __local_bh_enable + 0x0 }

     Source : <0x00015bd0> { ___do_softirq + 0xa4 } JUMP.L

  11 Target : <0x00015bc8> { ___do_softirq + 0x9c }

     Source : <0x00015bbc> { ___do_softirq + 0x90 } IF CC JUMP pcrel

  12 Target : <0x00015bae> { ___do_softirq + 0x82 }

     Source : <0x00034148> { _rcu_bh_qs + 0x14 } RTS

  13 Target : <0x00034134> { _rcu_bh_qs + 0x0 }

     Source : <0x00015baa> { ___do_softirq + 0x7e } JUMP.L

  14 Target : <0x00015ba2> { ___do_softirq + 0x76 }

     Source : <0x0001918e> { _run_timer_softirq + 0xbe } RTS

  15 Target : <0x00019172> { _run_timer_softirq + 0xa2 }

     Source : <0x000191d2> { _run_timer_softirq + 0x102 } JUMP.S

Stack info:

SP: [0x02061d60] <0x02061d60> /* kernel dynamic memory */

FP: (0x02061fa8)

Memory from 0x02061d60 to 02062000

02061d60:[000112d8] 000112dc  02061da4  00196554  00044656  00196554  000001c3  00079a34

02061d80: 0001132e  02a4742c  02af3000  02af3000  ffffffef  02af3000  02061db4  000799ec

02061da0: 02061da4  00196564  02061dbc  00079a34  02061db4  00000666  0007a222  02af3000

02061dc0: 0007a23e  02a4742c  0205e380  02061de4  02a47a04  00000000  00000000  00000000

02061de0: 02a37064  02a47a04  00000000  0007a2fe  02a61864  00000000  02a6186c  00151256

02061e00: 02005e58  00151256  02061e20  0007afd2  0009600c  000ac682  02a61864  001da890

02061e20: 02a37000  02a37000  000ab40a  02a61864  0205e380  001d16f0  00000000  02a6186c

02061e40: 02a37064  00000001  000bc564  000000bd  00000001  3a393831  000b0031  00000000

02061e60: 00000000  000bc79a  02a61800  0205e380  001d16f0  02a61864  00000000  02a371dc

02061e80: 00000001  000bcf00  02a61800  0205e380  00000000  000bd01c  02a61800  00000000

02061ea0: 00000000  0205e380  000003e8  00000001  00000000  0205e380  000003e8  00000000

02061ec0: 02061ec0  02061ec0  0205e3f0  01a555c0  00000101  02a3b600  00000012  0205e410

02061ee0: 0205e49c  00000000  00000000  00000101  00000000  02061f58  000bd5b4  02a37000

02061f00: 0205e380  02a37000  02061f94  00000001  00000001  0205e3bc  0205dc40  02018bc0

02061f20: 02061f58  00000001  00000010  00000001  00000000  00000000  000003e8  0205e3b4

02061f40: 001d16f0  0205e388  0205e3b8  0205e49c  02a37098  001d0001  02060101  02060000

02061f60: 02060000  001da7b0  000bd760  001da7b0  02060000  02060000  02061f94  02060000

02061f80: 02060000  00000000  0000c1ac  0201bf34  000bd72c  00000000  0205dc40  000214c0

02061fa0: 02061fa0  02061fa0 (00000000)<00021136> 0201bf34  000bd72c  00000000  00000000

02061fc0: 00000000  00000000  00000000  000210dc  000014a8  00000000  00000000  02061fdc

02061fe0: 02061fdc <000014ae> 00000000  00000000  00000000  00000000  ffffffff  00000006

Return addresses in stack:

   frame  1 : <0x00021136> { _kthread + 0x5a }

    address : <0x000014ae> { _kernel_thread_helper + 0x6 }

---[ end trace f480ef4713f5bb14 ]---

usb 1-1: can't device_add, error -17

NULL pointer access

Deferred Exception context

CURRENT PROCESS:

COMM=mdev PID=214  CPU=0

TEXT = 0x02b80000-0x02bcea38        DATA = 0x02d08a38-0x02d0c2e4

BSS = 0x02d0c2e4-0x02d20000  USER-STACK = 0x02d3fdd0

 

return address: [0x02a7ba82]; contents of:

0x02a7ba60:  003a  6801  617a  9310  3210  6ffa  2003  0811

0x02a7ba70:  07ca  6c0a  9951  0c01  17fb  3079  0807  1803

0x02a7ba80:  6000 [9b08] 6506  e439  ffac  6409  e639  ffac

0x02a7ba90:  e538  ffa0  e439  ffac  a040  0981  1e9f  e43a

 

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

Linux version 2.6.34.1-ADI-2010R1-pre-svn9034 (test@uclinux41) (gcc version 4.3.5 (ADI-trunk/svn-4681) ) #6 Mon Aug 2 17:16:02 CST 2010

 

SEQUENCER STATUS:               Tainted: G        W

SEQSTAT: 00000027  IPEND: 0008  IMASK: ffff  SYSCFG: 0006

  EXCAUSE   : 0x27

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

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

RETN: <0x02d02000> [ /lib/ld-uClibc.so.0 + 0x4000 ]

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

RETS: <0x02a7ba5e> [ /lib/ld-uClibc.so.0 + 0x3a5e ]

PC  : <0x02a7ba82> [ /lib/ld-uClibc.so.0 + 0x3a82 ]

DCPLB_FAULT_ADDR: <0x00000000�

 

U-Boot 2010.06-svn2366 (ADI-2010R1-pre) (Jul 27 2010 - 21:47:44)

 

CPU:   ADSP bf537-0.2 (Detected Rev: 0.2) (bypass boot)

Board: ADI BF537 stamp board

       Support: http://blackfin.uclinux.org/

Clock: VCO: 500 MHz, Core: 500 MHz, System: 125 MHz

RAM:   64 MiB

Flash: 4 MiB

In:    serial

Out:   serial

Err:   serial

KGDB:  [on serial] ready

Net:   bfin_mac

Hit any key to stop autoboot:  0

Using bfin_mac device

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename 'uImage'.

Load address: 0x1000000

Loading: #################################################################

         #################################################################

         #################################################################

         #################################################################

         #################################################################

         ###############

done

Bytes transferred = 4982799 (4c080f hex)

## Booting kernel from Legacy Image at 01000000 ...

   Image Name:   bf537-2.6.34.1-ADI-2010R1-pre-sv

   Created:      2010-08-02   9:16:08 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    4982735 Bytes = 4.8 MiB

   Load Address: 00001000

   Entry Point:  001ef684

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 001ef684

Linux version 2.6.34.1-ADI-2010R1-pre-svn9034 (test@uclinux41) (gcc version 4.3.5 (ADI-trunk/svn-4681) ) #6 Mon Aug 2 17:16:02 CST 2010

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-0x001527c0

  rodata    = 0x001527c0-0x001bed6c

  bss       = 0x001bf000-0x001d01a8

  data      = 0x001d01a8-0x001e4000

    stack   = 0x001e2000-0x001e4000

  init      = 0x001e4000-0x00a07000

  available = 0x00a07000-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.50:10.100.4.174:10.100.4.174:2f

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: 46508k/65536k RAM, (8332k init code, 1349k kernel code, 583k data, 2048k dma, 6716k reserved)

Hierarchical RCU implementation.

NR_IRQS:138

Configuring Blackfin Priority Driven Interrupts

console [ttyBF0] enabled, bootconsole disabled

console [ttyBF0] enabled, bootconsole disabled

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

Security Framework initialized

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_base@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.22.1.

Bluetooth: Core ver 2.15

NET: Registered protocol family 31

Bluetooth: HCI device and connection manager initialized

Bluetooth: HCI 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

msgmni has been set to 90

io scheduler noop registered

io scheduler cfq 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_mii_bus: Can't get IRQ 65535 (PHY)

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: 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: L2CAP ver 2.14

Bluetooth: L2CAP socket layer initialized

Bluetooth: SCO (Voice Link) ver 0.6

Bluetooth: SCO socket layer initialized

Bluetooth: RFCOMM socket layer initialized

Bluetooth: RFCOMM ver 1.11

rtc-bfin rtc-bfin: setting system clock to 1970-01-04 16:48:46 UTC (319726)

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

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 @ 0x02a6e000 - 512 pages at 0x03e00000

Freeing unused kernel memory: 8332k freed

                           _____________________________________

        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|            - http://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...

 

 

BusyBox v1.16.2 (2010-08-02 16:23:44 CST) hush - the humble shell

 

Follow-ups

 

--- Mike Frysinger                                           2010-08-03 03:34:50

this is a bug in your board resources:

sysfs: cannot create duplicate filename

'/devices/platform/sl811-hcd.0/usb1/power/power'

 

most likely has nothing to do with alsa

 

--- Michael Hennerich                                        2010-08-03 05:45:30

> this is a bug in your board resources:

 

Hmm - I don't see any issues with the board resources here.

Are there any other messages before the crash.

What commands are executed, etc.

 

 

--- Michael Hennerich                                        2010-08-03 12:04:35

This bug is also seen with the ISP1362.

I tested linux-2.6.33.1 (svn rev 8464) and it is working there.

So it must be something we imported since svn rev 8464

 

--- Michael Hennerich                                        2010-08-04 06:43:55

This bug was imported with update to stable linux-2.6.34.1 (svn rev 8971)

After debugging the issue myself, and on the way to find who to blame for

this I found the same fix on upstream.

I really wonder why this hot fix doesn't went into linux-2.6.34.2?

 

Apply upstream:

 

USB: add missing "{}" in map_urb_for_dma

 

author Ming Lei <tom.leiming@gmail.com

Wed, 12 May 2010 15:38:12 +0000 (23:38 +0800)

committer Greg Kroah-Hartman <gregkh@suse.de

Thu, 20 May 2010 20:21:45 +0000 (13:21 -0700)

commit f537da685c35a81a75f6067751bddb902c8adb68

tree e64468f663478ec9da7441606c93b12c3865e1da tree | snapshot

parent 572538dee7a4b25f3e77fdc11d20dbb753ecf367 commit | diff

 

USB: add missing "{}" in map_urb_for_dma

 

Obviously, {} is needed in the branch of

"else if (hcd->driver->flags & HCD_LOCAL_MEM)"

for handling of setup packet mapping.

 

Signed-off-by: Ming Lei <tom.leiming@gmail.com>

Acked-by: Alan Stern <stern@rowland.harvard.edu>

Cc: stable <stable@kernel.org>

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

 

--- angelia wu                                               2010-08-06 00:14:48

Error info disappear when kernel boot.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.config.btalsa    application/octet-stream    49086    angelia wu

config.linux.btalsa    application/octet-stream    41555    angelia wu

Outcomes