From: Peter Horton <pdh@colonel-panic.org>
To: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Cc: phorton@bitbox.co.uk, linux-mips@linux-mips.org
Subject: Re: missing flush_dcache_page call in 2.4 kernel
Date: Fri, 26 Mar 2004 18:43:17 +0000 [thread overview]
Message-ID: <20040326184317.GA3661@skeleton-jack> (raw)
In-Reply-To: <20040326.122258.41628012.nemoto@toshiba-tops.co.jp>
On Fri, Mar 26, 2004 at 12:22:58PM +0900, Atsushi Nemoto wrote:
>
> phorton> Looks like it.
>
> phorton> The fix we're using on Cobalt's at the moment is below
> phorton> (required for 2.4.x and 2.6.x).
>
> phorton> Fixing it this way fixes the problem with both page cache
> phorton> pages and swap pages.
>
> phorton> For more details see the threads "Kernel 2.4.23 on Cobalt
> phorton> Qube2 - area of problem" and "Instability / caching problems
> phorton> on Qube 2 - solved ?" from December last year.
>
> Thanks, I agree (maybe I should read ML messages more carefully ...)
>
> This patch fixes my problem also, thanks, but ... I do not think
> r4k_flush_icache_page is a best place to fix since my test program is
> not related I-cache at all.
>
Agreed. The fix went here because this is arch specific code and it's
called in exactly the two places where there is a problem.
> I'm quite sure that it's a kernel bug and may cause problems if any
> PIO block device (PIO ide, ide-cs, mtdblock, etc.) are used on CPUs
> which have d-cache aliases (not only MIPS). We need a correct fix ...
>
True. A proper fix would flush the relevant page after PIO transfers
into the page cache / swap pages. Unfortunately this would require a
hook in the generic kernel.
P.
next prev parent reply other threads:[~2004-03-26 18:44 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-25 13:42 missing flush_dcache_page call in 2.4 kernel Atsushi Nemoto
2004-03-25 14:33 ` Ralf Baechle
2004-03-25 14:50 ` Peter Horton
2004-03-26 3:22 ` Atsushi Nemoto
2004-03-26 18:43 ` Peter Horton [this message]
2004-03-26 19:27 ` Maciej W. Rozycki
2004-03-27 13:49 ` Atsushi Nemoto
2004-03-28 13:04 ` Peter Horton
2004-03-30 6:38 ` Atsushi Nemoto
2004-03-30 9:48 ` Peter Horton
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=20040326184317.GA3661@skeleton-jack \
--to=pdh@colonel-panic.org \
--cc=anemo@mba.ocn.ne.jp \
--cc=linux-mips@linux-mips.org \
--cc=phorton@bitbox.co.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.