FAQ: [#5947] Disable anomaly 456 on bf526-0.2-ezbrd, host can't find gadget ram storage in dma mode(2010)

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

[#5947] Disable anomaly 456 on bf526-0.2-ezbrd, host can't find gadget ram storage in dma mode

Submitted By: Vivi Li

Open Date

2010-03-05 05:30:39    

Priority:

Medium     Assignee:

Bob Liu

Status:

Open     Fixed In Release:

N/A

Found In Release:

2010R1     Release:

trunk

Category:

N/A     Board:

EZBRD

Processor:

BF526     Silicon Revision:

0.2

Is this bug repeatable?:

Yes     Resolution:

Duplicate

Uboot version or rev.:

    Toolchain version or rev.:

gcc4.3-2010_Jan_22

App binary format:

N/A     

Summary: Disable anomaly 456 on bf526-0.2-ezbrd, host can't find gadget ram storage in dma mode

Details:

 

Disable anomaly 456 on bf526-ezbrd, host can't find gadget ram storage in dma mode.

 

On target:

--

root:/> dd if=/dev/zero of=fsg.block bs=1M count=16

16+0 records in

16+0 records out

root:/> modprobe g_file_storage file=/fsg.block stall=0

g_file_storage gadget: File-backed Storage Gadget, version: 20 November 2008

g_file_storage gadget: Number of LUNs=1

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

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

lsmod

Module                  Size  Used by

g_file_storage         18735  0

root:/>

--

 

On host:

--

uclinux63-527-usbdev:/root # mkdir -p /mnt/usb

uclinux63-527-usbdev:/root # ls /dev/sdc

ls: cannot access /dev/sdc: No such file or directory

uclinux63-527-usbdev:/root #

--

 

Follow-ups

 

--- Vivi Li                                                  2010-03-10 03:39:15

Add message to show usb gadget dma mode in

linux-2.6.x/drivers/usb/musb/musb_gadget.c (file is attached).

 

Bellow is the kernel message when anomaly 456 is removed:

--

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

g_file_storage gadget: File-backed Storage Gadget, version: 20 November 2008

g_file_storage gadget: Number of LUNs=1

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

g_file_storage gadget: high speed config #1

usb gadget dma mode: 0

g_file_storage gadget: high speed config #1

usb gadget dma mode: 0

g_file_storage gadget: high speed config #1

usb gadget dma mode: 0

g_file_storage gadget: high speed config #1

g_file_storage gadget: high speed config #1

usb gadget dma mode: 0

g_file_storage gadget: high speed config #1

--

 

If anomaly 456 is not removed, this test can pass and bellow is the kernel

message:

--

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

g_file_storage gadget: File-backed Storage Gadget, version: 20 November 2008

g_file_storage gadget: Number of LUNs=1

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

g_file_storage gadget: high speed config #1

usb gadget dma mode: 0

usb gadget dma mode: 0

usb gadget dma mode: 0

usb gadget dma mode: 0

usb gadget dma mode: 0

usb gadget dma mode: 0

usb gadget dma mode: 0

usb gadget dma mode: 0

usb gadget dma mode: 0

usb gadget dma mode: 0

usb gadget dma mode: 0

usb gadget dma mode: 0

usb gadget dma mode: 0

usb gadget dma mode: 0

usb gadget dma mode: 0

usb gadget dma mode: 0

usb gadget dma mode: 0

usb gadget dma mode: 0

usb gadget dma mode: 0

usb gadget dma mode: 0

usb gadget dma mode: 0

usb gadget dma mode: 0

usb gadget dma mode: 0

usb gadget dma mode: 0

usb gadget dma mode: 0

usb gadget dma mode: 0

--

 

--- Jorge Manguane                                           2010-03-11 23:27:52

clearly something fails when the anomaly 456 is removed, however, DMA mode 0 is

the suggested workaround for this anomaly, that is, when the anomaly is removed

DMA mode 1 should be used.  Wondering if the right anomaly is being removed

here.

regards,

Jorge

 

--- Jorge Manguane                                           2010-03-12 05:51:01

also wondering: does USB work with any other anomaly workarounds removed?

thanks,

Jorge

 

--- Sonic Zhang                                              2010-03-14 22:54:34

Yes, no problem to remove anomaly 450, 465, 467 on bf526 v0.2.

We are still not sure if issue of 456 is a bug in Linux MUSB driver of a real

hardware problem. Cliff is still debugging this issue.

 

--- Jorge Manguane                                           2010-03-15 14:35:20

Thank you, Sonic.  Please also verify 460 and 466.

Regards,

Jorge

 

--- Sonic Zhang                                              2010-03-15 23:48:13

Sorry, we can't. Anomaly 460 and 466 doesn't affect current MUSB Linux driver.

There is no workaround for them.

 

--- Sonic Zhang                                              2010-08-24 00:10:42

No hardware fix in bf526 v0.2 for anomaly 456 is reported to

processor.support@analog.com.

 

Duplicate of 5944.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

musb_gadget.c    application/octet-stream    54955    Vivi Li

anomaly.diff    application/octet-stream    906    Vivi Li

config.linux.usbdev.dma    application/octet-stream    37916    Vivi Li

Outcomes