[#5754] Error occurs when write to SD card with spimmc in kernel trunk

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

[#5754] Error occurs when write to SD card with spimmc in kernel trunk

Submitted By: Vivi Li

Open Date

2009-12-07 23:59:28     Close Date

2010-07-13 01:09:13

Priority:

Medium     Assignee:

Sonic Zhang

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2010R1     Release:

Category:

N/A     Board:

N/A

Processor:

BF537     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

gcc4.3_trunk3679

App binary format:

N/A     

Summary: Error occurs when write to SD card with spimmc in kernel trunk

Details:

 

Error occurs when write to SD card in BF537-stamp with spimmc card in kernel trunk.

 

The last passed version:

--

kernel:    Linux release 2.6.31.6-ADI-2010R1-pre-svn7874, build #66 Thu Nov 26 00:24:00 GMT 2009

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

user-dist: release svn-9182, build #2119 Thu Nov 26 00:23:21 GMT 2009

--

 

The first failed version:

--

kernel:    Linux release 2.6.31.6-ADI-2010R1-pre-svn7883, build #68 Fri Nov 27 01:10:57 GMT 2009

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

user-dist: release svn-9182, build #2196 Fri Nov 27 01:10:18 GMT 2009

--

 

--

mke2fs /dev/mmcblk0p1

mke2fs 1.41.9 (22-Aug-2009)

ext2fs_check_if_mount: Can't check if filesystem is mounted due to missing mtab file while determining whether /dev/mmcblk0p1 is mounted.

Filesystem label=

OS type: Linux

Block size=1024 (log=0)

Fragment size=1024 (log=0)

8192 inodes, 32760 blocks

1638 blocks (5.00%) reserved for the super user

First data block=1

Maximum filesystem blocks=33554432

4 block groups

8192 blocks per group, 8192 fragments per group

2048 inodes per group

Superblock backups stored on blocks:

        8193, 24577

 

Writing inode tables: done

Writing superblocks and filesystem accounting information: done

 

This filesystem will be automatically checked every 35 mounts or

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

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

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

mkdosfs 3.0.5 (27 Jul 2009)

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

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

mmcblk0: error -84 transferring data, sector 1580, nr 2, card status 0x0

end_request: I/O error, dev mmcblk0, sector 1580

Buffer I/O error on device mmcblk0p1, logical block 782

lost page write due to I/O error on mmcblk0p1

mmcblk0: error -110 sending status comand

mmcblk0: error -110 sending read/write command, response 0x0, card status 0x0

end_request: I/O error, dev mmcblk0, sector 1584

end_request: I/O error, dev mmcblk0, sector 1592

end_request: I/O error, dev mmcblk0, sector 1600

end_request: I/O error, dev mmcblk0, sector 1608

end_request: I/O error, dev mmcblk0, sector 1616

end_request: I/O error, dev mmcblk0, sector 1624

end_request: I/O error, dev mmcblk0, sector 1632

--

 

Follow-ups

 

--- Cliff Cai                                                2010-01-04 02:52:40

it wroks for me on current svn head 8107.

Linux version 2.6.32.2-ADI-2010R1-pre-svn8107 (cliff@debiancliff) (gcc version

4.1.2 (ADI svn)) #636 Mon Jan 4 23:25:52 CST 20

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

  rodata    = 0x0012af10-0x00192ca0

  bss       = 0x00193000-0x001a3bec

  data      = 0x001a3bec-0x001b4000

    stack   = 0x001b4000-0x001b6000

  init      = 0x001b6000-0x00856000

  available = 0x00856000-0x03800000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace Active and Enabled

Boot Mode: 0

Blackfin support (C) 2004-2009 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 panic=1 ip=f

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: 48240k/65536k RAM, (6784k init code, 1191k kernel code, 557k

data, 1024k dma, 7740k reserved)

Hierarchical RCU implementation.

NR_IRQS:98

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

NET: Registered protocol family 16

Blackfin DMA Controller

stamp_init(): registering device resources

bio: create slab <bio-0> at 0

Switching to clocksource jiffies

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

NET: Registered protocol family 1

msgmni has been set to 94

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

bfin-uart: Blackfin serial driver

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

brd: module loaded

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

regs_base@ffc00500, dma channel@7

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: Blackfin on-chip Ethernet MAC driver, Version 1.1

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

i2c /dev entries driver

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

regs_base@ffc01400

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

mmc_spi spi0.4: ASSUMING SPI bus stays unshared!

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

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

TCP cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 1970-01-01 01:14:09 UTC (4449)

mmc_spi spi0.4: can't change chip-select polarity

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

mmc0: new SD card on SPI

mmcblk0: mmc0:0000 SD01G 968 MiB

mmcblk0: p1

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=

Freeing unused kernel memory: 6784k freed

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

                           _____________________________________

        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.15.3 (2010-01-04 22:16:57 CST) hush - the humble shell

 

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

 

root:/>

root:/> mke2fs /dev/mmcblk0p1

mke2fs 1.41.9 (22-Aug-2009)

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

file while determining whether /dev/mmcblk0p1.

Filesystem label=

OS type: Linux

Block size=4096 (log=2)

Fragment size=4096 (log=2)

62080 inodes, 247998 blocks

12399 blocks (5.00%) reserved for the super user

First data block=0

Maximum filesystem blocks=255852544

8 block groups

32768 blocks per group, 32768 fragments per group

7760 inodes per group

Superblock backups stored on blocks:

        32768, 98304, 163840, 229376

 

Writing inode tables: done                           

Writing superblocks and filesystem accounting information: done

 

This filesystem will be automatically checked every 28 mounts or

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

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

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

10+0 records in

10+0 records out

real    0m 3.16s

user    0m 0.00s

sys     0m 0.42s

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

10+0 records in

10+0 records out

real    0m 5.46s

user    0m 0.00s

sys     0m 0.42s

 

 

--- Vivi Li                                                  2010-02-24 04:28:41

Out of date now.

Close it.

 

--- Vivi Li                                                  2010-03-02 01:04:15

Reopen this bug as I can see similar problem when running bonnie++.

 

--

root:/> mke2fs /dev/mmcblk0p1

mke2fs 1.41.9 (22-Aug-2009)

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

file while determining whether /dev/mmcblk0p1 is.

Filesystem label=

OS type: Linux

Block size=1024 (log=0)

Fragment size=1024 (log=0)

62000 inodes, 247032 blocks

12351 blocks (5.00%) reserved for the super user

First data block=1

Maximum filesystem blocks=67371008

31 block groups

8192 blocks per group, 8192 fragments per group

2000 inodes per group

Superblock backups stored on blocks:

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

 

Writing inode tables: done

Writing superblocks and filesystem accounting information: done

 

This filesystem will be automatically checked every 25 mounts or

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

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

root:/> bonnie++ -u root -d /mnt -s 200M

Using uid:0, gid:0.

Writing a byte at a time...mmcblk0: error -84 transferring data, sector 534, nr

4, card status 0x0

end_request: I/O error, dev mmcblk0, sector 534

Buffer I/O error on device mmcblk0p1, logical block 259

lost page write due to I/O error on mmcblk0p1

end_request: I/O error, dev mmcblk0, sector 536

Buffer I/O error on device mmcblk0p1, logical block 260

lost page write due to I/O error on mmcblk0p1

mmcblk0: error -110 sending status comand

mmcblk0: error -110 sending read/write command, response 0x0, card status 0x0

end_request: I/O error, dev mmcblk0, sector 11306

Buffer I/O error on device mmcblk0p1, logical block 5645

lost page write due to I/O error on mmcblk0p1

mmcblk0: retrying using single block read

mmcblk0: error -110 sending status comand

mmcblk0: error -110 sending read/write command, response 0x0, card status 0x0

end_request: I/O error, dev mmcblk0, sector 534

mmcblk0: error -110 sending status comand

mmcblk0: error -110 sending read/write command, response 0x0, card status 0x0

end_request: I/O error, dev mmcblk0, sector 535

mmcblk0: error -110 sending status comand

mmcblk0: error -110 sending read/write command, response 0x0, card status 0x0

end_request: I/O error, dev mmcblk0, sector 11820

Buffer I/O error on device mmcblk0p1, logical block 5902

lost page write due to I/O error on mmcblk0p1

end_request: I/O error, dev mmcblk0, sector 11822

Buffer I/O error on device mmcblk0p1, logical block 5903

lost page write due to I/O error on mmcblk0p1

mmcblk0: error -110 sending status comand

mmcblk0: error -110 sending read/write command, response 0x0, card status 0x0

end_request: I/O error, dev mmcblk0, sector 18

Buffer I/O error on device mmcblk0p1, logical block 1

lost page write due to I/O error on mmcblk0p1

EXT2-fs error (device mmcblk0p1): read_block_bitmap: Cannot read block bitmap -

block_group = 0, block_bitmap = 259

mmcblk0: retrying using single block read

mmcblk0: error -110 sending status comand

mmcblk0: error -110 sending read/write command, response 0x0, card status 0x0

end_request: I/O error, dev mmcblk0, sector 11820

mmcblk0: error -110 sending status comand

mmcblk0: error -110 sending read/write command, response 0x0, card status 0x0

end_request: I/O error, dev mmcblk0, sector 11821

mmcblk0: retrying using single block read

mmcblk0: error -110 sending status comand

mmcblk0: error -110 sending read/write command, response 0x0, card status 0x0

end_request: I/O error, dev mmcblk0, sector 11820

mmcblk0: error -110 sending status comand

mmcblk0: error -110 sending read/write command, response 0x0, card status 0x0

end_request: I/O error, dev mmcblk0, sector 11821

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

Badness at fs/buffer.c:1159

 

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

Linux version 2.6.32.9-ADI-2010R1-pre-svn8361

(test@uclinux58-mmc-usblan-btuart) (gcc version 4.3.4 (ADI-trunk/svn-3815) ) #16

T0

 

SEQUENCER STATUS:               Not tainted

SEQSTAT: 00002021  IPEND: 8008  IMASK: ffff  SYSCFG: 0006

  EXCAUSE   : 0x21

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

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

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

}

  logical irq  10 mapped  : <0x000c9d4c> { _bfin_rtc_interrupt + 0x0 }

  logical irq  18 mapped  : <0x000b62f0> { _bfin_serial_dma_rx_int + 0x0

}

  logical irq  19 mapped  : <0x000b6050> { _bfin_serial_dma_tx_int + 0x0

}

  logical irq  24 mapped  : <0x000c5398> { _bfin_mac_interrupt + 0x0 }

  logical irq  55 mapped  : <0x000d22e8> { _mmc_spi_detect_irq + 0x0 }

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

RETN: <0x011e5b40> /* kernel dynamic memory */

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

RETS: <0x0007e628> { _ext2_sync_super + 0x28 }

PC  : <0x0005f074> { _mark_buffer_dirty + 0xa0 }

DCPLB_FAULT_ADDR: <0x00197d40> /* kernel dynamic memory */

ICPLB_FAULT_ADDR: <0x0005f074> { _mark_buffer_dirty + 0xa0 }

PROCESSOR STATE:

R0 : 00000000    R1 : 0000001f    R2 : 00000000    R3 : 00000000

R4 : 00000400    R5 : 00000001    R6 : 001679e4    R7 : 001679d0

P0 : 00000000    P1 : 027f9858    P2 : 00197d40    P3 : 011e5c14

P4 : 02896000    P5 : 0096b400    FP : 00000000    SP : 011e5a64

LB0: ffa0171c    LT0: ffa0171a    LC0: 00000000

LB1: 0298bbb5    LT1: 0298bbb4    LC1: 00000000

B0 : 00000000    L0 : 00000000    M0 : 00000004    I0 : 029e3dbc

B1 : 00000000    L1 : 00000000    M1 : 00000000    I1 : 029dac40

B2 : 00000000    L2 : 00000000    M2 : 00000000    I2 : 029e3ea8

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

A0.w: 00002855   A0.x: 00000000   A1.w: 00000055   A1.x: 00000000

USP : 009c88f4  ASTAT: 02001025

 

Hardware Trace:

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

     Source : <0xffa006c4> { _exception_to_level5 + 0xa4 } CALL pcrel

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

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

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

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

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

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

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

     Source : <0xffa0074a> { _trap + 0x1a } IF !CC JUMP

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

     Source : <0x0005f072> { _mark_buffer_dirty + 0x9e } IF CC JUMP

   6 Target : <0x0005f066> { _mark_buffer_dirty + 0x92 }

     Source : <0x0005efda> { _mark_buffer_dirty + 0x6 } IF !CC JUMP

   7 Target : <0x0005efd4> { _mark_buffer_dirty + 0x0 }

     Source : <0x0007e624> { _ext2_sync_super + 0x24 } CALL pcrel

   8 Target : <0x0007e61c> { _ext2_sync_super + 0x1c }

     Source : <0x00026940> { _get_seconds + 0xc } RTS

   9 Target : <0x00026934> { _get_seconds + 0x0 }

     Source : <0x0007e618> { _ext2_sync_super + 0x18 } CALL pcrel

  10 Target : <0x0007e616> { _ext2_sync_super + 0x16 }

     Source : <0x0007b6f6> { _ext2_count_free_inodes + 0x46 } RTS

  11 Target : <0x0007b6d0> { _ext2_count_free_inodes + 0x20 }

     Source : <0x00079554> { _ext2_get_group_desc + 0x48 } RTS

  12 Target : <0x0007954a> { _ext2_get_group_desc + 0x3e }

     Source : <0x00079546> { _ext2_get_group_desc + 0x3a } IF !CC JUMP

  13 Target : <0x0007950c> { _ext2_get_group_desc + 0x0 }

     Source : <0x0007b6cc> { _ext2_count_free_inodes + 0x1c } CALL pcrel

  14 Target : <0x0007b6c8> { _ext2_count_free_inodes + 0x18 }

     Source : <0x0007b6ec> { _ext2_count_free_inodes + 0x3c } IF CC JUMP

  15 Target : <0x0007b6d0> { _ext2_count_free_inodes + 0x20 }

     Source : <0x00079554> { _ext2_get_group_desc + 0x48 } RTS

mmcblk0: error -110 sending status comand

mmcblk0: error -110 sending read/write command, response 0x0, card status 0x0

end_request: I/O error, dev mmcblk0, sector 18

Buffer I/O error on device mmcblk0p1, logical block 1

lost page write due to I/O error on mmcblk0p1

EXT2-fs error (device mmcblk0p1): ext2_free_branches: Read failure, inode=12,

block=5902

Can't write(m - disk full?mcblk0: error -110 sending status comand

 

mmcblk0: error -110 sending read/write command, response 0x0, card status 0x0

end_request: I/O error, dev mmcblk0, sector 11282

end_request: I/O error, dev mmcblk0, sector 11290

end_request: I/O error, dev mmcblk0, sector 11298

mmcblk0: error -110 sending status comand

mmcblk0: error -110 sending read/write command, response 0x0, card status 0x0

end_request: I/O error, dev mmcblk0, sector 11308

end_request: I/O error, dev mmcblk0, sector 11316

end_request: I/O error, dev mmcblk0, sector 11324

end_request: I/O error, dev mmcblk0, sector 11332

end_request: I/O error, dev mmcblk0, sector 11340

end_request: I/O error, dev mmcblk0, sector 11348

end_request: I/O error, dev mmcblk0, sector 11356

end_request: I/O error, dev mmcblk0, sector 11364

end_request: I/O error, dev mmcblk0, sector 11372

end_request: I/O error, dev mmcblk0, sector 11380

end_request: I/O error, dev mmcblk0, sector 11388

end_request: I/O error, dev mmcblk0, sector 11396

end_request: I/O error, dev mmcblk0, sector 11404

end_request: I/O error, dev mmcblk0, sector 11412

end_request: I/O error, dev mmcblk0, sector 11420

end_request: I/O error, dev mmcblk0, sector 11428

mmcblk0: error -110 sending status comand

mmcblk0: error -110 sending read/write command, response 0x0, card status 0x0

end_request: I/O error, dev mmcblk0, sector 11436

end_request: I/O error, dev mmcblk0, sector 11444

end_request: I/O error, dev mmcblk0, sector 11452

end_request: I/O error, dev mmcblk0, sector 11460

end_request: I/O error, dev mmcblk0, sector 11468

end_request: I/O error, dev mmcblk0, sector 11476

end_request: I/O error, dev mmcblk0, sector 11484

end_request: I/O error, dev mmcblk0, sector 11492

end_request: I/O error, dev mmcblk0, sector 11500

end_request: I/O error, dev mmcblk0, sector 11508

end_request: I/O error, dev mmcblk0, sector 11516

end_request: I/O error, dev mmcblk0, sector 11524

end_request: I/O error, dev mmcblk0, sector 11532

end_request: I/O error, dev mmcblk0, sector 11540

end_request: I/O error, dev mmcblk0, sector 11548

end_request: I/O error, dev mmcblk0, sector 11556

mmcblk0: error -110 sending status comand

mmcblk0: error -110 sending read/write command, response 0x0, card status 0x0

end_request: I/O error, dev mmcblk0, sector 11564

end_request: I/O error, dev mmcblk0, sector 11572

end_request: I/O error, dev mmcblk0, sector 11580

end_request: I/O error, dev mmcblk0, sector 11588

end_request: I/O error, dev mmcblk0, sector 11596

end_request: I/O error, dev mmcblk0, sector 11604

end_request: I/O error, dev mmcblk0, sector 11612

end_request: I/O error, dev mmcblk0, sector 11620

end_request: I/O error, dev mmcblk0, sector 11628

end_request: I/O error, dev mmcblk0, sector 11636

end_request: I/O error, dev mmcblk0, sector 11644

end_request: I/O error, dev mmcblk0, sector 11652

end_request: I/O error, dev mmcblk0, sector 11660

end_request: I/O error, dev mmcblk0, sector 11668

end_request: I/O error, dev mmcblk0, sector 11676

end_request: I/O error, dev mmcblk0, sector 11684

mmcblk0: error -110 sending status comand

mmcblk0: error -110 sending read/write command, response 0x0, card status 0x0

end_request: I/O error, dev mmcblk0, sector 11692

end_request: I/O error, dev mmcblk0, sector 11700

end_request: I/O error, dev mmcblk0, sector 11708

end_request: I/O error, dev mmcblk0, sector 11716

end_request: I/O error, dev mmcblk0, sector 11724

end_request: I/O error, dev mmcblk0, sector 11732

end_request: I/O error, dev mmcblk0, sector 11740

end_request: I/O error, dev mmcblk0, sector 11748

end_request: I/O error, dev mmcblk0, sector 11756

end_request: I/O error, dev mmcblk0, sector 11764

end_request: I/O error, dev mmcblk0, sector 11772

end_request: I/O error, dev mmcblk0, sector 11780

end_request: I/O error, dev mmcblk0, sector 11788

end_request: I/O error, dev mmcblk0, sector 11796

end_request: I/O error, dev mmcblk0, sector 11804

end_request: I/O error, dev mmcblk0, sector 11812

mmcblk0: error -110 sending status comand

mmcblk0: error -110 sending read/write command, response 0x0, card status 0x0

end_request: I/O error, dev mmcblk0, sector 11824

end_request: I/O error, dev mmcblk0, sector 11832

end_request: I/O error, dev mmcblk0, sector 11840

end_request: I/O error, dev mmcblk0, sector 11848

end_request: I/O error, dev mmcblk0, sector 11856

end_request: I/O error, dev mmcblk0, sector 11864

end_request: I/O error, dev mmcblk0, sector 11872

end_request: I/O error, dev mmcblk0, sector 11880

mmcblk0: error -110 sending status comand

mmcblk0: error -110 sending read/write command, response 0x0, card status 0x0

end_request: I/O error, dev mmcblk0, sector 11822

Buffer I/O error on device mmcblk0p1, logical block 5903

lost page write due to I/O error on mmcblk0p1

mmcblk0: error -110 sending status comand

mmcblk0: error -110 sending read/write command, response 0x0, card status 0x0

end_request: I/O error, dev mmcblk0, sector 540

Buffer I/O error on device mmcblk0p1, logical block 262

lost page write due to I/O error on mmcblk0p1

IO error syncing ext2 inode [mmcblk0p1:0000000c]

Can't sync file.mmcblk0: retrying using single block read

 

mmcblk0: error -110 sending status comand

mmcblk0: error -110 sending read/write command, response 0x0, card status 0x0

end_request: I/O error, dev mmcblk0, sector 540

mmcblk0: error -110 sending status comand

mmcblk0: error -110 sending read/write command, response 0x0, card status 0x0

end_request: I/O error, dev mmcblk0, sector 541

mmcblk0: error -110 sending status comand

mmcblk0: error -110 sending read/write command, response 0x0, card status 0x0

end_request: I/O error, dev mmcblk0, sector 18

Buffer I/O error on device mmcblk0p1, logical block 1

lost page write due to I/O error on mmcblk0p1

EXT2-fs error (device mmcblk0p1): ext2_get_inode: unable to read inode block -

inode=12, block=262

mmcblk0: retrying using single block read

mmcblk0: error -110 sending status comand

mmcblk0: error -110 sending read/write command, response 0x0, card status 0x0

end_request: I/O error, dev mmcblk0, sector 534

mmcblk0: error -110 sending status comand

mmcblk0: error -110 sending read/write command, response 0x0, card status 0x0

end_request: I/O error, dev mmcblk0, sector 535

mmcblk0: error -110 sending status comand

mmcblk0: error -110 sending read/write command, response 0x0, card status 0x0

end_request: I/O error, dev mmcblk0, sector 18

EXT2-fs error (device mmcblk0p1): read_block_bitmap: Cannot read block bitmap -

block_group = 0, block_bitmap = 259

mmcblk0: retrying using single block read

mmcblk0: error -110 sending status comand

mmcblk0: error -110 sending read/write command, response 0x0, card status 0x0

end_request: I/O error, dev mmcblk0, sector 11306

mmcblk0: error -110 sending status comand

mmcblk0: error -110 sending read/write command, response 0x0, card status 0x0

end_request: I/O error, dev mmcblk0, sector 11307

mmcblk0: error -110 sending status comand

mmcblk0: error -110 sending read/write command, response 0x0, card status 0x0

end_request: I/O error, dev mmcblk0, sector 18

EXT2-fs error (device mmcblk0p1): ext2_free_branches: Read failure, inode=12,

block=5645

mmcblk0: retrying using single block read

mmcblk0: error -110 sending status comand

mmcblk0: error -110 sending read/write command, response 0x0, card status 0x0

end_request: I/O error, dev mmcblk0, sector 536

mmcblk0: error -110 sending status comand

mmcblk0: error -110 sending read/write command, response 0x0, card status 0x0

end_request: I/O error, dev mmcblk0, sector 537

mmcblk0: error -110 sending status comand

mmcblk0: error -110 sending read/write command, response 0x0, card status 0x0

end_request: I/O error, dev mmcblk0, sector 18

EXT2-fs error (device mmcblk0p1): read_inode_bitmap: Cannot read inode bitmap -

block_group = 0, inode_bitmap = 260

root:/>

--

 

--- Vivi Li                                                  2010-03-02 03:21:33

This happens on bf537-stamp and bf533-stamp.

 

--- Cliff Cai                                                2010-06-10 05:28:28

crc error was ocurring during the test.

 

--- Cliff Cai                                                2010-06-30 02:50:44

After some investigation,I found that some  patches are related to this bug:

1.r7862 | jiez | 2009-11-24 22:59:10 +0800 (Tue, 24 Nov 2009) | 4 lines

 

Fix bug [#5706].

Restore my fix which was lost during updating to linux-2.6.30.

Flush icache when write to user process space.

 

2.r7871 | vapier | 2009-11-25 13:39:03 +0800 (Wed, 25 Nov 2009) | 1 line

 

Blackfin: drop ptrace() write support for fixed code/bootrom -- we dont want to

let people to write to these regions

 

3.reverting above two patches can make the test work until the kernel was

upgraded to 2.6.32 at revision 7916.This kernel upgrade almost didn't change the

code of ".../drivers/mmc/host/mmc_spi.c" and

".../drivers/spi/spi_bf5xx.c" ,So,the problem must locate elsewhere.

 

Cliff

 

--- Mike Frysinger                                           2010-06-30 13:32:52

those code paths shouldnt matter as they only get executed when running things

through ptrace (i.e. gdbserver).  this test case isnt executing gdb i dont

think, so those changes shouldnt make a difference to it.

 

--- Sonic Zhang                                              2010-07-08 22:38:41

The bonne++ always fails in the middle of a multi block MMC SPI writing

operation. A CRC error is reported by SD card for one of the blocks it received.

It looks the SPI bus is not as reliable as the MMC SPI driver expected. Accident

bit error when transferring large continuous data over SPI bus can't be avoid.

 

Current solution is to redo data writing command in mmc spi driver when CRC

error is perceived other than fail the operation immediately. The retry count is

set to 5, which ensures no failure in overnight stress test.

 

 

--- Sonic Zhang                                              2010-07-09 04:07:33

Fixed.

 

--- Vivi Li                                                  2010-07-13 01:09:13

It's OK now.

Close it.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.linux.spimmc    application/octet-stream    34170    Vivi Li

Attachments

Outcomes