FAQ: [#6614] Kernel panic frequently when test sdio mmc on bf518-ezbrd(2011)

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

[#6614] Kernel panic frequently when test sdio mmc on bf518-ezbrd

Submitted By: Mingquan Pan

Open Date

2011-05-27 04:01:19     Close Date

2012-06-05 03:30:54

Priority:

Medium High     Assignee:

steven miao

Sonic Zhang

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2011R1     Release:

Category:

N/A     Board:

N/A

Processor:

BF518     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

5013

App binary format:

N/A     

Summary: Kernel panic frequently when test sdio mmc on bf518-ezbrd

Details:

 

run dd on bf518 ezkit sdiommc board would make kernel panic frequently.

 

## Booting kernel from Legacy Image at 02000000 ...^M

   Image Name:   bf518-0.1-2.6.39-ADI-2011R1-pre-^M

   Created:      2011-05-26   4:20:44 UTC^M

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)^M

   Data Size:    4376003 Bytes = 4.2 MiB^M

   Load Address: 00001000^M

   Entry Point:  001c3f28^M

   Verifying Checksum ... OK^M

   Uncompressing Kernel Image ... OK^M

Starting Kernel at = 001c3f28^M

Linux version 2.6.39-ADI-2011R1-pre-svn9899 (test@uclinux80-bf518f) (gcc version 4.3.5 (ADI-trunk/svn-5013) ) #48 Thu May 26 12:20:37 CST 2011^M

register early platform devices^M

bootconsole [early_shadow0] enabled^M

bootconsole [early_BFuart0] enabled^M

early printk enabled on early_BFuart0^M

Board Memory: 64MB^M

Kernel Managed Memory: 64MB^M

Memory map:^M

...

...

bfin_mac bfin_mac.0: eth0: Features changed: 0x00004800 -> 0x00004000^M

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

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

i2c /dev entries driver^M

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

dma_alloc_init: dma_page @ 0x02770000 - 256 pages at 0x03f00000^M

TCP cubic registered^M

NET: Registered protocol family 17^M

rtc-bfin rtc-bfin: setting system clock to 2004-05-31 11:27:36 UTC (1086002856)^M

mmc0: host does not support reading read-only switch. assuming write-enable.^M

mmc0: new SD card at address e624^M

mmcblk0: mmc0:e624 SD02G 1.89 GiB ^M

mmcblk0: detected capacity change from 0 to 2032664576^M

mmcblk0: p1^M

IP-Config: Complete:^M

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

     host=bf518f-ezbrd, domain=, nis-domain=(none),^M

     bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=^M

Freeing unused kernel memory: 6236k freed^M

                           _____________________________________^M

...

 

kernel:    Linux release 2.6.39-ADI-2011R1-pre-svn9899, build #48 Thu May 26 12:20:37 CST 2011^M

toolchain: bfin-uclinux-gcc release gcc version 4.3.5 (ADI-trunk/svn-5013) ^M

user-dist: release svn-10167, build #551 Thu May 26 12:19:39 CST 2011^M

root:/> ^[[6nsuccessful boot attempt

************** STEP 3: start TEST - Format entire MMC/SD and create DOS FS

 

mkdir /mnt/mmc^M

root:/> ^[[6ndmesg|grep mmc^M

mmc0: host does not support reading read-only switch. assuming write-enable.^M

mmc0: new SD card at address e624^M

mmcblk0: mmc0:e624 SD02G 1.89 GiB ^M

mmcblk0: detected capacity change from 0 to 2032664576^M

mmcblk0: p1^M

root:/> ^[[6nMMC/SD card detected, test pass

 

...

Case 2 ...PASS

mount -t vfat /dev/mmcblk0 /mnt/mmc^M

root:/> mount dos fs done, test pass

 

Case 3 ...PASS

 

Case 3 ...PASS

^[[6ntime dd conv=fsync if=/dev/zero of=/mnt/mmc/10.bin bs=1M count=10^M

NULL pointer access^M

Kernel OOPS in progress^M

Deferred Exception context^M

CURRENT PROCESS:^M

COMM=dd PID=185  CPU=0^M

TEXT = 0x02c80040-0x02cd1720        DATA = 0x02cd1740-0x02ce46e8^M

BSS = 0x02ce46e8-0x02ce60a0  USER-STACK = 0x02ceef38^M

^M

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

0x00047370:  40c8  a0c1  5041  5e90  a1d0  b140  5e8d  b111 ^M

0x00047380:  6c09  9369  a102  a1d8  0982  1fe6  ac41  9142 ^M

0x00047390:  3090  300b [bc51] 934a  a140  9305  b042  0c38 ^M

0x000473a0:  181e  0000  0000  0000  9162  bc50  9342  bc44 ^M

^M

ADSP-BF518-0.1 400(MHz CCLK) 80(MHz SCLK) (mpu off)^M

Linux version 2.6.39-ADI-2011R1-pre-svn9899 (test@uclinux80-bf518f) (gcc version 4.3.5 (ADI-trunk/svn-5013) ) #48 Thu May 26 12:20:37 CST 2011^M

^M

SEQUENCER STATUS:               Not tainted^M

SEQSTAT: 00002027  IPEND: 8008  IMASK: 003f  SYSCFG: 0006^M

  Peripheral interrupts masked off^M

  Kernel interrupts masked off^M

  EXCAUSE   : 0x27^M

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

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

  logical irq   6 mapped  : <0xffa00370> { _bfin_coretmr_interrupt + 0x0 }^M

  logical irq  21 mapped  : <0x000d08bc> { _bfin_rtc_interrupt + 0x0 }^M

  logical irq  24 mapped  : <0x000dcab8> { _sdh_dma_irq + 0x0 }^M

  logical irq  27 mapped  : <0x000d3038> { _bfin_twi_interrupt_entry + 0x0 }^M

  logical irq  29 mapped  : <0x000b8d28> { _bfin_serial_dma_rx_int + 0x0 }^M

  logical irq  30 mapped  : <0x000b8aa0> { _bfin_serial_dma_tx_int + 0x0 }^M

  logical irq  35 mapped  : <0x000cdea0> { _bfin_mac_interrupt + 0x0 }^M

  logical irq  58 mapped  : <0x000dce8c> { _sdh_stat_irq + 0x0 }^M

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

RETN: <0x02077afc> /* kernel dynamic memory (maybe user-space) */^M

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

RETS: <0x0004780e> { _kmem_cache_alloc + 0x72 }^M

PC  : <0x00047394> { _cache_alloc_refill + 0xf4 }^M

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

ICPLB_FAULT_ADDR: <0x00047394> { _cache_alloc_refill + 0xf4 }^M

PROCESSOR STATE:^M

R0 : 00000048    R1 : ffffffff    R2 : 00200200    R3 : ffffffff^M

R4 : 00000000    R5 : 00100100    R6 : 00000001    R7 : 020072e8^M

P0 : 02e4f000    P1 : 020072e0    P2 : 00000000    P3 : 020035c0^M

P4 : 020072e0    P5 : 0200b600    FP : 020072f0    SP : 02077a20^M

LB0: 000a5662    LT0: 000a5662    LC0: 00000000^M

LB1: 000a1622    LT1: 000a15ec    LC1: 00000000^M

B0 : 00000000    L0 : 00000000    M0 : 0000002c    I0 : 00200200^M

B1 : 00000000    L1 : 00000000    M1 : 00000000    I1 : 00000001^M

B2 : 00000000    L2 : 00000000    M2 : 00000000    I2 : 02aeee00^M

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

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

USP : 02ceed5c  ASTAT: 02003025^M

^M

Hardware Trace:^M

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

     Source : <0xffa006c8> { _exception_to_level5 + 0xa4 } JUMP.L^M

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

     Source : <0xffa004d8> { _bfin_return_from_exception + 0x18 } RTX^M

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

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

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

     Source : <0xffa0078e> { _trap + 0x5a } JUMP (P4)^M

   4 Target : <0xffa00734> { _trap + 0x0 }^M

      FAULT : <0x00047394> { _cache_alloc_refill + 0xf4 } W[P2 + 1] = P1^M

     Source : <0x00047392> { _cache_alloc_refill + 0xf2 } 0x300b^M

   5 Target : <0x0004738c> { _cache_alloc_refill + 0xec }^M

     Source : <0x0004735e> { _cache_alloc_refill + 0xbe } IF CC JUMP pcrel ^M

   6 Target : <0x00047357> { _cache_alloc_refill + 0xb7 }^M

     Source : <0x0004738a> { _cache_alloc_refill + 0xea } IF CC JUMP pcrel (BP)^M

   7 Target : <0x00047358> { _cache_alloc_refill + 0xb8 }^M

     Source : <0x00047352> { _cache_alloc_refill + 0xb2 } IF CC JUMP pcrel (BP)^M

   8 Target : <0x0004733e> { _cache_alloc_refill + 0x9e }^M

     Source : <0x000473b4> { _cache_alloc_refill + 0x114 } IF !CC JUMP pcrel (BP)^M

   9 Target : <0x000473b2> { _cache_alloc_refill + 0x112 }^M

     Source : <0x000473e6> { _cache_alloc_refill + 0x146 } JUMP.S^M

  10 Target : <0x000473dc> { _cache_alloc_refill + 0x13c }^M

     Source : <0x000473a0> { _cache_alloc_refill + 0x100 } IF CC JUMP pcrel ^M

  11 Target : <0x00047357> { _cache_alloc_refill + 0xb7 }^M

     Source : <0x0004738a> { _cache_alloc_refill + 0xea } IF CC JUMP pcrel (BP)^M

  12 Target : <0x00047358> { _cache_alloc_refill + 0xb8 }^M

     Source : <0x00047352> { _cache_alloc_refill + 0xb2 } IF CC JUMP pcrel (BP)^M

  13 Target : <0x00047322> { _cache_alloc_refill + 0x82 }^M

     Source : <0x0004730a> { _cache_alloc_refill + 0x6a } IF CC JUMP pcrel ^M

  14 Target : <0x00047306> { _cache_alloc_refill + 0x66 }^M

     Source : <0x00047302> { _cache_alloc_refill + 0x62 } IF !CC JUMP pcrel (BP)^M

  15 Target : <0x00047300> { _cache_alloc_refill + 0x60 }^M

     Source : <0x000472fc> { _cache_alloc_refill + 0x5c } IF CC JUMP pcrel (BP)^M

Kernel Stack^M

Stack info:^M

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

Memory from 0x02077f20 to 02078000^M

02077f20: 00000001 [02c83992] 00008000  00002000  00000000  02078000  02c83992  02c83992 ^M

02077f40: 02c99828  ffa00fd4  02003004  0289243f  02c8ceaf  02892434  02c8ce9c  00000000 ^M

02077f60: ffffffff  00000000  00000000  00000000  00000000  00000000  00000000  00000000 ^M

02077f80: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000 ^M

02077fa0: 00000004  00000000  02aeee00  02ae44a0  02ceef58  02ceed5c  02ceed68  02ce5670 ^M

02077fc0: 01000004  02ce5788  02ce5b88  02ce4350  00000004  00100000  01000004  00000001 ^M

02077fe0: 00000001  01000004  00100000  01000004  00000001  00000001  00000004  00000006 ^M

Return addresses in stack:^M

Modules linked in:^M

Kernel panic - not syncing: Kernel exception^M

Hardware Trace:^M

Stack info:^M

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

FP: (0x02077e48)^M

Memory from 0x02077920 to 02078000^M

02077920: 02077928  00000013 [001689a8] 0013428c  02077a20  001689a8  0019e4cb  0019e4cb ^M

02077940: 0019e4cb  02077970  020072f0  00004490  02077a20  ffe02014  020035c0  00008008 ^M

02077960: 0000000b  00000027  00000013  02077a20  0000003f  ffffffff  001b8928  001b892c ^M

02077980: 0003000b  00084050  00000001  00000000  000a4050  00000000  00000000  001b8928 ^M

020779a0: 00000001  00000041  001b7ed8  0006505c  00000001  02820000  029a122e  001aaf50 ^M

020779c0: 00036dba  008161a0  0006505c  00000001  000a4050  00000f3e  001b23c8  00000200 ^M

020779e0: 02077a0c  000650ec  02077ab4  02014040  0281ba00  02077a0c  000650f2  ffa006cc ^M

02077a00: 0019b000  00008008  00002027  00100100  00000000  000650f2  0006505c  00000480 ^M

02077a20: 00000480  00008008  00002027  00000000  02077afc  00000480  00047394  0004780e ^M

02077a40: 00000048  02003025  000a1622  000a5662  000a15ec  000a5662  00000000  00000000 ^M

02077a60: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000 ^M

02077a80: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  0000002c ^M

02077aa0: 00000000  02aeee00  00000001  00200200  02ceed5c  020072f0  0200b600  020072e0 ^M

02077ac0: 020035c0  00000000  020072e0  02e4f000  020072e8  00000001  00100100  00000000 ^M

02077ae0: ffffffff  00200200  ffffffff  00000048  00000048  02e4f000  00000006  01077b90 ^

....

02077ee0: 02ce5788  000482fe  00000000  02077ef0  00000000  00000000  00000000 <ffa008c6>^M

02077f00: 0004a048  00000000  ffffe000  02b2dff7  029cbd60 <029cbac0> 01000004  00000001 ^M

02077f20: 00000001  02c83992  00008000  00002000  00000000  02078000  02c83992  02c83992 ^M

02077f40: 02c99828  ffa00fd4  02003004  0289243f  02c8ceaf  02892434  02c8ce9c  00000000 ^M

02077f60: ffffffff  00000000  00000000  00000000  00000000  00000000  00000000  00000000 ^M

02077f80: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000 ^M

02077fa0: 00000004  00000000  02aeee00  02ae44a0  02ceef58  02ceed5c  02ceed68  02ce5670 ^M

02077fc0: 01000004  02ce5788  02ce5b88  02ce4350  00000004  00100000  01000004  00000001 ^M

02077fe0: 00000001  01000004  00100000  01000004  00000001  00000001  00000004  00000006 ^M

Return addresses in stack:^M

    address : <0x00036336> { _generic_file_buffered_write + 0x156 }^M

    address : <0x0004974e> { _do_sync_write + 0x8e }^M

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

    address : <0x00049f62> { _vfs_write + 0x6a }^M

    address : <0xffa008c6> { _system_call + 0x6a }^M

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

^M

^M

U-Boot 2010.12-svn2586 (ADI-2011R1-pre) (Jan 18 2011 - 19:07:43)^M

^M

CPU:   ADSP bf518-0.0 (Detected Rev: 0.1) (parallel flash boot)^M

Board: ADI BF518F EZ-Board board^M

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

Clock: VCO: 400 MHz, Core: 400 MHz, System: 80 MHz^M

RAM:   64 MiB^M

Flash: 4 MiB^M

MMC:   Blackfin SDH: 0^M

In:    serial^M

Out:   serial^M

Err:   serial^M

KGDB:  [on serial] ready^M

...

BusyBox v1.18.4 (2011-05-26 09:23:44 CST) hush - the humble shell^M

^M

root:/> ^[[6nPHY: 0:01 - Link is Up - 100/Full^M

Generate a 10 MB file timeout, test fail

 

Last passed time: 2011_May_24_22_06, ucdist ver: 10175, kernel ver: 9898

 

Case 4 ...FAIL

 

Case 4 ...FAIL

 

Follow-ups

 

--- Vivi Li                                                  2011-06-03 04:06:41

In latest trunk after slob crash issue is fixed, sdio mmc test still crash.

 

--

Linux version 2.6.39-ADI-2011R1-pre-svn9919 (test@uclinux80-bf518f) (gcc

version 4.3.5 (ADI-trunk/svn-5013) ) #90 Thu Jun 2 15:12:49 CST 2011

register early platform devices

bootconsole [early_shadow0] enabled

bootconsole [early_BFuart0] enabled

early printk enabled on early_BFuart0

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x00135d50

  rodata    = 0x00135d50-0x00198898

  bss       = 0x00199000-0x001a9a60

  data      = 0x001a9a60-0x001bc000

    stack   = 0x001ba000-0x001bc000

  init      = 0x001bc000-0x007d3000

  available = 0x007d3000-0x03f00000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace active and enabled

Boot Mode: 1

Recovering from Watchdog event

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

Compiled for ADSP-BF518 Rev 0.1

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

Processor Speed: 400 MHz core clock and 80 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: 16002

Kernel command line: root=/dev/mtdblock0 rw ip=10.100.4.50

earlyprintk=serial,uart0,57600 console=ttyBF0,57600

ip=10.100.4.50:10.100.4.174:10.100.4.174:255.255.255.0:bf518f-ezbrd:eth0:off

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: 55892k/65536k RAM, (6236k init code, 1235k kernel code, 537k

data, 1024k dma, 612k reserved)

NR_IRQS:159

Configuring Blackfin Priority Driven Interrupts

console [ttyBF0] enabled, bootconsole disabled

console [ttyBF0] enabled, bootconsole disabled

Calibrating delay loop... 792.57 BogoMIPS (lpj=1585152)

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: 32 KB (25 KB free)

NET: Registered protocol family 16

Blackfin DMA Controller

ezbrd_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

bfin-spi bfin-spi.1: Blackfin on-chip SPI Controller Driver, Version 1.0,

regs_base@ffc03400, dma channel@5

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

regs_base@ffc01400

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 109

io scheduler noop registered (default)

bfin-uart: Blackfin serial driver

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

bfin-otp: initialized

brd: module loaded

bfin_mii_bus: probed

bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, irq=-1,

mdc_clk=2500000Hz(mdc_div=15)@sclk=80MHz)

bfin_mac bfin_mac.0: eth0: Features changed: 0x00004800 -> 0x00004000

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

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

i2c /dev entries driver

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

dma_alloc_init: dma_page @ 0x02758000 - 256 pages at 0x03f00000

TCP cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 2004-05-31 10:58:21 UTC

(1086001101)

mmc0: host does not support reading read-only switch. assuming write-enable.

mmc0: new SD card at address e624

mmcblk0: mmc0:e624 SD02G 1.89 GiB

mmcblk0: detected capacity change from 0 to 2032664576

mmcblk0:

IP-Config: Complete:

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

     host=bf518f-ezbrd, domain=, nis-domain=(none),

     bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=

Freeing unused kernel memory: 6236k 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.18.4 (2011-06-02 12:13:59 CST) hush - the humble shell

 

root:/> version

kernel:    Linux release 2.6.39-ADI-2011R1-pre-svn9919, build #90 Thu Jun 2

15:12:49 CST 2011

toolchain: bfin-uclinux-gcc release gcc version 4.3.5 (ADI-trunk/svn-5013)

user-dist: release svn-10167, build #1062 Thu Jun 2 15:11:52 CST 2011

root:/> fdisk /dev/mmcblk0

 

The number of cylinders for this disk is set to 62032.

There is nothing wrong with that, but this is larger than 1024,

and could in certain setups cause problems with:

1) software that runs at boot time (e.g., old versions of LILO)

2) booting and partitioning software from other OSs

   (e.g., DOS FDISK, OS/2 FDISK)

 

Command (m for help): n

Command action

   e   extended

   p   primary partition (1-4)

p

Partition number (1-4): 1

First cylinder (1-62032, default 1):

Using default value 1

Last cylinder or +size or +sizeM or +sizeK (1-62032, default 62032): +256M

 

Command (m for help): n

Command action

   e   extended

   p   primary partition (1-4)

p

Partition number (1-4): 2

First cylinder (8194-62032, default 8194):

Using default value 8194

Last cylinder or +size or +sizeM or +sizeK (8194-62032, default 62032):

Using default value 62032

 

Command (m for help): w

The partition table has been altered!

 

Calling ioctl() to re-read partition table.

mmcblk0: p1 p2

mmcblk0: p1 p2

 

WARNING: If you have created or modified any DOS 6.x

partitions, please see the fdisk manual page for additional

information.

Syncing disks.

root:/> fdisk /dev/mmcblk0

 

The number of cylinders for this disk is set to 62032.

There is nothing wrong with that, but this is larger than 1024,

and could in certain setups cause problems with:

1) software that runs at boot time (e.g., old versions of LILO)

2) booting and partitioning software from other OSs

   (e.g., DOS FDISK, OS/2 FDISK)

 

Command (m for help): t

Partition number (1-4): 2

Hex code (type L to list codes): b

Changed system type of partition 2 to b (Win95 FAT32)

 

Command (m for help): w

The partition table has been altered!

 

Calling ioctl() to re-read partition table.

mmcblk0: p1 p2

mmcblk0: p1 p2

 

WARNING: If you have created or modified any DOS 6.x

partitions, please see the fdisk manual page for additional

information.

Syncing disks.

root:/> ls /dev/mmcblk0*

/dev/mmcblk0    /dev/mmcblk0p1  /dev/mmcblk0p2

root:/> mke2fs /dev/mmcblk0p1

mke2fs 1.41.12 (17-May-2010)

ext2fs_check_if_mount: Can't check if filesystem is mounted due to missing mtab

file while determining whether /dev/mmcblk0p1 is mounted.

warning: 23 blocks unused.

 

Filesystem label=

OS type: Linux

Block size=1024 (log=0)

Fragment size=1024 (log=0)

Stride=0 blocks, Stripe width=0 blocks

65792 inodes, 262145 blocks

13108 blocks (5.00%) reserved for the super user

First data block=1

Maximum filesystem blocks=67371008

32 block groups

8192 blocks per group, 8192 fragments per group

2056 inodes per group

Superblock backups stored on blocks:

        8193, 24577, 40961, 57345, 73729, 204801, 221185

 

Writing inode tables:  0/32^H^H^H^H^H 1/32^H^H^H^H^H 2/32^H^H^H^H^H

3/32^H^H^H^H^H 4/32^H^H^H^H^H 5/32^H^H^H^H^H 6/32^H^H^H^H^H 7/32^H^H^H^H^H

8/32^H^H^H^H^H

9/32^H^H^H^H^H10/32^H^H^H^H^H11/32^H^H^H^H^H12/32^H^H^H^H^H13/32^H^H^H^H^H14/32^H^H^H^H^H15/32^H^H^H^H^H16/32^H^H^H^H^H17/32^H^H^H^H^H18/32^H^H^H^H^H19/32^H^H^H^H^H20/32^H^H^H^H^H21/32^H^H^H^H^H22/32^H^H^H^H^H23/32^H^H^H^H^H24/32^H^H^H^H^H25/32^H^H^H^H^H26/32^H^H^H^H^H27/32^H^H^H^H^H28/32^H^H^H^H^H29/32^H^H^H^H^H30/32^H^H^H^H^H31/32^H^H^H^H^Hdone

        

Writing superblocks and filesystem accounting information: done

 

This filesystem will be automatically checked every 34 mounts or

180 days, whichever comes first.  Use tune2fs -c or -i to override.

root:/> mount -t ext2 /dev/mmcblk0p1 /mnt/mmc1

root:/> time mkdosfs -F 32 /dev/mmcblk0p2

mkdosfs 3.0.5 (27 Jul 2009)

real    0m 2.38s

user    0m 0.00s

sys     0m 0.25s

root:/> mount -t vfat /dev/mmcblk0p2 /mnt/mmc2

root:/> time dd conv=fsync if=/dev/zero of=/mnt/mmc1/10.bin bs=1M count=10

NULL pointer access

Kernel OOPS in progress

Deferred Exception context

CURRENT PROCESS:

COMM=kworker/0:1 PID=152  CPU=0

invalid mm

return address: [0x00046f5a]; contents of:

0x00046f30:  e10b  af50  4f45  4f4e  200f  304c  a128  0808

0x00046f40:  181e  0000  0000  0000  0030  ad68  0860  1822

0x00046f50:  0000  0000  0000  ac41  9142 [bc51] 934a  9305

  EXCAUSE   : 0x27

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

  physical IVG15 asserted : <0xffa00f70> { _evt_system_call + 0x0 }

  logical irq   6 mapped  : <0xffa00370> { _bfin_coretmr_interrupt + 0x0

}

  logical irq  21 mapped  : <0x000d08c0> { _bfin_rtc_interrupt + 0x0 }

  logical irq  24 mapped  : <0x000dcabc> { _sdh_dma_irq + 0x0 }

  logical irq  27 mapped  : <0x000d303c> { _bfin_twi_interrupt_entry +

0x0 }

  logical irq  29 mapped  : <0x000b8d2c> { _bfin_serial_dma_rx_int + 0x0

}

  logical irq  30 mapped  : <0x000b8aa4> { _bfin_serial_dma_tx_int + 0x0

}

  logical irq  35 mapped  : <0x000cdea4> { _bfin_mac_interrupt + 0x0 }

  logical irq  58 mapped  : <0x000dce90> { _sdh_stat_irq + 0x0 }

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

RETN: <0x02813ec4> /* kernel dynamic memory (maybe user-space) */

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

RETS: <0x00046eba> { _drain_array + 0x76 }

PC  : <0x00046ddc> { _free_block + 0x80 }

DCPLB_FAULT_ADDR: <0x00000004> /* Maybe null pointer? */

ICPLB_FAULT_ADDR: <0x00046ddc> { _free_block + 0x80 }

PROCESSOR STATE:

R0 : 00100100    R1 : 00000000    R2 : 02c29658    R3 : 00000000

R4 : 020033cc    R5 : 001a474c    R6 : 0000000b    R7 : 00000000

P0 : 001b7ed8    P1 : 02b93060    P2 : 00000000    P3 : 02006074

P4 : 02002d60    P5 : 02c29040    FP : 02003380    SP : 02813de8

LB0: 000a56d2    LT0: 000a56d2    LC0: 00000000

LB1: 00000001    LT1: 00000000    LC1: 00000000

B0 : 00000000    L0 : 00000000    M0 : 00000000    I0 : 00000000

B1 : 00000000    L1 : 00000000    M1 : 00000000    I1 : ffffffff

B2 : 00000000    L2 : 00000000    M2 : 00000000    I2 : 00000000

B3 : 00000000    L3 : 00000000    M3 : 00000000    I3 : 00000000

A0.w: 0000002e   A0.x: 00000000   A1.w: 0000002e   A1.x: 00000000

USP : 00000000  ASTAT: 02002000

 

Hardware Trace:

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

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

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

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

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

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

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

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

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

      FAULT : <0x00046ddc> { _free_block + 0x80 } W[P2 + 1] = P1

     Source : <0x00046dda> { _free_block + 0x7e } P2 = [P5]

   5 Target : <0x00046dc0> { _free_block + 0x64 }

     Source : <0x00046dbc> { _free_block + 0x60 } IF CC JUMP pcrel (BP)

   6 Target : <0x00046da8> { _free_block + 0x4c }

     Source : <0x00046d80> { _free_block + 0x24 } JUMP.S

   7 Target : <0x00046d5c> { _free_block + 0x0 }

     Source : <0x00046eb6> { _drain_array + 0x72 } CALL pcrel

   8 Target : <0x00046ea8> { _drain_array + 0x64 }

     Source : <0x00046ea2> { _drain_array + 0x5e } IF !CC JUMP pcrel

(BP)

   9 Target : <0x00046e6e> { _drain_array + 0x2a }

     Source : <0x00046e68> { _drain_array + 0x24 } IF CC JUMP pcrel (BP)

  10 Target : <0x00046e44> { _drain_array + 0x0 }

     Source : <0x0004700e> { _cache_reap + 0x66 } CALL pcrel

  11 Target : <0x00046fec> { _cache_reap + 0x44 }

     Source : <0x00134a90> { __cond_resched + 0x20 } RTS

  12 Target : <0x00134a8a> { __cond_resched + 0x1a }

     Source : <0x00134a82> { __cond_resched + 0x12 } IF CC JUMP pcrel

(BP)

  13 Target : <0x00134a70> { __cond_resched + 0x0 }

     Source : <0x00046fe8> { _cache_reap + 0x40 } CALL pcrel

  14 Target : <0x00046fe8> { _cache_reap + 0x40 }

     Source : <0x00047056> { _cache_reap + 0xae } JUMP.S

  15 Target : <0x00047056> { _cache_reap + 0xae }

     Source : <0x00046f86> { _drain_freelist + 0x92 } RTS

Kernel Stack

Stack info:

SP: [0x02813f28] <0x02813f28> /* kernel dynamic memory (maybe

user-space) */

FP: (0x02813fa0)

Memory from 0x02813f20 to 02814000

02813f20: 00000001  00000000 [00000000] 001b206c  001ad1e0 <0001f5c0>

001aaf50  001b206c

02813f40: 0275d320  0200d205  00046fa8  0200d200  00000000  00000002  02812008

02812000

02813f60: 02812000  001aaf50  0001ff5c  0275d320  001ad1e0  00000000  0275d330

0275d330

02813f80: 001ad360  001a3f40  02025f00  0001fe34  00000000  02812000  02812000

02812000

02813fa0:(00000000)<00023a74> 02025f00  0001fe34  00000000  0275d320

00000000  00000000

02813fc0: 00000000  00000000  00000000  00023a18  00000000  0275d320  00000000

02813fdc

02813fe0: 02813fdc

00000000  00000000  00000000  00000000  ffffffff  00000006

Return addresses in stack:

    address : <0x0001f5c0> { _process_one_work + 0x120 }

   frame  1 : <0x00023a74> { _kthread + 0x5c }

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

Modules linked in:

Kernel panic - not syncing: Kernel exception

Hardware Trace:

Stack info:

SP: [0x02813cf0] <0x02813cf0> /* kernel dynamic memory (maybe

user-space) */

FP: (0x02813fa0)

Memory from 0x02813cf0 to 02814000

02813cf0:[001689b0] 00134288  02813de8  001689b0  0019e4cb  0019e4cb  0019e4cb

02813d38

02813d10: 02003380  00004490  02813de8  ffe02014  02006074  00008008  0000000b

00000027

02813d30: 00000013  02813de8  0000003f  ffffffff  00000006  02813d74  0003000b

02813d74

02813d50: 0000d4aa  00000006  02813d8c  0000ae02  0277dd8c  0202b820  0202b84c

02813d8c

02813d70: 0000ae12  00000000  001ab9c4  0277dd60  027674d4  001aba10  001aba10

02813db8

02813d90:<0000b734> 0202b820  0277dd60  001aba10  00000001  001aba10

00000000  00000001

02813db0: 001aba10  00000000  02813ddc  0000de82  0277dd60  ffa006cc  0019b000

00008008

02813dd0: 00002027  001a474c  020033cc  02813e04 <0000bdfa> 00000480

00000480  00008008

02813df0: 00002027  00000000  02813ec4  00000480  00046ddc  00046eba  00100100

02002000

02813e10: 00000001  000a56d2  00000000  000a56d2  00000000  00000000  0000002e

00000000

02813e30: 0000002e  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02813e50: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02813e70: ffffffff  00000000  00000000  02003380  02c29040  02002d60  02006074

00000000

02813e90: 02b93060  001b7ed8  00000000  0000000b  001a474c  020033cc  00000000

02c29658

02813eb0: 00000000  00100100  00100100  001b7ed8  00000006  001aaf50  00000000

00200200

02813ed0: 00000000  001a4794  00046eba  0000000b  02006060  001acd10  02006070

00000044

02813ef0: ffffffbc  000003e8  00047056  020075a0  02003980  00000000  00047012

02002d60

02813f10: 02003380  00000000  00000000  001aba10  00000001  00000000  00000000

001b206c

02813f30: 001ad1e0 <0001f5c0> 001aaf50  001b206c  0275d320  0200d205

00046fa8  0200d200

02813f50: 00000000  00000002  02812008  02812000  02812000  001aaf50  0001ff5c

0275d320

02813f70: 001ad1e0  00000000  0275d330  0275d330  001ad360  001a3f40  02025f00

0001fe34

02813f90: 00000000  02812000  02812000  02812000 (00000000)<00023a74>

02025f00  0001fe34

02813fb0: 00000000  0275d320  00000000  00000000  00000000  00000000  00000000

00023a18

02813fd0: 00000000  0275d320  00000000  02813fdc  02813fdc

00000000  00000000

02813ff0: 00000000  00000000  ffffffff  00000006

Return addresses in stack:

    address : <0x0000b734> { _check_preempt_curr + 0x74 }

    address : <0x0000bdfa> { ___wake_up_common + 0x3a }

    address : <0x0001f5c0> { _process_one_work + 0x120 }

   frame  1 : <0x00023a74> { _kthread + 0x5c }

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

 

 

U-Boot 2010.12-svn2586 (ADI-2011R1-pre) (Jan 18 2011 - 19:07:43)

 

CPU:   ADSP bf518-0.0 (Detected Rev: 0.1) (parallel flash boot)

Board: ADI BF518F EZ-Board board

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

Clock: VCO: 400 MHz, Core: 400 MHz, System: 80 MHz

RAM:   64 MiB

Flash: 4 MiB

MMC:   Blackfin SDH: 0

In:    serial

Out:   serial

Err:   serial

KGDB:  [on serial] ready

Net:   bfin_mac

Hit any key to stop autoboot:

bfin>

--

 

--- steven miao                                              2011-06-16 03:33:58

Not repeatable, but it crashed once when unmount the vfat partition.

 

--- Vivi Li                                                  2011-09-21 04:11:39

Crashes don't only happen with dd command.

It can happen any time when operates MMC.

 

--- Vivi Li                                                  2011-09-21 04:44:54

I attach my configuration for your reference.

 

--- steven miao                                              2011-10-20 06:31:13

Not repeatable in my bf518 board, I'll try another board

 

--- Vivi Li                                                  2011-10-21 02:34:14

Please try to test in board on regression machine 10.99.29.80.

 

--- steven miao                                              2011-10-28 03:11:12

can repeatable now, probably happens when slab reap

 

--- Sonic Zhang                                              2011-11-03 06:28:00

The crash disappears after update to kernel 3.0.8.

 

Case 27 failure is fixed by limit mmc dma segment len for bf518.

Should add rootwait to mmc boot args in test suites as well.

 

--- Vivi Li                                                  2012-06-05 04:30:29

rootwait is added to test script.

Close this bug.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.config.sdiommc    application/octet-stream    51509    Vivi Li

config.linux.sdiommc    application/octet-stream    34925    Vivi Li

Outcomes