Re: [U-Boot] [PATCH] mmc: dw_mmc: Round up descriptor end to nearest multiple of cacheline size

2019-04-01 Thread Marek Vasut
On 4/1/19 8:57 PM, Simon Glass wrote: > Hi Marek, > > On Sat, 30 Mar 2019 at 20:37, Marek Vasut wrote: >> >> On 3/30/19 10:18 PM, Simon Glass wrote: >>> Hi Marek, >>> >>> On Sat, 23 Mar 2019 at 11:55, Marek Vasut wrote: The driver currently calculates the end address of cache flush ope

Re: [U-Boot] [PATCH] mmc: dw_mmc: Round up descriptor end to nearest multiple of cacheline size

2019-04-01 Thread Simon Glass
Hi Marek, On Sat, 30 Mar 2019 at 20:37, Marek Vasut wrote: > > On 3/30/19 10:18 PM, Simon Glass wrote: > > Hi Marek, > > > > On Sat, 23 Mar 2019 at 11:55, Marek Vasut wrote: > >> > >> The driver currently calculates the end address of cache flush operation > >> for the DMA descriptors by adding

Re: [U-Boot] [PATCH] mmc: dw_mmc: Round up descriptor end to nearest multiple of cacheline size

2019-03-30 Thread Marek Vasut
On 3/30/19 10:18 PM, Simon Glass wrote: > Hi Marek, > > On Sat, 23 Mar 2019 at 11:55, Marek Vasut wrote: >> >> The driver currently calculates the end address of cache flush operation >> for the DMA descriptors by adding cacheline size to the start address of >> the last DMA descriptor. This is n

Re: [U-Boot] [PATCH] mmc: dw_mmc: Round up descriptor end to nearest multiple of cacheline size

2019-03-30 Thread Simon Glass
Hi Marek, On Sat, 23 Mar 2019 at 11:55, Marek Vasut wrote: > > The driver currently calculates the end address of cache flush operation > for the DMA descriptors by adding cacheline size to the start address of > the last DMA descriptor. This is not safe, as the cacheline size may be, > in some u

[U-Boot] [PATCH] mmc: dw_mmc: Round up descriptor end to nearest multiple of cacheline size

2019-03-23 Thread Marek Vasut
The driver currently calculates the end address of cache flush operation for the DMA descriptors by adding cacheline size to the start address of the last DMA descriptor. This is not safe, as the cacheline size may be, in some unlikely cases, smaller than the DMA descriptor size. Replace the additi

[U-Boot] [PATCH] mmc: dw_mmc: Round up descriptor end to nearest multiple of cacheline size

2019-02-19 Thread Marek Vasut
The driver currently calculates the end address of cache flush operation for the DMA descriptors by adding cacheline size to the start address of the last DMA descriptor. This is not safe, as the cacheline size may be, in some unlikely cases, smaller than the DMA descriptor size. Replace the additi