FAQ: [#6185] gadget_fs test makes kernel panic in latest trunk(2010)

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

[#6185] gadget_fs test makes kernel panic in latest trunk

Submitted By: Vivi Li

Open Date

2010-08-16 04:56:32     Close Date

2010-11-08 22:32:14

Priority:

Medium     Assignee:

Bob Liu

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2010R1     Release:

Category:

Drivers     Board:

N/A

Processor:

ALL     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

gcc4.3-2010_Aug_04

App binary format:

N/A     

Summary: gadget_fs test makes kernel panic in latest trunk

Details:

 

gadget_fs test makes kernel panic in latest trunk.

 

Last passed version:

--

kernel:    Linux release 2.6.34.2-ADI-2010R1-pre-svn9041, build #148 Wed Aug 4 11:18:25 CST 2010

toolchain: bfin-uclinux-gcc release gcc version 4.3.4 (ADI-trunk/svn-3951)

user-dist: release svn-9772, build #431 Wed Aug 4 11:16:28 CST 2010

--

 

First failed version:

--

kernel:    Linux release 2.6.34.2-ADI-2010R1-pre-svn9048, build #152 Thu Aug 5 04:09:36 CST 2010

toolchain: bfin-uclinux-gcc release gcc version 4.3.4 (ADI-trunk/svn-3951)

user-dist: release svn-9772, build #443 Thu Aug 5 04:07:26 CST 2010

--

 

Bellow is the log on bf527-ezkit:

--

Linux version 2.6.34.4-ADI-2010R1-pre-svn9082 (test@uclinux63-527-usbdev) (gcc version 4.3.5 (ADI-trunk/svn-4747) ) #206 Mon Aug0

register early platform devices

bootconsole [early_shadow0] enabled

bootconsole [early_BFuart1] enabled

early printk enabled on early_BFuart1

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x00163b18

  rodata    = 0x00163b18-0x001de7d8

  bss       = 0x001df000-0x001f076c

  data      = 0x001f076c-0x00208000

    stack   = 0x00206000-0x00208000

  init      = 0x00208000-0x008af000

  available = 0x008af000-0x03e00000

  DMA Zone  = 0x03e00000-0x04000000

Hardware Trace Active and Enabled

Boot Mode: 1

Reset caused by Software reset

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

Compiled for ADSP-BF527 Rev 0.2

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

Processor Speed: 525 MHz core clock and 131 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: 15748

Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart1,57600 console=tty0 console=ttyBF1,57600 if

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: 54028k/65536k RAM, (6812k init code, 1418k kernel code, 658k data, 2048k dma, 572k reserved)

Hierarchical RCU implementation.

NR_IRQS:159

Configuring Blackfin Priority Driven Interrupts

console [ttyBF1] enabled, bootconsole disabled

console [ttyBF1] enabled, bootconsole disabled

Calibrating delay loop... 1046.52 BogoMIPS (lpj=2093056)

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 (42 KB free)

NET: Registered protocol family 16

Blackfin DMA Controller

ezkit_init(): registering device resources

bio: create slab <bio-0> at 0

SCSI subsystem initialized

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

i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller, regs_base@ffc01400

Advanced Linux Sound Architecture Driver Version 1.0.22.1.

musb_hdrc: version 6.0, musb-dma, peripheral, debug=0

musb_hdrc musb_hdrc.0: USB Peripheral mode controller at ffc03800 using DMA, IRQ 59

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 105

io scheduler noop registered

io scheduler cfq registered (default)

bfin-otp: initialized

bfin-uart: Blackfin serial driver

bfin-uart.1: ttyBF1 at MMIO 0xffc02000 (irq = 31) is a BFIN-UART

brd: module loaded

adp5520 0-0032: failed writing 0x80 to 0x00

adp5520 0-0032: failed to write

adp5520 0-0032: failed reading at 0x00

adp5520: probe of 0-0032 failed with error -1

bfin_mii_bus: probed

bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:03, irq=-1, mdc_clk=2500000Hz(mdc_div=25)@sclk=131MHz)

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

Initializing USB Mass Storage driver...

usbcore: registered new interface driver usb-storage

USB Mass Storage support registered.

ad7879 0-002c: Failed to write AD7879 Touchscreen

ad7879: probe of 0-002c failed with error -1

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

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

usbcore: registered new interface driver usbhid

usbhid: USB HID core driver

No device for DAI SSM2602

dma rx:5 tx:6, err irq:16, regs:ffc00900

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

asoc: SSM2602 <-> bf5xx-i2s mapping ok

ALSA device list:

  #0: bf5xx_ssm2602 (SSM2602)

TCP cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 1994-09-29 00:45:58 UTC (780799558)

IP-Config: Complete:

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

     host=bf527-ezkit, domain=, nis-domain=(none),

     bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=

Freeing unused kernel memory: 6812k 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-16 07:32:34 CST) hush - the humble shell

 

root:/> PHY: 0:03 - Link is Up - 100/Full

 

root:/> mkdir /dev/gadget

root:/> mount -t gadgetfs gadgetfs /dev/gadget

gadgetfs: USB Gadget filesystem, version 24 Aug 2004

root:/> ./usb -r "1.3" -v

sh: can't execute './usb': No such file or directory

root:/> ./usb -r "1.3" -v

gadgetfs: bound to musb_hdrc driver

------------[ cut here ]------------

kernel BUG at kernel/timer.c:643!

Kernel panic - not syncing: BUG()

Hardware Trace:

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

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

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

     Source : <0xffa00504> { _bfin_return_from_exception + 0x18 } RTX

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

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

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

     Source : <0xffa007ba> { _trap + 0x5a } JUMP (P4)

   4 Target : <0xffa00760> { _trap + 0x0 }

      FAULT : <0x0001830c> { _mod_timer + 0xe8 } BUG

     Source : <0x0001824a> { _mod_timer + 0x26 } IF CC JUMP pcrel

   5 Target : <0x00018246> { _mod_timer + 0x22 }

     Source : <0x00018232> { _mod_timer + 0xe } IF CC JUMP pcrel

   6 Target : <0x00018224> { _mod_timer + 0x0 }

     Source : <0x000d98f2> { _blackfin_interrupt + 0x82 } JUMP.L

   7 Target : <0x000d98d0> { _blackfin_interrupt + 0x60 }

     Source : <0x000d96e6> { _musb_interrupt + 0xc6 } RTS

   8 Target : <0x000d96de> { _musb_interrupt + 0xbe }

     Source : <0x000d96ae> { _musb_interrupt + 0x8e } IF CC JUMP pcrel

   9 Target : <0x000d96a4> { _musb_interrupt + 0x84 }

     Source : <0x000d967c> { _musb_interrupt + 0x5c } IF CC JUMP pcrel

  10 Target : <0x000d9668> { _musb_interrupt + 0x48 }

     Source : <0x000d9708> { _musb_interrupt + 0xe8 } JUMP.S

  11 Target : <0x000d9706> { _musb_interrupt + 0xe6 }

     Source : <0x000d93cc> { _musb_stage0_irq + 0x88 } RTS

  12 Target : <0x000d93c4> { _musb_stage0_irq + 0x80 }

     Source : <0x0001d7aa> { _queue_work_on + 0x52 } RTS

  13 Target : <0x0001d7a4> { _queue_work_on + 0x4c }

     Source : <0x0001d742> { ___queue_work + 0x5e } RTS

  14 Target : <0x0001d73c> { ___queue_work + 0x58 }

     Source : <0x0001d72e> { ___queue_work + 0x4a } IF CC JUMP pcrel (BP)

  15 Target : <0x0001d728> { ___queue_work + 0x44 }

     Source : <0x0000b88e> { ___wake_up + 0x32 } RTS

Stack info:

SP: [0x02085b70] <0x02085b70> /* kernel dynamic memory (maybe user-space) */

FP: (0x02085dc0)

Memory from 0x02085b70 to 02086000

02085b70:[0019fd48] 0016237e  02085c4c  0019fd48  001e44be  001e44be  001e44be  02085ba0

02085b90: 0000430e  02085c4c  00008808  0000002c  0000003f  0000003f  02085bd0  0000c6a8

02085bb0: 001f27c0  02018040  00000001  0201806c  00000000  0000ffff  0000001f  001f14c0

02085bd0: 02085c00  02085c00 <0000a20e> 02018040  001f27c0  00000003  00000001  00000000

02085bf0: 02085c20 <0000eb22> 001f27c0  02018040  00000003  00000001  00000000  00000000

02085c10: 00000100  001e96e4  00000000  0000003f  02085c64  0002079a  ffa006f8  001e1000

02085c30: 00008808  00002021  0000ffff  0000003f  02084000  00000001  00000480  00000480

02085c50: 00008808  00002021  00000000  02085d28  00000480  0001830c  000d98f6  00000000

02085c70: 02003025  000915ec  00092af4  000915e0  00092af2  00000000  00000000  0000002c

02085c90: 00000000  0000002c  00000000  00000000  7ffff000  000000c0  00000137  00000000

02085cb0: 00000000  00000000  00000000  0000005b  00001802  00000001  0000002c  00000006

02085cd0: 00000003  02c3edfc  02085dd0  02c3ed40  02c3ed4c  0202c000  ffffffc0  001f1c64

02085cf0: 001f3af8  00000000  001ee1f4  000000fa  00000001  0000ffff  0000003f  ffff975f

02085d10: 00000000  ffff975f  00000000  00000000  001ee1f4  00000006  0202c000  ffffffc0

02085d30: 001f1c64  000d98f6  0202c000  000000fa  00000001  00000006  00000003  02c3edfc

02085d50:<0002f086> 0206ac20  00000000  00000000  0000003b  001e89bf  001f1c64  001f2cd0

02085d70: 00030834  001f5a3c  028e14e0  02c1d208  0000003b  00000000  00000002  00000064

02085d90: 02c3ed4c  00014fd6  0000168e <ffa00352> 001f991c  0000003b  027e7600  02085e30

02085db0: 02085dbc  ffa00c40  02a47754  00000002 (00000000)<02a6dfd8><02a6dfec> 027e7000

02085dd0: 00065716  00008810  00002000  00000000  02086000  02c8e8be  00065716  00044062

02085df0: 0000000b  02003025  000915ec  00092af4  000915e0  00092af2  00000000  00000000

02085e10: 00000000  00000000  00000000  00000000  00000000  7ffff000  000000c0  00000137

02085e30: 00000000  00000000  00000000  00000000  0000005b  00001802  00000001  0000002c

02085e50: 00000006  00000003  02c3edfc  00204788  02c3ed40  02c3ed4c  02a47754  028e14e0

02085e70: 02c1d208  000000f8  02a47754  0000168e  00000002  00000000  00000002  00000064

02085e90: 0000168f  00000000  00000002  02a47754  02a47754  0000168e  00000006  0208a2a0

02085eb0: 00000020  00000003  00000000  00000000  00048180  00044148  0208a2a0  00000004

02085ed0: 02c3ed98  00000064  02c3ed98  00000064  02c1d208  00000002  ffffe000  02085ef0

02085ef0: 00000000  00000000  00000000 <ffa008f2> 00044118  00000000  ffffe000  02c06be0

02085f10: 00000000  0002831b  80000000  00000064  02c3ed98  02c8e8be  00008000  00002000

02085f30: 00000000  02086000  02c8e8be  02c8e8be  02c47bdc  ffa01000  02003025  02c13ffb

02085f50: 02c9d875  02c13ff8  02c9d872  00000000  00000000  00000000  00000000  00000000

02085f70: 00000000  00000000  7ffff000  000000c0  00000137  00000000  00000000  00000000

02085f90: 00000000  0000005b  00001802  00000001  fffffffc  00000006  00000003  02c1d208

02085fb0: 0206efd0  02c3ed40  02c3ed4c  02c1d208  02c02804  02c1d208  02c50b40  02c8e8b4

02085fd0: 00000004  02c51448  00000003  02c3ed98  00000064  80000000  00000064  02c3ed98

02085ff0: 00000003  00000003  00000004  00000006

Return addresses in stack:

    address : <0x0000a20e> { _activate_task + 0x3e }

    address : <0x0000eb22> { _try_to_wake_up + 0x5e }

    address : <0x0002f086> { _handle_IRQ_event + 0x4a }

    address : <0xffa00352> { _asm_do_IRQ + 0x72 }

   frame  1 : <0x02a6dfd8> /* kernel dynamic memory (maybe user-space) */

    address : <0x02a6dfec> /* kernel dynamic memory (maybe user-space) */

    address : <0xffa008f2> { _system_call + 0x6a }

--

 

Follow-ups

 

--- Bob Liu                                                  2010-08-16 05:32:47

fixed, commit [9083]

-Bob

 

--- Vivi Li                                                  2010-11-08 22:32:13

OK, close it.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.usbdev    application/octet-stream    47046    Vivi Li

Attachments

Outcomes