Re: [PATCH] MIPS: Flush cache after DMA_FROM_DEVICE for agressively speculative CPUs

2015-05-14 Thread Florian Fainelli
On 13/05/15 19:49, Kevin Cernekee wrote: > On Wed, May 13, 2015 at 6:49 PM, Leonid Yegoshin > wrote: >> Some MIPS CPUs have an aggressive speculative load and may erroneuosly load >> some cache line in the middle of DMA transaction. CPU discards result but >> cache >> doesn't. If DMA happens from

Re: [PATCH] MIPS: Flush cache after DMA_FROM_DEVICE for agressively speculative CPUs

2015-05-13 Thread Kevin Cernekee
On Wed, May 13, 2015 at 6:49 PM, Leonid Yegoshin wrote: > Some MIPS CPUs have an aggressive speculative load and may erroneuosly load > some cache line in the middle of DMA transaction. CPU discards result but > cache > doesn't. If DMA happens from device then additional cache invalidation is >

[PATCH] MIPS: Flush cache after DMA_FROM_DEVICE for agressively speculative CPUs

2015-05-13 Thread Leonid Yegoshin
Some MIPS CPUs have an aggressive speculative load and may erroneuosly load some cache line in the middle of DMA transaction. CPU discards result but cache doesn't. If DMA happens from device then additional cache invalidation is needed on that CPU's after DMA. Found in test. Signed-off-by: Leoni