Hi Marek,
I tested on tegra2, Seaboard and didn't see these messages though see lots of messages "ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7c608" which are expected.
PFA the logs if you can make out anything useful.

Try to increase the delay in handshake();

Thanks,
Puneet

On Wednesday 04 April 2012 01:31 PM, Marek Vasut wrote:
Dear Puneet Saxena,

This avoids cache-alignment warnings shown in console
when a usb command is entered.

Whenever X bytes of unaligned buffer is invalidated, arm core
invalidates X + Y bytes as per the cache line size and throws
these warnings.

Signed-off-by: Puneet Saxena<pune...@nvidia.com>
---
I think we're almost there, hurray! :-)

Though on m28evk this still has issues:

=>  usb reset
(Re)start USB...
USB:   Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... EHCI timed out on TD - token=0x80008c80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x80008c80
EHCI timed out on TD - token=0x80008c80
EHCI timed out on TD - token=0x80008c80
  ERROR: NOT USB_CONFIG_DESC 1
EHCI timed out on TD - token=0x80008d80
2 USB Device(s) found
        scanning bus for storage devices... 0 Storage Device(s) found

I have a single USB pendrive connected to the board.

Also note, that if I disable the caches, it all works even with your patch
applied. So I suspect there's something even more to this (maybe broken
ehci_invalidate_dcache() ? ). Where did you test these patches?

Thanks!

Best regards,
Marek Vasut


-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may 
contain
confidential information.  Any unauthorized review, use, disclosure or 
distribution
is prohibited.  If you are not the intended recipient, please contact the 
sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------
Tegra2 (SeaBoard) # 
usb reset
(Re)start USB...
USB:   Register 10011 NbrPorts 1

USB EHCI 1.00
scanning bus for devices... 
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3
fb7c608

ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3
fb7c628
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7c608
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3ffb34b2
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7c5e8
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7c6a9
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7c5e8
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7c628
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7c388
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7c53f
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7c388
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7c53f
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7c388
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7c53f
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7c388
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7c53f
2 USB Device(s) found
       scanning bus for storage devices... ERROR: v7_dcache_inval_range - stop 
address is not aligned - 0x3fb7cd88
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ER
ROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligne
d - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ce01
EHCI timed out on TD - token=0x80008c80
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7cc7f
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7cd44
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7cccd
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7cc5f
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ccad
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7cc3f
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3ffbddf2
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ccad

ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7cc5f

ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ccad
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7cc7f
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7cd88
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7cccd
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7c9ff
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ca4d
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7c9ff

ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3
fb7ca4d
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7c9df
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ca4d
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7c9ff
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x3fb7ca4d
1 Storage Device(s) found
Tegra2 (SeaBoard) # 
usb tree

Device Tree:
  1  Hub (480 Mb/s, 0mA)
  |  u-boot 
EHCI Host Controller 
  |
  |\0x08+-2  Mass Storage (480 Mb/s, 100mA)
       JetFlash Mass Storage Device WO04JKWM
     
Tegra2 (SeaBoard) # 
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to