From: Ralf Baechle <ralf@linux-mips.org>
To: Wayne Gowcher <wgowcher@yahoo.com>
Cc: linux-mips@linux-mips.org
Subject: Re: Tips on inspecting / debuging cache
Date: Fri, 14 Mar 2003 20:26:09 +0100 [thread overview]
Message-ID: <20030314202609.A3670@linux-mips.org> (raw)
In-Reply-To: <20030314021308.60082.qmail@web11905.mail.yahoo.com>; from wgowcher@yahoo.com on Thu, Mar 13, 2003 at 06:13:08PM -0800
On Thu, Mar 13, 2003 at 06:13:08PM -0800, Wayne Gowcher wrote:
> I am wondering if someone could point me towards
> articles / source code that would give me a little
> insight into how to debug cache problems in mips.
>
> For example , how do I inspect the contents of the
> cache ? Are there routines to dump out the contents of
> the cache ?
Frankly, such code isn't to useful. The problems in the cache code can
be fairly subtle. The only thing that has worked halfway well is reading
the code 1,000 times more after having read it 1,000 times. And because
it's such a nice job, read it another 1000 times when finished.
If you're refering to the current round of cache problems introduced about
three days ago when I eleminated flush_page_to_ram() and replace it
with flush_dcache_page() - the untested quickfix is changing the
definitions of clear_user_page() and copy_user_page() in <asm/page.h> to
flush the data cache after the operation, for example by invoking
flush_cache_all(). This particular problem affects all processors with
virtually indexed data caches except the R4000 and R4000 SC and MC
versions and the R10000 family.
And everybody's favorite question, was this necessary that late in 2.4?
Yes, it was. The new mechanism deals is not only more efficient it also
deals better with aliases between the pagecache and userspace mappings.
Ralf
next prev parent reply other threads:[~2003-03-14 19:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-14 2:13 Tips on inspecting / debuging cache Wayne Gowcher
2003-03-14 8:22 ` Kevin D. Kissell
2003-03-14 8:22 ` Kevin D. Kissell
2003-03-14 19:26 ` Ralf Baechle [this message]
2003-03-14 21:53 ` Wayne Gowcher
-- strict thread matches above, loose matches on Subject: below --
2003-03-14 23:23 Adam Kiepul
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=20030314202609.A3670@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=linux-mips@linux-mips.org \
--cc=wgowcher@yahoo.com \
/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.