[Top] [All Lists]

Re: vmalloc cached space..

To: Ashish anand <>
Subject: Re: vmalloc cached space..
From: Ralf Baechle <>
Date: Wed, 16 Apr 2003 13:57:56 +0200
In-reply-to: <>; from on Wed, Apr 16, 2003 at 03:10:17PM +0530
Original-recipient: rfc822;
References: <>
User-agent: Mutt/
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.


<Prev in Thread] Current Thread [Next in Thread>