linux-mips
[Top] [All Lists]

Data corruption during direct-IO

To: 'linux-mips' <linux-mips@linux-mips.org>
Subject: Data corruption during direct-IO
From: 이재준 <jj76.lee@samsung.com>
Date: Tue, 29 Aug 2006 16:23:55 +0900
In-reply-to: <50c9a2250607062212w70de956ax7aefd4f131ae9396@mail.gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Thread-index: AcahhBZjm5Q6FhFfR1OnbzKQpyBJXgpsgKLA
Hi everyone.

I'm working on some application which is using directly block device with
direct-IO.
When the application writes some patterns and reads it again. The pattern
is broken with 32bytes. I think that is due to the data-cache coherent
problem.

So, I inserted the code dma_cache_inv() before direct-IO().

After the patch, it works well. 

Could you tell me why the data is broken and why mips-kernel doesn't handle
data cache?

Thanks for any comments. 

Best Regards
JJ



<Prev in Thread] Current Thread [Next in Thread>
  • Data corruption during direct-IO, 이재준 <=