[#4247] gadget storage test failed on bf548-ezkit in 08r1 branch

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

[#4247] gadget storage test failed on bf548-ezkit in 08r1 branch

Submitted By: Vivi Li

Open Date

2008-07-16 07:20:40     Close Date

2008-07-28 22:16:09

Priority:

Medium High     Assignee:

Bryan Wu

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

N/A     Board:

N/A

Processor:

N/A     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

N/A

Uboot version or rev.:

    Toolchain version or rev.:

08r1.5-13

App binary format:

N/A     

Summary: gadget storage test failed on bf548-ezkit in 08r1 branch

Details:

 

Gadget storage test failed on bf548-ezkit in 08r1 branch, both for ram based test and harddisk based test.

 

After gadget storage is installed in bf548-ezkit, no storage device is found on PC. Bellow is the log from ram based test:

--

Linux version 2.6.22.19-ADI-2008R1.5-svn4960 (test@uclinux90-bf548-kernel) (gcc version 4.1.2 (ADI svn)) #38 Wed Jul 16 14:54:54 GMT 2008^M

early printk enabled on early_BFuart0^M

Hardware Trace Active and Enabled^M

Reset caused by Software reset^M

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

Compiled for ADSP-BF548 Rev 0.0^M

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

Processor Speed: 525 MHz core clock and 131 MHz System Clock^M

Board Memory: 64MB^M

Kernel Managed Memory: 64MB^M

Memory map:^M

  text      = 0x00001000-0x0018f2d0^M

  rodata    = 0x00190000-0x0020f79c^M

  data      = 0x00210000-0x0022a000^M

    stack   = 0x00210000-0x00212000^M

  init      = 0x0022a000-0x005d8000^M

  bss       = 0x005d8000-0x005e9b10^M

  available = 0x005e9b10-0x03dff000^M

  DMA Zone  = 0x03e00000-0x04000000^M

Instruction Cache Enabled^M

Data Cache Enabled (write-through)^M

Built 1 zonelists.  Total pages: 15748^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:bf548-ezkit:eth0:off^M

Configuring Blackfin Priority Driven Interrupts^M

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

console handover: boot [early_BFuart0] -> real [ttyBF0]^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: 56852k/65536k RAM, (3768k init code, 1592k kernel code, 690k data, 2048k dma, 584k reserved)^M

Blackfin Scratchpad data SRAM: 4 KB^M

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

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

Blackfin Instruction SRAM: 48 KB (42 KB free)^M

Security Framework v1.0.0 initialized^M

Mount-cache hash table entries: 512^M

NET: Registered protocol family 16^M

Blackfin GPIO Controller^M

Blackfin DMA Controller^M

ezkit_init(): registering device resources^M

SCSI subsystem initialized^M

usbcore: registered new interface driver usbfs^M

usbcore: registered new interface driver hub^M

usbcore: registered new device driver usb^M

musb_hdrc: version 6.0, musb-dma, peripheral, debug=0^M

musb_hdrc: USB Peripheral mode controller at ffc03c00 using DMA, IRQ 82^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

io scheduler noop registered^M

io scheduler anticipatory registered (default)^M

io scheduler cfq registered^M

bf54x-lq043: FrameBuffer initializing...^M

dma_alloc_init: dma_page @ 0x03152000 - 512 pages at 0x03e00000^M

bfin-otp: initialized^M

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

Serial: Blackfin serial driver^M

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

RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize^M

smsc911x: Driver version 2007-07-13.^M

register bfin atapi driver^M

scsi0 : pata-bf54x^M

ata1: PATA max UDMA/66 cmd 0x00000000 ctl 0xffc03800 bmdma 0x00000000 irq 68^M

ata1.00: ATA-6: TOSHIBA MK4032GAX, AD101A, max UDMA/100^M

ata1.00: 78140160 sectors, multi 16: LBA48 ^M

ata1.00: configured for UDMA/66^M

blk_queue_max_hw_segments: set to minimum 1^M

scsi 0:0:0:0: Direct-Access     ATA      TOSHIBA MK4032GA AD10 PQ: 0 ANSI: 5^M

sd 0:0:0:0: [sda] 78140160 512-byte hardware sectors (40008 MB)^M

sd 0:0:0:0: [sda] Write Protect is off^M

sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA^M

sd 0:0:0:0: [sda] 78140160 512-byte hardware sectors (40008 MB)^M

sd 0:0:0:0: [sda] Write Protect is off^M

sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA^M

sda: sda1 sda2^M

sd 0:0:0:0: [sda] Attached SCSI disk^M

physmap platform flash device: 00400000 at 20000000^M

physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank^M

NOR chip too large to fit in mapping. Attempting to cope...^M

Intel/Sharp Extended Query Table at 0x010A^M

Intel/Sharp Extended Query Table at 0x010A^M

Intel/Sharp Extended Query Table at 0x010A^M

Intel/Sharp Extended Query Table at 0x010A^M

Intel/Sharp Extended Query Table at 0x010A^M

Using buffer write method^M

Using auto-unlock on power-up/resume^M

cfi_cmdset_0001: Erase suspend on write enabled^M

Reducing visibility of 32768KiB chip to 4096KiB^M

RedBoot partition parsing not available^M

BF5xx on-chip NAND FLash Controller Driver, Version 1.2 (c) 2007 Analog Devices, Inc.^M

bf5xx-nand bf5xx-nand.0: page_size=256, data_width=8, wr_dly=3, rd_dly=3^M

NAND device: Manufacturer ID: 0x20, Chip ID: 0xda (ST Micro NAND 256MiB 3,3V 8-bit)^M

Creating 2 MTD partitions on "NAND 256MiB 3,3V 8-bit":^M

0x00000000-0x00400000 : "Linux Kernel"^M

0x00400000-0x10000000 : "File System"^M

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

bfin-spi bfin-spi.1: Blackfin BF5xx on-chip SPI Contoller Driver, Version 1.0, regs_base@ffc02300, dma channel@5^M

Initializing USB Mass Storage driver...^M

usbcore: registered new interface driver usb-storage^M

USB Mass Storage support registered.^M

input: bf54x-keys as /class/input/input0^M

bf54x-keys: Blackfin BF54x Keypad registered IRQ 76^M

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

i2c /dev entries driver^M

i2c-bfin-twi i2c-bfin-twi.1: Blackfin BF5xx on-chip I2C TWI Contoller Driver, Version 1.8, regs_base@ffc02200^M

usbcore: registered new interface driver usbhid^M

drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver^M

Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50 2006 UTC).^M

ASoC version 0.13.1^M

dma rx:0 tx:1, err irq:10, regs:ffc00800^M

AD1980 SoC Audio Codec^M

asoc: AC97 <-> bf5xx-ac97 mapping ok^M

ALSA device list:^M

  #0: bf5xx-board (AD1980)^M

TCP cubic registered^M

NET: Registered protocol family 1^M

NET: Registered protocol family 17^M

rtc-bfin rtc-bfin: setting the system clock to 2004-09-08 06:36:39 (1094625399)^M

eth0: SMSC911x/921x identified at 0x24000000, IRQ: 175^M

eth0: SMSC911x MAC Address: be:0c:04:f0:7d:e6^M

eth0: link down^M

IP-Config: Complete:^M

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

     host=bf548-ezkit, domain=, nis-domain=(none),^M

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

Freeing unused kernel memory: 3768k freed^M

eth0: link up, 100Mbps, full-duplex, lpa 0x41E1^M

                           _____________________________________^M

        a8888b.           / Welcome to the uClinux distribution \^M

       d888888b.         /       _     _                         \^M

       8P"YP"Y88        /       | |   |_|            __  __ (TM)  |^M

       8|o||o|88  _____/        | |    _ ____  _   _ \ \/ /       |^M

       8'    .88       \        | |   | |  _ \| | | | \  /        |^M

       8`._.' Y8.       \       | |__ | | | | | |_| | /  \        |^M

      d/      `8b.       \      \____||_|_| |_|\____|/_/\_\       |^M

     dP   .    Y8b.       \   For embedded processors including   |^M

    d8:'  "  `::88b        \    the Analog Devices Blackfin      /^M

   d8"         'Y88b        \___________________________________/^M

  :8P    '      :888^M

   8a.   :     _a88P         For further information, check out:^M

._/"Yaa_:   .| 88P|            -   blackfin.uclinux.org/^M

\    YP"    `| 8P  `.          -   docs.blackfin.uclinux.org/^M

/     \.___.d|    .'           -   www.uclinux.org/^M

`--..__)8888P`._.'  jgs/a:f    -   www.analog.com/blackfin^M

^M

Have a lot of fun...^M

^M

^M

BusyBox v1.4.1 (2008-07-16 14:41:03 GMT) Built-in shell (msh)^M

Enter 'help' for a list of built-in commands.^M

^M

root:/>

************** STEP 3: Start testing.

 

ifconfig eth0 10.100.4.50^M

root:/> ^M

root:/> ifconfig^M

eth0      Link encap:Ethernet  HWaddr BE:0C:04:F0:7D:E6  ^M

          inet addr:10.100.4.50  Bcast:10.100.4.255  Mask:255.255.255.0^M

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1^M

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0^M

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0^M

          collisions:0 txqueuelen:1000 ^M

                    Interrupt:175 ^M

^M

lo        Link encap:Local Loopback  ^M

          inet addr:127.0.0.1  Mask:255.0.0.0^M

          UP LOOPBACK RUNNING  MTU:16436  Metric:1^M

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0^M

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0^M

          collisions:0 txqueuelen:0 ^M

          ^M

root:/>

Case 1 ...PASS

 

Case 1 ...PASS

dd if=/dev/zero of=fsg.block bs=1M count=16^M

16+0 records in^M

16+0 records out^M

root:/>

Case 2 ...PASS

 

Case 2 ...PASS

modprobe g_file_storage file=fsg.block stall=0^M

g_file_storage gadget: File-backed Storage Gadget, version: 28 November 2005^M

g_file_storage gadget: Number of LUNs=1^M

g_file_storage gadget-lun0: ro=0, file: /fsg.block^M

root:/> g_file_storage gadget: high speed config #1^M

lsmod^M

Module                  Size  Used by^M

g_file_storage         20456  0 ^M

root:/>

Case 3 ...PASS

 

Case 3 ...PASS

su -^M

^[]0;test@adam-desktop2: ~/work/cruise/checkouts/uclinux-dist/testsuites/usbdev^Gtest@adam-desktop2:~/work/cruise/checkouts/uclinux-dist/testsuites/usbdev> su -^M

Password: ^M

^[]0;root@adam-desktop2: ~^Groot@adam-desktop2:~#

Case 4 ...PASS

 

Case 4 ...PASS

mkdir -p /mnt/usb^M

^[]0;root@adam-desktop2: ~^Groot@adam-desktop2:~#

Case 5 ...PASS

 

Case 5 ...PASS

ls /dev/sdc^M

^[[00mls: /dev/sdc: No such file or directory^M

^[[m^[]0;root@adam-desktop2: ~^Groot@adam-desktop2:~#

Case 6 ...FAIL

 

Case 6 ...FAIL

 

GADGET STORAGE RAM TEST FAIL

GADGET STORAGE RAM TEST ............[FAIL]

--

 

Follow-ups

 

--- Bryan Wu                                                 2008-07-17 22:44:44

Applied an upstream patch. should be fixed.

 

-Bryan

 

--- Bryan Wu                                                 2008-07-18 04:51:47

Actually, I met another issue when the new DMA mode in BF548 usb.

This problem is the host send out SCSI READ_10 command to read out 3584 bytes.

The musb does not send out 13 bytes status packet to host.

 

I'm working on it.

-Bryan

 

--- Bryan Wu                                                 2008-07-18 08:42:58

I met a new issue here. g_file_storage device can be recognized by host.

But if I set the debug message level above 3, it will pass.

 

Following is the message when debug level = 2:

--

root:/> get max LUN

dma_channel_program 260: ep6-Rx pkt_sz 512, dma_addr 0x364000 length 31, mode

0

dma_controller_irq 401: ch 00ac9840, 0x364000 -> 0x36401f (31 / 31) =>

complete

SCSI CDB:  12 00 00 00 24 00

SCSI command: INQUIRY;  Dc=6, Di=36;  Hc=6, Hi=36

dma_channel_program 260: ep5-Tx pkt_sz 512, dma_addr 0x364000 length 36, mode

0

dma_controller_irq 401: ch 00ac9818, 0x364000 -> 0x364024 (36 / 36) =>

complete

dma_channel_program 260: ep5-Tx pkt_sz 512, dma_addr 0x368000 length 13, mode

0

dma_controller_irq 401: ch 00ac9818, 0x368000 -> 0x36800d (13 / 13) =>

complete

dma_channel_program 260: ep6-Rx pkt_sz 512, dma_addr 0x364000 length 31, mode

0

dma_controller_irq 401: ch 00ac9840, 0x364000 -> 0x36401f (31 / 31) =>

complete

SCSI CDB:  00 00 00 00 00 00

SCSI command: TEST UNIT READY;  Dc=6, Dn=0;  Hc=6, Hn=0

sending command-failure status

  sense data: SK x06, ASC x29, ASCQ x00;  info x0

dma_channel_program 260: ep5-Tx pkt_sz 512, dma_addr 0x364000 length 13, mode

0

dma_controller_irq 401: ch 00ac9818, 0x364000 -> 0x36400d (13 / 13) =>

complete

dma_channel_program 260: ep6-Rx pkt_sz 512, dma_addr 0x368000 length 31, mode

0

dma_controller_irq 401: ch 00ac9840, 0x368000 -> 0x36801f (31 / 31) =>

complete

SCSI CDB:  03 00 00 00 12 00

SCSI command: REQUEST SENSE;  Dc=6, Di=18;  Hc=6, Hi=18

dma_channel_program 260: ep5-Tx pkt_sz 512, dma_addr 0x368000 length 18, mode

0

dma_controller_irq 401: ch 00ac9818, 0x368000 -> 0x368012 (18 / 18) =>

complete

dma_channel_program 260: ep5-Tx pkt_sz 512, dma_addr 0x364000 length 13, mode

0

dma_controller_irq 401: ch 00ac9818, 0x364000 -> 0x36400d (13 / 13) =>

complete

dma_channel_program 260: ep6-Rx pkt_sz 512, dma_addr 0x368000 length 31, mode

0

dma_controller_irq 401: ch 00ac9840, 0x368000 -> 0x36801f (31 / 31) =>

complete

SCSI CDB:  00 00 00 00 00 00

SCSI command: TEST UNIT READY;  Dc=6, Dn=0;  Hc=6, Hn=0

dma_channel_program 260: ep5-Tx pkt_sz 512, dma_addr 0x368000 length 13, mode

0

dma_controller_irq 401: ch 00ac9818, 0x368000 -> 0x36800d (13 / 13) =>

complete

dma_channel_program 260: ep6-Rx pkt_sz 512, dma_addr 0x364000 length 31, mode

0

dma_controller_irq 401: ch 00ac9840, 0x364000 -> 0x36401f (31 / 31) =>

complete

SCSI CDB:  25 00 00 00 00 00 00 00 00 00

SCSI command: READ CAPACITY;  Dc=10, Di=8;  Hc=10, Hi=8

dma_channel_program 260: ep5-Tx pkt_sz 512, dma_addr 0x364000 length 8, mode 0

dma_controller_irq 401: ch 00ac9818, 0x364000 -> 0x364008 (8 / 8) =>

complete

dma_channel_program 260: ep5-Tx pkt_sz 512, dma_addr 0x368000 length 13, mode

0

dma_controller_irq 401: ch 00ac9818, 0x368000 -> 0x36800d (13 / 13) =>

complete

dma_channel_program 260: ep6-Rx pkt_sz 512, dma_addr 0x364000 length 31, mode

0

dma_controller_irq 401: ch 00ac9840, 0x364000 -> 0x36401f (31 / 31) =>

complete

SCSI CDB:  1a 00 3f 00 c0 00

SCSI command: MODE SENSE(6);  Dc=6, Di=192;  Hc=6, Hi=192

dma_channel_program 260: ep5-Tx pkt_sz 512, dma_addr 0x364000 length 192, mode

0

dma_controller_irq 401: ch 00ac9818, 0x364000 -> 0x3640c0 (192 / 192) =>

complete

dma_channel_program 260: ep5-Tx pkt_sz 512, dma_addr 0x368000 length 13, mode

0

dma_controller_irq 401: ch 00ac9818, 0x368000 -> 0x36800d (13 / 13) =>

complete

dma_channel_program 260: ep6-Rx pkt_sz 512, dma_addr 0x364000 length 31, mode

0

dma_controller_irq 401: ch 00ac9840, 0x364000 -> 0x36401f (31 / 31) =>

complete

SCSI CDB:  00 00 00 00 00 00

SCSI command: TEST UNIT READY;  Dc=6, Dn=0;  Hc=6, Hn=0

dma_channel_program 260: ep5-Tx pkt_sz 512, dma_addr 0x364000 length 13, mode

0

dma_controller_irq 401: ch 00ac9818, 0x364000 -> 0x36400d (13 / 13) =>

complete

dma_channel_program 260: ep6-Rx pkt_sz 512, dma_addr 0x368000 length 31, mode

0

dma_controller_irq 401: ch 00ac9840, 0x368000 -> 0x36801f (31 / 31) =>

complete

SCSI CDB:  25 00 00 00 00 00 00 00 00 00

SCSI command: READ CAPACITY;  Dc=10, Di=8;  Hc=10, Hi=8

dma_channel_program 260: ep5-Tx pkt_sz 512, dma_addr 0x368000 length 8, mode 0

dma_controller_irq 401: ch 00ac9818, 0x368000 -> 0x368008 (8 / 8) =>

complete

dma_channel_program 260: ep5-Tx pkt_sz 512, dma_addr 0x364000 length 13, mode

0

dma_controller_irq 401: ch 00ac9818, 0x364000 -> 0x36400d (13 / 13) =>

complete

dma_channel_program 260: ep6-Rx pkt_sz 512, dma_addr 0x368000 length 31, mode

0

dma_controller_irq 401: ch 00ac9840, 0x368000 -> 0x36801f (31 / 31) =>

complete

SCSI CDB:  1a 00 3f 00 c0 00

SCSI command: MODE SENSE(6);  Dc=6, Di=192;  Hc=6, Hi=192

dma_channel_program 260: ep5-Tx pkt_sz 512, dma_addr 0x368000 length 192, mode

0

dma_controller_irq 401: ch 00ac9818, 0x368000 -> 0x3680c0 (192 / 192) =>

complete

dma_channel_program 260: ep5-Tx pkt_sz 512, dma_addr 0x364000 length 13, mode

0

dma_controller_irq 401: ch 00ac9818, 0x364000 -> 0x36400d (13 / 13) =>

complete

dma_channel_program 260: ep6-Rx pkt_sz 512, dma_addr 0x368000 length 31, mode

0

dma_controller_irq 401: ch 00ac9840, 0x368000 -> 0x36801f (31 / 31) =>

complete

SCSI CDB:  28 00 00 00 00 00 00 00 08 00

SCSI command: READ(10);  Dc=10, Di=4096;  Hc=10, Hi=4096

file read 4096 @ 0 -> 4096

dma_channel_program 260: ep5-Tx pkt_sz 512, dma_addr 0x368000 length 4096, mode

1

dma_controller_irq 401: ch 00ac9818, 0x368000 -> 0x369000 (4096 / 4096)

=> complete

dma_channel_program 260: ep5-Tx pkt_sz 512, dma_addr 0x364000 length 13, mode

0

dma_controller_irq 401: ch 00ac9818, 0x364000 -> 0x36400d (13 / 13) =>

complete

dma_channel_program 260: ep6-Rx pkt_sz 512, dma_addr 0x368000 length 31, mode

0

dma_controller_irq 401: ch 00ac9840, 0x368000 -> 0x36801f (31 / 31) =>

complete

SCSI CDB:  28 00 00 00 00 08 00 00 01 00

SCSI command: READ(10);  Dc=10, Di=512;  Hc=10, Hi=512

file read 512 @ 4096 -> 512

dma_channel_program 260: ep5-Tx pkt_sz 512, dma_addr 0x368000 length 512, mode

0

dma_controller_irq 401: ch 00ac9818, 0x368000 -> 0x368200 (512 / 512) =>

complete

dma_channel_program 260: ep5-Tx pkt_sz 512, dma_addr 0x364000 length 13, mode

0

dma_controller_irq 401: ch 00ac9818, 0x364000 -> 0x36400d (13 / 13) =>

complete

dma_channel_program 260: ep6-Rx pkt_sz 512, dma_addr 0x368000 length 31, mode

0

dma_controller_irq 401: ch 00ac9840, 0x368000 -> 0x36801f (31 / 31) =>

complete

SCSI CDB:  28 00 00 00 00 09 00 00 07 00

SCSI command: READ(10);  Dc=10, Di=3584;  Hc=10, Hi=3584

file read 3584 @ 4608 -> 3584

dma_channel_program 260: ep5-Tx pkt_sz 512, dma_addr 0x368000 length 3584, mode

1

dma_controller_irq 401: ch 00ac9818, 0x368000 -> 0x368e00 (3584 / 3584)

=> complete

dma_channel_program 260: ep5-Tx pkt_sz 512, dma_addr 0x364000 length 13, mode

0

 

--

 

I sent out email to get some help from other musb developers.

 

-Bryan

 

--- Bryan Wu                                                 2008-07-22 03:31:33

DMA interrupt will lost. This bug is not fixed. so open it.

 

-Bryan

 

--- Vivi Li                                                  2008-07-28 07:01:17

Gadget storage includes two tests.

Gadget storage ram based test has passed now on bf548-ezkit in 08r1 branch.

Gadget storage harddisk based test fails.

I'll close this bug and open a new one about the failed test.

 

--- Vivi Li                                                  2008-07-28 07:38:22

Refer to the new bug "[4287] gadget storage harddisk based test failed on

bf548-ezkit in 08r1 branch".

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes