[U-Boot] [PATCH v9] usb: align buffers at cacheline
puneets
puneets at nvidia.com
Fri Apr 6 12:54:30 CEST 2012
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<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
-----------------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------------
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pendrive_prints.txt
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120406/e74c5949/attachment.txt>
More information about the U-Boot
mailing list