All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Lord <liml@rtr.ca>
To: Bahadir Balban <bahadir.lists@googlemail.com>,
	Russell King <rmk@arm.linux.org.uk>
Cc: linux-ide@vger.kernel.org
Subject: Re: flushing cache after block io
Date: Tue, 01 May 2007 13:46:56 -0400	[thread overview]
Message-ID: <46377D10.9090605@rtr.ca> (raw)
In-Reply-To: <97bec2470705010658s48c70ba2pc5310efa533a96ea@mail.gmail.com>


Bahadir Balban wrote:
> On an ARM core with write-allocate writeback cache, there can be cache
> inconsistencies when an executable file is read from a block device
> into memory.
> 
> On a compact flash block device driver, I got around this problem by
> flushing the caches for the pages that bio buffers use on every bio
> read. E.g.
> 
> cflash_read_sectors(dev, sect_begin, nsect, buf);
> flush_icache_range(buf, buf + nsect*512);
> 
> Now I have the same problem with a ATA harddisk connected with a
> PDC20269 controller. The question is where would be the best
> high-level place to put these flushes so that it works regardless of
> what block IO driver is used?

Russell, didn't you go through all of this pain and fix it
a year or two ago?

Bahadir, exactly what kernel/version is this with?



  reply	other threads:[~2007-05-01 17:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-01 13:58 flushing cache after block io Bahadir Balban
2007-05-01 17:46 ` Mark Lord [this message]
2007-05-03 13:23   ` Russell King
2007-05-03 13:25   ` Bahadir Balban
2007-05-03 13:30     ` Russell King

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46377D10.9090605@rtr.ca \
    --to=liml@rtr.ca \
    --cc=bahadir.lists@googlemail.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=rmk@arm.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.