lkml.org 
[lkml]   [2004]   [Apr]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: How does ioremap() get non-cached mappings
On Fri, 16 Apr 2004, Brian Gerst wrote:

> Nagendra Singh Tomar wrote:
> > ioremap() function in x86 arch code does not seem to be setting _PAGE_PCD
> > bit in the PTE. How then does it give non-cached mapping to MMIO mappings
> > for memory on some interface card. I have gone thru some old threads on
> > this, which have concluded that it does give non-cached mappings, and
> > moerover ioremap seems to work fine whenever I have used to map any PCI
> > card memory,
> > Is it guaranteed thru the means of MTRR ?
> >
>
> ioremap_nocache()

I'm aware of ioremap_nocache(), and the fact that it explicitly sets
_PAGE_PCD. My question originated after reading this posting by Alan

http://www.uwsg.iu.edu/hypermail/linux/kernel/0110.0/0878.html

in which he explicitly states that ioremap() gives uncached mapping. If
you follow the thread, there is a general consensus that ioremap and
ioremap_nocache are functionaly the same on x86 arch (and I suppose on
most archs)

Thanx,
tomar
>
> --
> Brian Gerst
>

--



-- You have moved the mouse. Windows must be restarted for the
changes to take effect.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.059 / U:0.192 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site