Wind River Support Network

HomeDefectsLIN6-8398
Fixed

LIN6-8398 : when access nand flash and mmc card at the same time on xlp board, there will be many io errors and system will hung

Created: Sep 10, 2014    Updated: Dec 3, 2018
Resolved Date: Oct 12, 2014
Found In Version: 6.0.0.11
Fix Version: 6.0.0.13
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: BSP

Description

when access nand flash and mmc card at the same time on xlp board, there will be many io errors and system will hung. logs are as below:


16777216 bytes (17 MB) copied, 34.5951 s, 485 kB/s
mmc1: Timeout waiting for hardware interrupt.
mmc1: Timeout waiting for hardware interrupt.
mmc1: Timeout waiting for hardware interrupt.
mmcblk1: error -145 sending status command, retrying
mmc1: Timeout waiting for hardware interrupt.
mmcblk1: error -145 sending status command, retrying
mmc1: Timeout waiting for hardware interrupt.
mmcblk1: error -145 sending status command, aborting
end_request: I/O error, dev mmcblk1, sector 3460800
Buffer I/O error on device mmcblk1p1, logical block 432598
lost page write due to I/O error on mmcblk1p1
end_request: I/O error, dev mmcblk1, sector 3460808
Buffer I/O error on device mmcblk1p1, logical block 432599
lost page write due to I/O error on mmcblk1p1
end_request: I/O error, dev mmcblk1, sector 3460816
Buffer I/O error on device mmcblk1p1, logical block 432600
lost page write due to I/O error on mmcblk1p1
end_request: I/O error, dev mmcblk1, sector 3460824
Buffer I/O error on device mmcblk1p1, logical block 432601
lost page write due to I/O error on mmcblk1p1
end_request: I/O error, dev mmcblk1, sector 3460832
Buffer I/O error on device mmcblk1p1, logical block 432602
lost page write due to I/O error on mmcblk1p1
end_request: I/O error, dev mmcblk1, sector 3460840
Buffer I/O error on device mmcblk1p1, logical block 432603
lost page write due to I/O error on mmcblk1p1
end_request: I/O error, dev mmcblk1, sector 3460848
Buffer I/O error on device mmcblk1p1, logical block 432604
lost page write due to I/O error on mmcblk1p1
end_request: I/O error, dev mmcblk1, sector 3460856
Buffer I/O error on device mmcblk1p1, logical block 432605
lost page write due to I/O error on mmcblk1p1
end_request: I/O error, dev mmcblk1, sector 3460864
Buffer I/O error on device mmcblk1p1, logical block 432606
lost page write due to I/O error on mmcblk1p1

mmc1: Timeout waiting for hardware interrupt.
------------[ cut here ]------------
WARNING: at /WindRiver-6.0.0/workspace/wkk_xlp3/bitbake_build/tmp/work/bcm_xlp-wrs-linux/linux-windriver/3.10-r0/linux/drivers/mmc/host/sdhci.c:996 sdhci_send_command+0xd78/0xe68()
Modules linked in:
CPU: 6 PID: 0 Comm: swapper/6 Not tainted 3.10.38-ltsi-WR6.0.0.11_standard #1
Stack : c0000000f83ff820 ffffffffc02a290c 0000000000000001 0000000000000e1b
  ffffffffc0d00000 ffffffffc0e005a0 0000000000000004 0000000000000001
  c0000000f83ff860 ffffffffc02a270c 000000000000004d ffffffffc0d00000
  c0000000f83ff880 ffffffffc02a2d7c 0000000000000000 0000000000000000
  0000000000000000 ffffffffc1050000 ffffffffc104d008 ffffffffc1050000
  ffffffffc0b62fc0 ffffffffc0cfab37 ffffffffc104d008 c0000000f8217b28
          0000000000000000 0000000000000006 c0000000f92e2508 c0000000f92e23c0
  c0000000f83ff900 c0000000f83ff810 c0000000f83ff928 ffffffffc02a008c
  c0000000f83ff960 ffffffffc02a48c8 c0000000f8217788 ffffffffc0b62fc0
  0000000000000006 ffffffffc0274c30 0000000000000000 0000000000000000
  ...
Call Trace:
[<ffffffffc0274c30>] show_stack+0xd8/0xf8
[<ffffffffc02a008c>] warn_slowpath_common+0x8c/0xc8
[<ffffffffc0880868>] sdhci_send_command+0xd78/0xe68
[<ffffffffc0881380>] sdhci_finish_data+0x180/0x3d0
[<ffffffffc08818f0>] sdhci_timeout_timer+0xb0/0x120
[<ffffffffc02b45c8>] call_timer_fn+0x58/0x1a0
[<ffffffffc02b4a00>] run_timer_softirq+0x1f8/0x2d0
[<ffffffffc02aa6a0>] __do_softirq+0x150/0x340
[<ffffffffc02aa9f0>] do_softirq+0xb8/0xc0
[<ffffffffc02aada4>] irq_exit+0xf4/0x110
[<ffffffffc026f160>] ret_from_irq+0x0/0x4
[<ffffffffc026f400>] __r4k_wait+0x20/0x40
[<ffffffffc02f85a8>] cpu_startup_entry+0x190/0x2f8
[<ffffffffc0a33438>] nlm_boot_secondary_cpus+0x44/0x54
---[ end trace 7070d5fae37308f2 ]---
                                                

Workaround

1. create a xlp project: home/cso/WindRiver-6.0.0/wrlinux-6/wrlinux/configure --enable-kernel=standard --enable-board=bcm-xlp --enable-rootfs=glibc_core --enable-parallel-pkgbuilds=4 --enable-jobs=4 --with-rcpl-version=0011

2. boot wrlinux on xlp 208 board

3. mount /dev/mmcblk1p1 /mnt

4. unzip attached file - nand_sd_test.zip to /mnt/

5. cd /mnt/nand_sd_test

6. ./test.sh

Other Downloads


Live chat
Online