Re: [U-Boot] [PATCH v3 4/4] usb: dwc2: invalidate dcache before starting DMA

2016-07-14 Thread Simon Glass
On 14 July 2016 at 21:20, Simon Glass wrote: > Hi Ziyuan, > > On 14 July 2016 at 09:43, Ziyuan Xu wrote: >> Hi Simon, >> >> >> On 2016年07月14日 23:00, Simon Glass wrote: >>> >>> On 12 July 2016 at 19:06, Ziyuan Xu wrote: On 2016年07月12日 20:59, Simon Glass wrote: > > Hi Ziyuan

Re: [U-Boot] [PATCH v3 4/4] usb: dwc2: invalidate dcache before starting DMA

2016-07-14 Thread Simon Glass
Hi Ziyuan, On 14 July 2016 at 09:43, Ziyuan Xu wrote: > Hi Simon, > > > On 2016年07月14日 23:00, Simon Glass wrote: >> >> On 12 July 2016 at 19:06, Ziyuan Xu wrote: >>> >>> >>> On 2016年07月12日 20:59, Simon Glass wrote: Hi Ziyuan, On 6 July 2016 at 03:34, Ziyuan Xu wrote: > >

Re: [U-Boot] [PATCH v3 4/4] usb: dwc2: invalidate dcache before starting DMA

2016-07-14 Thread Ziyuan Xu
Hi Simon, On 2016年07月14日 23:00, Simon Glass wrote: On 12 July 2016 at 19:06, Ziyuan Xu wrote: On 2016年07月12日 20:59, Simon Glass wrote: Hi Ziyuan, On 6 July 2016 at 03:34, Ziyuan Xu wrote: From: Xu Ziyuan Invalidate dcache before starting the DMA to ensure coherency. In case there are an

Re: [U-Boot] [PATCH v3 4/4] usb: dwc2: invalidate dcache before starting DMA

2016-07-14 Thread Simon Glass
On 12 July 2016 at 19:06, Ziyuan Xu wrote: > > > On 2016年07月12日 20:59, Simon Glass wrote: >> >> Hi Ziyuan, >> >> On 6 July 2016 at 03:34, Ziyuan Xu wrote: >>> >>> From: Xu Ziyuan >>> >>> Invalidate dcache before starting the DMA to ensure coherency. In case >>> there are any dirty lines from the

Re: [U-Boot] [PATCH v3 4/4] usb: dwc2: invalidate dcache before starting DMA

2016-07-12 Thread Ziyuan Xu
On 2016年07月12日 20:59, Simon Glass wrote: Hi Ziyuan, On 6 July 2016 at 03:34, Ziyuan Xu wrote: From: Xu Ziyuan Invalidate dcache before starting the DMA to ensure coherency. In case there are any dirty lines from the DMA buffer in the cache, subsequent cache-line replacements may corrupt th

Re: [U-Boot] [PATCH v3 4/4] usb: dwc2: invalidate dcache before starting DMA

2016-07-12 Thread Simon Glass
Hi Ziyuan, On 6 July 2016 at 03:34, Ziyuan Xu wrote: > From: Xu Ziyuan > > Invalidate dcache before starting the DMA to ensure coherency. 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

[U-Boot] [PATCH v3 4/4] usb: dwc2: invalidate dcache before starting DMA

2016-07-06 Thread Ziyuan Xu
From: Xu Ziyuan Invalidate dcache before starting the DMA to ensure coherency. 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 trie