[U-Boot] [PATH V3] usb: dwc2: invalidate the dcache before starting the DMA

Marek Vasut marex at denx.de
Thu Apr 6 15:34:37 UTC 2017


On 04/06/2017 05:37 AM, Eddie Cai wrote:
> We should invalidate the dcache before starting the DMA. In case there are
> any dirty lines from the DMA buffer in the cache, subsequent cache-line
> replacements may corrupt the buffer in memory while the DMA is still going on.
> Cache-line replacement can happen if the CPU tries to bring some other memory
> locations into the cache while the DMA is going on.
> 
> Signed-off-by: Eddie Cai <eddie.cai.linux at gmail.com>
> Reviewed-by: Stefan BrĂ¼ns <stefan.bruens at rwth-aachen.de>

Applied, thanks.

-- 
Best regards,
Marek Vasut


More information about the U-Boot mailing list