From: Ralf Baechle <ralf@linux-mips.org>
To: Ashish anand <ashish.anand@inspiretech.com>
Cc: linux-mips@linux-mips.org
Subject: Re: vmalloc cached space..
Date: Wed, 16 Apr 2003 13:57:56 +0200 [thread overview]
Message-ID: <20030416135756.B29679@linux-mips.org> (raw)
In-Reply-To: <200304160959.h3G9xVf6017958@smtp.inspirtek.com>; from ashish.anand@inspiretech.com on Wed, Apr 16, 2003 at 03:10:17PM +0530
On Wed, Apr 16, 2003 at 03:10:17PM +0530, Ashish anand wrote:
> As vmalloc returns KSEG2 cached memory ,
> 1.can I use a volatile pointer to treat it as safe as uncached..?
> or
Volatile does not mean uncached. Volatile means the C compiler should not
perform certain optimizations and is usually used for hardware accesses
that have side effects or variables that can be changed from some kind
of interrupt or signal handled and are also read by the main program.
> 2. i should use vmalloc_prot (size, PAGE_KERNEL_UNCACHED) in umap.c.
Uncached memory access is rarely necessary and so _extremly_ slow that it
should be avoided at almost any price. Maybe you should describe what
you're trying to achieve, then let's see if there's a better suggestion
we can make.
Ralf
next prev parent reply other threads:[~2003-04-16 11:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-16 9:40 vmalloc cached space Ashish anand
2003-04-16 11:57 ` Ralf Baechle [this message]
2003-04-16 13:35 ` Maciej W. Rozycki
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=20030416135756.B29679@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=ashish.anand@inspiretech.com \
--cc=linux-mips@linux-mips.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 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.