Re: [U-Boot] [PATCH v5 02/19] usb: dwc2: Use separate input and output buffers

2017-04-03 Thread Simon Glass
Hi Stefan, On 3 April 2017 at 12:24, Brüns, Stefan wrote: > On Montag, 3. April 2017 20:18:42 CEST Brüns, Stefan wrote: >> On Montag, 3. April 2017 17:38:40 CEST you wrote: >> > >> > What am I missing? >> >> The following is a gross oversimplification, but might explain it: >> >> 1. Assume all of

Re: [U-Boot] [PATCH v5 02/19] usb: dwc2: Use separate input and output buffers

2017-04-03 Thread Simon Glass
Hi Stefan, On 3 April 2017 at 12:18, Brüns, Stefan wrote: > On Montag, 3. April 2017 17:38:40 CEST you wrote: >> Hi Stefan, >> >> On 3 April 2017 at 08:26, Brüns, Stefan > wrote: >> > On Montag, 3. April 2017 01:23:17 CEST you wrote: >> >> Hi Stefan, >> >> >> >> On 2 April 2017 at 15:34, Stefan

Re: [U-Boot] [PATCH v5 02/19] usb: dwc2: Use separate input and output buffers

2017-04-03 Thread Brüns , Stefan
On Montag, 3. April 2017 20:18:42 CEST Brüns, Stefan wrote: > On Montag, 3. April 2017 17:38:40 CEST you wrote: > > > > What am I missing? > > The following is a gross oversimplification, but might explain it: > > 1. Assume all of the 64kB of the aligned_buffer is dirty. (Likely, if the > buffer

Re: [U-Boot] [PATCH v5 02/19] usb: dwc2: Use separate input and output buffers

2017-04-03 Thread Brüns , Stefan
On Montag, 3. April 2017 17:38:40 CEST you wrote: > Hi Stefan, > > On 3 April 2017 at 08:26, Brüns, Stefan wrote: > > On Montag, 3. April 2017 01:23:17 CEST you wrote: > >> Hi Stefan, > >> > >> On 2 April 2017 at 15:34, Stefan Bruens > > > > wrote: > >> > On Sonntag, 2. April 2017 17:43:38 CE

Re: [U-Boot] [PATCH v5 02/19] usb: dwc2: Use separate input and output buffers

2017-04-03 Thread Simon Glass
Hi Stefan, On 3 April 2017 at 08:26, Brüns, Stefan wrote: > On Montag, 3. April 2017 01:23:17 CEST you wrote: >> Hi Stefan, >> >> On 2 April 2017 at 15:34, Stefan Bruens > wrote: >> > On Sonntag, 2. April 2017 17:43:38 CEST Simon Glass wrote: >> >> Hi Stefan, >> >> >> >> On 2 April 2017 at 07:10

Re: [U-Boot] [PATCH v5 02/19] usb: dwc2: Use separate input and output buffers

2017-04-03 Thread Brüns , Stefan
On Montag, 3. April 2017 01:23:17 CEST you wrote: > Hi Stefan, > > On 2 April 2017 at 15:34, Stefan Bruens wrote: > > On Sonntag, 2. April 2017 17:43:38 CEST Simon Glass wrote: > >> Hi Stefan, > >> > >> On 2 April 2017 at 07:10, Stefan Bruens > > > > wrote: > >> > On Sonntag, 2. April 2017 05

Re: [U-Boot] [PATCH v5 02/19] usb: dwc2: Use separate input and output buffers

2017-04-02 Thread Simon Glass
Hi Stefan, On 2 April 2017 at 15:34, Stefan Bruens wrote: > On Sonntag, 2. April 2017 17:43:38 CEST Simon Glass wrote: >> Hi Stefan, >> >> On 2 April 2017 at 07:10, Stefan Bruens > wrote: >> > On Sonntag, 2. April 2017 05:01:41 CEST Marek Vasut wrote: >> >> On 04/02/2017 01:40 AM, Simon Glass wr

Re: [U-Boot] [PATCH v5 02/19] usb: dwc2: Use separate input and output buffers

2017-04-02 Thread Stefan Bruens
On Sonntag, 2. April 2017 17:43:38 CEST Simon Glass wrote: > Hi Stefan, > > On 2 April 2017 at 07:10, Stefan Bruens wrote: > > On Sonntag, 2. April 2017 05:01:41 CEST Marek Vasut wrote: > >> On 04/02/2017 01:40 AM, Simon Glass wrote: > >> > Hi Marek, > >> > > >> > On 1 April 2017 at 14:15, Mare

Re: [U-Boot] [PATCH v5 02/19] usb: dwc2: Use separate input and output buffers

2017-04-02 Thread Simon Glass
Hi Stefan, On 2 April 2017 at 07:10, Stefan Bruens wrote: > On Sonntag, 2. April 2017 05:01:41 CEST Marek Vasut wrote: >> On 04/02/2017 01:40 AM, Simon Glass wrote: >> > Hi Marek, >> > >> > On 1 April 2017 at 14:15, Marek Vasut wrote: >> >> On 04/01/2017 08:05 PM, Simon Glass wrote: >> >>> On Ra

Re: [U-Boot] [PATCH v5 02/19] usb: dwc2: Use separate input and output buffers

2017-04-02 Thread Stefan Bruens
On Sonntag, 2. April 2017 05:01:41 CEST Marek Vasut wrote: > On 04/02/2017 01:40 AM, Simon Glass wrote: > > Hi Marek, > > > > On 1 April 2017 at 14:15, Marek Vasut wrote: > >> On 04/01/2017 08:05 PM, Simon Glass wrote: > >>> On Raspberry Pi 2 and 3 a problem was noticed when enabling driver model

Re: [U-Boot] [PATCH v5 02/19] usb: dwc2: Use separate input and output buffers

2017-04-01 Thread Marek Vasut
On 04/02/2017 01:40 AM, Simon Glass wrote: > Hi Marek, > > On 1 April 2017 at 14:15, Marek Vasut wrote: >> On 04/01/2017 08:05 PM, Simon Glass wrote: >>> On Raspberry Pi 2 and 3 a problem was noticed when enabling driver model >>> for USB: the cache invalidate after an incoming transfer does not

Re: [U-Boot] [PATCH v5 02/19] usb: dwc2: Use separate input and output buffers

2017-04-01 Thread Simon Glass
Hi Marek, On 1 April 2017 at 14:15, Marek Vasut wrote: > On 04/01/2017 08:05 PM, Simon Glass wrote: >> On Raspberry Pi 2 and 3 a problem was noticed when enabling driver model >> for USB: the cache invalidate after an incoming transfer does not seem to >> work correctly. >> >> This may be a probl

Re: [U-Boot] [PATCH v5 02/19] usb: dwc2: Use separate input and output buffers

2017-04-01 Thread Marek Vasut
On 04/01/2017 08:05 PM, Simon Glass wrote: > On Raspberry Pi 2 and 3 a problem was noticed when enabling driver model > for USB: the cache invalidate after an incoming transfer does not seem to > work correctly. > > This may be a problem with the underlying caching implementation on armv7 > and ar

[U-Boot] [PATCH v5 02/19] usb: dwc2: Use separate input and output buffers

2017-04-01 Thread Simon Glass
On Raspberry Pi 2 and 3 a problem was noticed when enabling driver model for USB: the cache invalidate after an incoming transfer does not seem to work correctly. This may be a problem with the underlying caching implementation on armv7 and armv8 but this seems very unlikely. As a work-around, use