From: Robin Holt <holt@sgi.com>
To: linux-ia64@vger.kernel.org
Subject: Re: cacheble to uncachble change
Date: Mon, 26 Apr 2004 21:35:55 +0000 [thread overview]
Message-ID: <20040426213555.GA15227@lnx-holt.americas.sgi.com> (raw)
In-Reply-To: <408D5C58.E07A5FBE@email.mot.com>
On Mon, Apr 26, 2004 at 12:25:03PM -0700, David Mosberger wrote:
> >>>>> On Mon, 26 Apr 2004 14:00:40 -0500, Mario Smarduch <cms063@email.mot.com> said:
>
> Mario> Is there support in IA64 kernel to change a memory mapping
> Mario> from cacheble to uncacheble attribute. By support I mean one
> Mario> function which can accept an addr start/range, make sure
> Mario> in-transit cache data/prefetch hits are synced and upon
> Mario> return gurantee no CPU has any stale data in its caches and
> Mario> after installing the new attribute memory is guranteed
> Mario> synchronized. Or is a combonition of functions/macros
> Mario> required?
>
> Volume 2 (System Architecture) of the ASDM outlines the steps needed
> to do such a transition. All the necessary primitives should be there
> in ia64 linux, but there is no single convenient-to-use function to do
> this.
>
> In any case, just be careful about not introducing memory attribute
> aliases. You need to be especially careful since the kernel accesses
> memory with granule-sized mappings (normally 64MB page size, but on
> some machines its 16MB).
Be very careful when using uncached memory. On the SGI systems, we
always allocate memory for uncached out of a seperate granule. We were
experiencing memory corruption due to kernel speculative load which
fetched the cache line dirty. This would result in cache lines that were
occasionally out of date. The problem was resolved on our kernels by
drivers/char/fetchop.c which provides a seperate device for mapping
when you want uncached or write coalesced memory.
Good Luck,
Robin Holt
next prev parent reply other threads:[~2004-04-26 21:35 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-26 18:57 cacheble to uncachble change Mario Smarduch
2004-04-26 19:25 ` David Mosberger
2004-04-26 21:24 ` Jim Hull
2004-04-26 21:35 ` Robin Holt [this message]
2004-04-26 21:46 ` David Mosberger
2004-04-27 0:03 ` David Mosberger
2004-04-27 10:52 ` Robin Holt
2004-04-27 14:24 ` Jack Steiner
2004-04-27 19:50 ` David Mosberger
2004-04-27 21:31 ` Jack Steiner
2004-04-27 21:48 ` David Mosberger
2004-04-27 22:35 ` Mario Smarduch
2004-04-27 22:45 ` David Mosberger
2004-04-27 23:53 ` Luck, Tony
2004-04-28 1:43 ` Robin Holt
2004-04-28 15:52 ` Mario Smarduch
2004-04-29 4:49 ` David Mosberger
2004-04-29 13:39 ` Smarduch Mario-CMS063
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=20040426213555.GA15227@lnx-holt.americas.sgi.com \
--to=holt@sgi.com \
--cc=linux-ia64@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox