[#5328] usb device will reset on bf527-ezkit for dma mode when mke2fs in usb storage
Submitted By: Vivi Li
Open Date
2009-07-08 06:50:47 Close Date
2009-08-09 19:30:18
Priority:
Medium Assignee:
Cliff Cai
Status:
Closed Fixed In Release:
N/A
Found In Release:
N/A Release:
Category:
Drivers Board:
N/A
Processor:
BF527 Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Fixed
Uboot version or rev.:
Toolchain version or rev.:
gcc4.1_2009r1-rc9
App binary format:
N/A
Summary: usb device will reset on bf527-ezkit for dma mode when mke2fs in usb storage
Details:
During mke2fs in usb storage on bf527-ezkit, usb device will reset several times for dma mode. PIO mode is ok.
Bellow is the log in dma mode:
--
U-Boot 2008.10-svn1954 (ADI-2009R1-rc2) (Jul 1 2009 - 14:04:59)
CPU: ADSP bf527-0.0 (Detected Rev: 0.0) (parallel flash boot)
Board: ADI BF527 EZ-Kit board
Support: http://blackfin.uclinux.org/
Clock: VCO: 525 MHz, Core: 525 MHz, System: 131.250 MHz
RAM: 64 MB
Flash: 4 MB
In: serial
Out: serial
Err: serial
Net: Blackfin EMAC
MAC: 00:E0:22:FE:B8:11
Hit any key to stop autoboot: 0
Using Blackfin EMAC device
TFTP from server 10.100.4.174; our IP address is 10.100.4.50
Filename \\\\\\\\\\\\\\\'uImage\\\\\\\\\\\\\\\'.
Load address: 0x1000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
##################################
done
Bytes transferred = 5268878 (50658e hex)
## Booting kernel from Legacy Image at 01000000 ...
Image Name: Linux-2.6.28.10-ADI-2009R1-svn69
Created: 2009-07-07 5:44:18 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 5268814 Bytes = 5 MB
Load Address: 00001000
Entry Point: 001db61c
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 001db61c
Linux version 2.6.28.10-ADI-2009R1-svn6923 (test@uclinux60-bf527-std) (gcc version 4.1.2 (ADI svn)) #24 Tue Jul 7 13:44:02 CST 29
bootconsole [early_BFuart0] enabled
early printk enabled on early_BFuart0
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x0013f690
rodata = 0x0013f690-0x001a71f0
bss = 0x001a8000-0x001b906c
data = 0x001b906c-0x001ce000
stack = 0x001cc000-0x001ce000
init = 0x001ce000-0x009c2000
available = 0x009c2000-0x03eff000
DMA Zone = 0x03f00000-0x04000000
Hardware Trace Active and Enabled
Boot Mode: 1
Blackfin support (C) 2004-2009 Analog Devices, Inc.
Compiled for ADSP-BF527 Rev 0.0
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
Data Cache Enabled for CPU0 (write-back)
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 16001
Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart1,57600 console=tty0 console=ttyBF0,57600 if
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 256 (order: 8, 1024 bytes)
console handover:boot [early_BFuart0] -> real [ttyBF0]
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 53948k/65536k RAM, (8144k init code, 1273k kernel code, 571k data, 1024k dma, 572k reserved)
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 (15 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 48 KB (42 KB free)
net_namespace: 288 bytes
NET: Registered protocol family 16
Blackfin DMA Controller
ezkit_init(): registering device resources
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
musb_hdrc: version 6.0, musb-dma, host, debug=0
musb_hdrc: USB Host mode controller at ffc03800 using DMA, IRQ 59
musb_hdrc musb_hdrc.0: MUSB HDRC host driver
musb_hdrc musb_hdrc.0: new USB bus registered, assigned bus number 1
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
dma_alloc_init: dma_page @ 0x03ea8000 - 256 pages at 0x03f00000
hub 1-0:1.0: 1 port detected
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 105
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler cfq registered
bfin-t350mcqb: 320x240 24-bit RGB FrameBuffer initializing...
bfin-otp: initialized
Serial: Blackfin serial driver
bfin-uart.1: ttyBF0 at MMIO 0xffc02000 (irq = 31) is a BFIN-UART
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=25)@sclk=131MHz)
bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1
Driver \\\\\\\\\\\\\\\'sd\\\\\\\\\\\\\\\' needs updating - please use bus_type methods
m25p80 spi0.1: m25p16 (2048 Kbytes)
Creating 2 MTD partitions on \\\\\\\\\\\\\\\"m25p80\\\\\\\\\\\\\\\":
0x00000000-0x00040000 : \\\\\\\\\\\\\\\"bootloader(spi)\\\\\\\\\\\\\\\"
0x00040000-0x00200000 : \\\\\\\\\\\\\\\"linux kernel(spi)\\\\\\\\\\\\\\\"
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@7
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
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: v2.6:USB HID core driver
TCP cubic registered
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 2004-05-31 21:24:27 UTC (1086038667)
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: 8144k 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/
| /0/ Fu\\\\\\\\\\\\\\\\ll__.| 8P `. PHY : t0:/01o -. Lainfk .isl Uup. r-
.\\\\\\\\\\\\\\\' - http://www.uclinux.org/
`--..__)8888P`._.\\\\\\\\\\\\\\\' jgs/a:f - http://www.analog.com/blackfin
Have a lot of fun...
BusyBox v1.13.4 (2009-07-07 13:17:36 CST) built-in shell (msh)
Enter \\\\\\\\\\\\\\\'help\\\\\\\\\\\\\\\' for a list of built-in commands.
root:/> usb 1-1: new high speed USB device using musb_hdrc and address 2
usb 1-1: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
scsi 0:0:0:0: Direct-Access SanDisk U3 Cruzer Micro 2.21 PQ: 0 ANSI: 2
sd 0:0:0:0: [sda] 1994385 512-byte hardware sectors: (1.02 GB/973 MiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] 1994385 512-byte hardware sectors: (1.02 GB/973 MiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
sda: sda1 sda2
sd 0:0:0:0: [sda] Attached SCSI removable disk
root:/>
root:/> date; mke2fs /dev/sda1; date
Mon May 31 21:25:32 UTC 2004
mke2fs 1.41.4 (27-Jan-2009)
ext2fs_check_if_mount: No such file or directory while determining whether /dev/sda1 is mounted.
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
123952 inodes, 495776 blocks
24788 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=67633152
61 block groups
8192 blocks per group, 8192 fragments per group
2032 inodes per group
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409
Writing inode tables: done
Writing superblocks and filesystem accounting information: usb 1-1: reset high speed USB device using musb_hdrc and address 2
done
This filesystem will be automatically checked every 35 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
Mon May 31 21:26:20 UTC 2004
root:/>
--
Bellow is the result in PIO mode:
--
root:/> date; mke2fs /dev/sda1; date
Mon May 31 21:17:32 UTC 2004
mke2fs 1.41.4 (27-Jan-2009)
ext2fs_check_if_mount: No such file or directory while determining whether /dev/sda1 is mounted.
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
123952 inodes, 495776 blocks
24788 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=67633152
61 block groups
8192 blocks per group, 8192 fragments per group
2032 inodes per group
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 22 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
Mon May 31 21:17:49 UTC 2004
root:/>
--
Follow-ups
--- Cliff Cai 2009-07-09 22:11:34
it works for me.
Cliff
--- Vivi Li 2009-07-29 00:02:50
I can still see this bug happening on regression.
--- Cliff Cai 2009-08-04 03:26:10
I tried it with BF527 v0.2,it seemed Ok.
Cliff
--- Sonic Zhang 2009-08-06 01:40:44
This bug may relate to anomaly 05000380.
Temporary walkaround to 2009R1 is disable DMA for bf527 v0.0 and v0.1
--- Vivi Li 2009-08-06 07:08:43
Yes, it works on BF527 v0.2 but fails on old revision.
--- Vivi Li 2009-08-10 00:30:28
Disable usbhost test in dma mode with BF527-EZKIT 0.0 and 0.1 silicon.
So close this bug.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
config.usbhost_bf5xx.pio application/octet-stream 38365 Vivi Li
config.usbhost_bf5xx.dma application/octet-stream 38415 Vivi Li