[U-Boot] [PATCH v9] usb: align buffers at cacheline
Marek Vasut
marex at denx.de
Wed Apr 4 10:01:46 CEST 2012
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 <puneets at 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
More information about the U-Boot
mailing list