Re: [PATCH v2] MIPS: c-r4k: fix data corruption related to cache coherence.

2018-05-11 Thread James Hogan
On Tue, May 08, 2018 at 11:22:36AM +1000, NeilBrown wrote: > On Mon, May 07 2018, James Hogan wrote: > > > On Mon, May 07, 2018 at 07:40:49AM +1000, NeilBrown wrote: > >> > >> Hi James, > >> this hasn't appear in linux-next yet, or in any branch > >> of > >>git://git.kernel.org/pub/scm/linu

Re: [PATCH v2] MIPS: c-r4k: fix data corruption related to cache coherence.

2018-05-07 Thread NeilBrown
On Mon, May 07 2018, James Hogan wrote: > On Mon, May 07, 2018 at 07:40:49AM +1000, NeilBrown wrote: >> >> Hi James, >> this hasn't appear in linux-next yet, or in any branch >> of >>git://git.kernel.org/pub/scm/linux/kernel/git/jhogan/mips.git >> >> Should I expect it to? > > Sorry Neil,

Re: [PATCH v2] MIPS: c-r4k: fix data corruption related to cache coherence.

2018-05-07 Thread James Hogan
On Mon, May 07, 2018 at 07:40:49AM +1000, NeilBrown wrote: > > Hi James, > this hasn't appear in linux-next yet, or in any branch > of >git://git.kernel.org/pub/scm/linux/kernel/git/jhogan/mips.git > > Should I expect it to? Sorry Neil, I haven't applied it yet. I'm planning to get a few

Re: [PATCH v2] MIPS: c-r4k: fix data corruption related to cache coherence.

2018-05-06 Thread NeilBrown
Hi James, this hasn't appear in linux-next yet, or in any branch of git://git.kernel.org/pub/scm/linux/kernel/git/jhogan/mips.git Should I expect it to? Thanks, NeilBrown On Fri, Apr 27 2018, NeilBrown wrote: > When DMA will be performed to a MIPS32 1004K CPS, the > L1-cache for the rang

[PATCH v2] MIPS: c-r4k: fix data corruption related to cache coherence.

2018-04-26 Thread NeilBrown
When DMA will be performed to a MIPS32 1004K CPS, the L1-cache for the range needs to be flushed and invalidated first. The code currently takes one of two approaches. 1/ If the range is less than the size of the dcache, then HIT type requests flush/invalidate cache lines for the particular