Re: [RFC PATCH 3/4] usb: dwc3: add quirk to be compatible for AMD NL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Fri, Oct 10, 2014 at 08:43:20AM +0800, Huang Rui wrote:
> > > But it does't block my building. Because I can comment CROSS_COMPILE at
> > > makefile.
> > > 
> > > I am testing my driver and dwc3 controller with MSC tool currently, and will
> > > let you know message log later.
> > 
> > Cool, thanks.
> > 
> 
> I have completed a round of MSC testing. All the test cases are passed. Please
> see below result:
> 
> root@hr-ub:/home/ray/felipe/usb-tools# ./msc.sh -o /dev/sdb1
> Starting test suite: 2014年 10月 09日 星期四 18:02:41 CST
> test 0a: simple 4k read/write
> test  0: sent       3.91 MB read       0.03 MB/s write       0.03 MB/s ... success
> test 0b: simple 8k read/write
> test  0: sent       7.81 MB read       6.15 MB/s write       5.96 MB/s ... success
> test 0c: simple 16k read/write
> test  0: sent      15.62 MB read      14.30 MB/s write      12.97 MB/s ... success
> test 0d: simple 32k read/write
> test  0: sent      31.25 MB read      18.26 MB/s write      17.10 MB/s ... success
> test 0e: simple 64k read/write
> test  0: sent      62.50 MB read      22.00 MB/s write      16.33 MB/s ... success
> test 1: simple 1-sector read/write
> test  1: sent     500.00 kB read       1.05 MB/s write       0.93 MB/s ... success
> test 2: simple 8-sectors read/write
> test  2: sent       3.91 MB read       6.52 MB/s write       6.10 MB/s ... success
> test 3: simple 32-sectors read/write
> test  3: sent      15.62 MB read      14.33 MB/s write      13.14 MB/s ... success
> test 4: simple 64-sectors read/write
> test  4: sent      31.25 MB read      17.79 MB/s write      16.38 MB/s ... success
> test 5a: scatter/gather for 2-sectors buflen 4k
> test  5: sent    1000.00 kB read       1.85 MB/s write       1.56 MB/s ... success
> test 5b: scatter/gather for 2-sectors buflen 8k
> test  5: sent    1000.00 kB read       1.91 MB/s write       1.63 MB/s ... success
> test 5c: scatter/gather for 2-sectors buflen 16k
> test  5: sent    1000.00 kB read       1.94 MB/s write       1.62 MB/s ... success
> test 5d: scatter/gather for 2-sectors buflen 32k
> test  5: sent    1000.00 kB read       1.93 MB/s write       1.64 MB/s ... success
> test 5e: scatter/gather for 2-sectors buflen 64k
> test  5: sent    1000.00 kB read       1.96 MB/s write       1.68 MB/s ... success
> test 6a: scatter/gather for 8-sectors buflen 4k
> test  6: sent       3.91 MB read       6.53 MB/s write       6.05 MB/s ... success
> test 6b: scatter/gather for 8-sectors buflen 8k
> test  6: sent       3.91 MB read       6.56 MB/s write       5.98 MB/s ... success
> test 6c: scatter/gather for 8-sectors buflen 16k
> test  6: sent       3.91 MB read       6.55 MB/s write       6.15 MB/s ... success
> test 6d: scatter/gather for 8-sectors buflen 32k
> test  6: sent       3.91 MB read       6.51 MB/s write       6.06 MB/s ... success
> test 6e: scatter/gather for 8-sectors buflen 64k
> test  6: sent       3.91 MB read       6.50 MB/s write       6.06 MB/s ... success
> test 7a: scatter/gather for 32-sectors buflen 16k
> test  7: sent      15.62 MB read      14.23 MB/s write      12.99 MB/s ... success
> test 7b: scatter/gather for 32-sectors buflen 32k
> test  7: sent      15.62 MB read      14.27 MB/s write      12.91 MB/s ... success
> test 7c: scatter/gather for 32-sectors buflen 64k
> test  7: sent      15.62 MB read      14.73 MB/s write      13.00 MB/s ... success
> test 8a: scatter/gather for 64-sectors buflen 32k
> test  8: sent      31.25 MB read      18.42 MB/s write      16.65 MB/s ... success
> test 8b: scatter/gather for 64-sectors buflen 64k
> test  8: sent      31.25 MB read      17.70 MB/s write      16.39 MB/s ... success
> test 9: scatter/gather for 128-sectors buflen 64k
> test  9: sent      62.50 MB read      21.14 MB/s write      16.07 MB/s ... success
> test 10: read over the end of the block device
> test 10: sent      62.01 MB read       0.00 MB/s write       0.00 MB/s ... success
> test 11: lseek past the end of the block device
> test 11: sent       0.00 B read       0.00 MB/s write       0.00 MB/s ... success
> test 12: write over the end of the block device
> test 12: sent       0.00 B read       0.00 MB/s write       0.00 MB/s ... success
> test 13: write 1 sg, read 8 random size sgs
> test 13: sent      62.50 MB read      21.61 MB/s write      16.21 MB/s ... success
> test 14: write 8 random size sgs, read 1 sg
> test 14: sent      62.50 MB read      22.52 MB/s write      18.61 MB/s ... success
> test 15: write and read 8 random size sgs
> test 15: sent      62.50 MB read      22.31 MB/s write      19.28 MB/s ... success
> test 16a: read with heap allocated buffer
> test 16: sent      62.50 MB read      21.69 MB/s write       0.00 MB/s ... success
> test 16b: read with stack allocated buffer
> test 16: sent      62.50 MB read      21.42 MB/s write       0.00 MB/s ... success
> test 17a: write with heap allocated buffer
> test 17: sent       0.00 B read       0.00 MB/s write      19.94 MB/s ... success
> test 17b: write with stack allocated buffer
> test 17: sent       0.00 B read       0.00 MB/s write      20.09 MB/s ... success
> test 18a: write 0x00 and read it back
> test 18: sent      62.50 MB read      21.94 MB/s write      16.96 MB/s ... success
> test 18b: write 0xff and read it back
> test 18: sent      62.50 MB read      19.89 MB/s write      15.51 MB/s ... success
> test 18c: write 0x55 and read it back
> test 18: sent      62.50 MB read      22.00 MB/s write      16.62 MB/s ... success
> test 18d: write 0xaa and read it back
> test 18: sent      62.50 MB read      21.81 MB/s write      16.53 MB/s ... success
> test 18e: write 0x11 and read it back
> test 18: sent      62.50 MB read      22.33 MB/s write      17.00 MB/s ... success
> test 18f: write 0x22 and read it back
> test 18: sent      62.50 MB read      21.66 MB/s write      16.44 MB/s ... success
> test 18g: write 0x44 and read it back
> test 18: sent      62.50 MB read      22.23 MB/s write      17.08 MB/s ... success
> test 18h: write 0x88 and read it back
> test 18: sent      62.50 MB read      21.54 MB/s write      16.17 MB/s ... success
> test 18i: write 0x33 and read it back
> test 18: sent      62.50 MB read      21.20 MB/s write      16.58 MB/s ... success
> test 18j: write 0x66 and read it back
> test 18: sent      62.50 MB read      21.82 MB/s write      16.13 MB/s ... success
> test 18k: write 0x99 and read it back
> test 18: sent      62.50 MB read      21.92 MB/s write      16.36 MB/s ... success
> test 18l: write 0xcc and read it back
> test 18: sent      62.50 MB read      22.37 MB/s write      16.74 MB/s ... success
> test 18m: write 0x77 and read it back
> test 18: sent      62.50 MB read      22.34 MB/s write      16.24 MB/s ... success
> test 18n: write 0xbb and read it back
> test 18: sent      62.50 MB read      21.82 MB/s write      16.23 MB/s ... success
> test 18o: write 0xdd and read it back
> test 18: sent      62.50 MB read      21.38 MB/s write      16.48 MB/s ... success
> test 18p: write 0xee and read it back
> test 18: sent      62.50 MB read      22.33 MB/s write      16.15 MB/s ... success
> Test suite ended: 2014年 10月 09日 星期四 18:13:36 CST
> 
> I enabled dwc3 and gadget debug/verbose configuration, the whole testing dmesg

oh, that's why it's so slow :-) I'm getting over 30MB/sec with a Cortex
A9 :-)

> log is overflow (more than 100000 lines).

FYI, I barely use VERBOSE DEBUG nowadays. I generally use the
tracepoints which I've added for v3.18 merge window. That adds orders of
magnitude less overhead than debugging through dmesg/printk ;-)

Here's a sample of the kinds of messages you can get:

http://www.spinics.net/lists/linux-usb/msg112704.html

Latest patches are in testing/next (there's a bug fix for the
tracepoints in that branch which I'll send to Greg once I let them soak
in linux-next for a few days).

> Do you want to see the whole testing dmesg, with which debug level
> enablement?

This is good for me, thank you.

ps: FYI, I left my board running overnight the same test. It has been
pretty stable so far.

-- 
balbi

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux