aboutsummaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorMian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com>2010-05-06 09:10:53 +0200
committerJohn Rigby <john.rigby@linaro.org>2010-09-02 22:43:43 -0600
commitba408f579890ce60640d188665efddd6b4e4458d (patch)
tree50fe74e76ceb2c06b7bb3a746e23cbea37510606 /fs
parentb4bd65c36a2c0c8bd39dff755eb9a135eb186a30 (diff)
fs fix to solve cache coherence issues with bounce buffers and eMMC driver.
On 05/05/2010 08:19 AM, Rabin VINCENT wrote: > This is for I$-D$ coherence issues when bounce buffers are used > for the MMC driver and code is executed from a file system on > eMMC. > > IMO a better fix is to either change flush_kernel_dcache_page() > to flush the D$ even on VIPT non-aliasing caches or to replace > the flush_kernel_dcache_page() in lib/scatterlist.c with > flush_dcache_page(). > > BR, > Rabin Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/mpage.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/mpage.c b/fs/mpage.c
index fd56ca2ea55..ea5b3e685d5 100644
--- a/fs/mpage.c
+++ b/fs/mpage.c
@@ -52,6 +52,8 @@ static void mpage_end_io_read(struct bio *bio, int err)
prefetchw(&bvec->bv_page->flags);
if (uptodate) {
+ /* FIXME: fix to solve cache coherence issues. */
+ flush_dcache_page(page);
SetPageUptodate(page);
} else {
ClearPageUptodate(page);