[#5512] Kernel crashed at boot up with spimmc driver enabled

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

[#5512] Kernel crashed at boot up with spimmc driver enabled

Submitted By: Vivi Li

Open Date

2009-09-04 01:25:52     Close Date

2009-10-15 03:58:25

Priority:

Medium     Assignee:

Yi Li

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2010R1     Release:

Category:

N/A     Board:

N/A

Processor:

ALL     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

gcc4.1-09r1-rc9

App binary format:

N/A     

Summary: Kernel crashed at boot up with spimmc driver enabled

Details:

 

Kernel crashed with spimmc driver enabled, for both bf533-stamp and bf537-stamp.

 

config file is attached:

--

Linux version 2.6.30.5-ADI-2010R1-pre-svn7263 (test@uclinux58-mmc-usblan) (gcc version 4.1.2 (ADI svn)) #15 Fri Sep 4 10:24:18 GMT 2009^M

bootconsole [early_shadow0] enabled^M

bootconsole [early_BFuart0] enabled^M

early printk enabled on early_BFuart0^M

Limiting kernel memory to 56MB due to anomaly 05000263^M

Board Memory: 64MB^M

Kernel Managed Memory: 64MB^M

Memory map:^M

  fixedcode = 0x00000400-0x00000490^M

  text      = 0x00001000-0x0011c930^M

  rodata    = 0x0011c930-0x0017da30^M

  bss       = 0x0017e000-0x0018eb14^M

  data      = 0x0018eb14-0x001a0000^M

    stack   = 0x0019e000-0x001a0000^M

  init      = 0x001a0000-0x008d6000^M

  available = 0x008d6000-0x037ff000^M

  DMA Zone  = 0x03f00000-0x04000000^M

Hardware Trace Active and Enabled^M

Boot Mode: 0^M

Reset caused by Software reset^M

Blackfin support (C) 2004-2009 Analog Devices, Inc.^M

Compiled for ADSP-BF537 Rev 0.2^M

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

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

NOMPU: setting up cplb tables^M

Instruction Cache Enabled for CPU0^M

  External memory: cacheable in instruction cache^M

Data Cache Enabled for CPU0^M

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

Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 14223^M

Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600 ip=10.100.4.50:10.100.4.174:10.100.4.174:255.255.255.0:bf537-stamp:eth0:off^M

NR_IRQS:98^M

Configuring Blackfin Priority Driven Interrupts^M

PID hash table entries: 256 (order: 8, 1024 bytes)^M

console [ttyBF0] enabled, bootconsole disabled^M

console [ttyBF0] enabled, bootconsole disabled^M

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

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

Memory available: 47724k/65536k RAM, (7384k init code, 1134k kernel code, 526k data, 1024k dma, 7744k reserved)^M

Calibrating delay loop... 997.37 BogoMIPS (lpj=1994752)^M

Security Framework initialized^M

Mount-cache hash table entries: 512^M

Blackfin Scratchpad data SRAM: 4 KB^M

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

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

Blackfin L1 Instruction SRAM: 48 KB (36 KB free)^M

net_namespace: 296 bytes^M

NET: Registered protocol family 16^M

Blackfin DMA Controller^M

stamp_init(): registering device resources^M

bio: create slab <bio-0> at 0^M

NET: Registered protocol family 2^M

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

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

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

TCP: Hash tables configured (established 2048 bind 2048)^M

TCP reno registered^M

NET: Registered protocol family 1^M

msgmni has been set to 93^M

io scheduler noop registered^M

io scheduler anticipatory registered (default)^M

io scheduler cfq registered^M

Serial: Blackfin serial driver^M

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

brd: module loaded^M

bfin_mii_bus: probed^M

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

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

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

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

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

mmc_spi spi0.4: ASSUMING 3.2-3.4 V slot power^M

mmc_spi spi0.4: SD/MMC host mmc0, no DMA, no WP, no poweroff^M

TCP cubic registered^M

NET: Registered protocol family 17^M

rtc-bfin rtc-bfin: setting system clock to 2015-05-07 04:52:17 UTC (1430974337)^M

mmc_spi spi0.4: requested mode not fully supported^M

NULL pointer access^M

Kernel OOPS in progress^M

Deferred Exception context^M

CURRENT PROCESS:^M

COMM=kmmcd PID=52^M

CPU = 0^M

invalid mm^M

return address: [0x000be25a]; contents of:^M

0x000be230:  94cd  3008  e4a8  000a  a0a2  b0f0  e140  0016 ^M

0x000be240:  e100  30ac  e3fa  98f4  6357  e418  001e  0c00 ^M

0x000be250:  1029  0000  6000  e618  001e [e5a8] 0006  4342 ^M

0x000be260:  0c02  1c2c  0000  e522  002a  e450  0055  0a02 ^M

^M

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

Linux version 2.6.30.5-ADI-2010R1-pre-svn7263 (test@uclinux58-mmc-usblan) (gcc version 4.1.2 (ADI svn)) #15 Fri Sep 4 10:24:18 GMT 2009^M

^M

SEQUENCER STATUS:               Not tainted^M

SEQSTAT: 00002027  IPEND: 8008  IMASK: ffff  SYSCFG: 0006^M

  EXCAUSE   : 0x27^M

  physical IVG3 asserted : <0xffa006f8> { _trap + 0x0 }^M

  physical IVG15 asserted : <0xffa00fc8> { _evt_system_call + 0x0 }^M

  logical irq   6 mapped  : <0xffa00374> { _timer_interrupt + 0x0 }^M

  logical irq  10 mapped  : <0x000c39e8> { _bfin_rtc_interrupt + 0x0 }^M

  logical irq  24 mapped  : <0x000b9f78> { _bfin_mac_interrupt + 0x0 }^M

  logical irq  55 mapped  : <0x000cb078> { _mmc_spi_detect_irq + 0x0 }^M

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

RETN: <0x037bde8c> /* kernel dynamic memory */^M

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

RETS: <0x000be2de> { _bfin_spi_setup + 0x13e }^M

PC  : <0x000be25a> { _bfin_spi_setup + 0xba }^M

DCPLB_FAULT_ADDR: <0x00000006> /* Maybe null pointer? */^M

ICPLB_FAULT_ADDR: <0x000be25a> { _bfin_spi_setup + 0xba }^M

^M

PROCESSOR STATE:^M

R0 : 00000000    R1 : 00191458    R2 : 0000ffff    R3 : 00001010^M

R4 : 00000000    R5 : 037bdfac    R6 : 037bc000    R7 : ffffffea^M

P0 : 0000100f    P1 : 00191414    P2 : 0019021c    P3 : 032b58c4^M

P4 : 03299da0    P5 : 00000000    FP : 037bc000    SP : 037bddb0^M

LB0: ffa016cc    LT0: ffa016ca    LC0: 00000000^M

LB1: 0009e1e0    LT1: 0009e1e0    LC1: 00000000^M

B0 : 037e1eb0    L0 : 00000000    M0 : 00000010    I0 : 037bddc4^M

B1 : 0000ffff    L1 : 00000000    M1 : 00000000    I1 : 00163808^M

B2 : 037e1e68    L2 : 00000000    M2 : 00000000    I2 : 037e1eb8^M

B3 : 00000000    L3 : 00000000    M3 : 00000000    I3 : 037e1eb4^M

A0.w: 00000000   A0.x: 00000000   A1.w: 00000000   A1.x: 00000000^M

USP : 00000000  ASTAT: 02003065^M

^M

Hardware Trace:^M

   0 Target : <0x00004ec4> { _trap_c + 0x0 }^M

     Source : <0xffa0068c> { _exception_to_level5 + 0xa4 } CALL pcrel^M

   1 Target : <0xffa005e8> { _exception_to_level5 + 0x0 }^M

     Source : <0xffa0049c> { _bfin_return_from_exception + 0x20 } RTX^M

   2 Target : <0xffa0047c> { _bfin_return_from_exception + 0x0 }^M

     Source : <0xffa00540> { _ex_trap_c + 0x74 } JUMP.S^M

   3 Target : <0xffa004cc> { _ex_trap_c + 0x0 }^M

     Source : <0xffa003a4> { _ex_workaround_261 + 0x1c } JUMP.S^M

   4 Target : <0xffa00388> { _ex_workaround_261 + 0x0 }^M

     Source : <0xffa00760> { _trap + 0x68 } JUMP (P4)^M

   5 Target : <0xffa00718> { _trap + 0x20 }^M

     Source : <0xffa00714> { _trap + 0x1c } IF !CC JUMP^M

   6 Target : <0xffa006f8> { _trap + 0x0 }^M

     Source : <0xffa0049c> { _bfin_return_from_exception + 0x20 } RTX^M

   7 Target : <0xffa0047c> { _bfin_return_from_exception + 0x0 }^M

     Source : <0xffa0039a> { _ex_workaround_261 + 0x12 } IF !CC JUMP^M

   8 Target : <0xffa00388> { _ex_workaround_261 + 0x0 }^M

     Source : <0xffa00760> { _trap + 0x68 } JUMP (P4)^M

   9 Target : <0xffa00718> { _trap + 0x20 }^M

     Source : <0xffa00714> { _trap + 0x1c } IF !CC JUMP^M

  10 Target : <0xffa006f8> { _trap + 0x0 }^M

     Source : <0x000be256> { _bfin_spi_setup + 0xb6 } 0xe618^M

  11 Target : <0x000be24a> { _bfin_spi_setup + 0xaa }^M

     Source : <0x000be2e2> { _bfin_spi_setup + 0x142 } JUMP.S^M

  12 Target : <0x000be2de> { _bfin_spi_setup + 0x13e }^M

     Source : <0x00011442> { _printk + 0x16 } RTS^M

  13 Target : <0x0001143e> { _printk + 0x12 }^M

     Source : <0x000112d4> { _vprintk + 0x128 } RTS^M

  14 Target : <0x000112c8> { _vprintk + 0x11c }^M

     Source : <0xffa00c4a> { __common_int_entry + 0xda } RTI^M

  15 Target : <0xffa00be8> { __common_int_entry + 0x78 }^M

     Source : <0xffa00a24> { _return_from_int + 0x58 } RTS^M

^M

Kernel Stack^M

Stack info:^M

SP: [0x037bdda0] <0x037bdda0> /* kernel dynamic memory */^M

--

 

Follow-ups

 

--- Yi Li                                                    2009-09-28 04:34:42

This bug was also reported on forum:

http://blackfin.uclinux.org/gf/project/uclinux-dist/forum/?action=ForumBrowse&_forum_action=MessageReply&message_id=80494

 

This bug is fixed on trunk (commit 7480) and branch (commit 7479).

 

 

--- Vivi Li                                                  2009-10-15 03:58:25

OK now. So close it.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.spimmc    application/octet-stream    33682    Vivi Li

Attachments

Outcomes