From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Wed, 4 Apr 2012 10:01:46 +0200 Subject: [U-Boot] [PATCH v9] usb: align buffers at cacheline In-Reply-To: <1333445166-14184-1-git-send-email-puneets@nvidia.com> References: <1333445166-14184-1-git-send-email-puneets@nvidia.com> Message-ID: <201204041001.46847.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > --- 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