[PATCH 2/8] ARM: Implement read/write for ownership in theARMv6 DMA cache ops
From: Russell King - ARM Linux <hidden>
Date: 2010-05-16 15:01:17
From: Russell King - ARM Linux <hidden>
Date: 2010-05-16 15:01:17
On Sun, May 16, 2010 at 09:29:47AM +0300, Ronen Shitrit wrote:
Our ARMv6 do speculative rd for both I and D cache...
That means doing this read-write for ownership trick can lead to corrupted data on your CPU, since the CPU may prefetch data from the DMA buffer before the unmap has happened. This means Catalin's patch is unsafe for your situation.