Re: vmalloc cached space..

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux