| 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> |
|---|---|---|
| ||
| Previous by Date: | [PATCH] make prepare_frametrace() not clobber v0, Atsushi Nemoto |
|---|---|
| Next by Date: | Re: [PATCH] make prepare_frametrace() not clobber v0, Franck Bui-Huu |
| Previous by Thread: | [PATCH] make prepare_frametrace() not clobber v0, Atsushi Nemoto |
| Next by Thread: | Re: [PATCH] rewrite restore_fp_context/save_fp_context, Atsushi Nemoto |
| Indexes: | [Date] [Thread] [Top] [All Lists] |