From: David Mosberger <davidm@hpl.hp.com>
To: linux-kernel@vger.kernel.org
Subject: ioremap() vs. ioremap_nocache()
Date: Wed, 3 Oct 2001 17:29:49 -0700 [thread overview]
Message-ID: <200110040029.f940Tn103671@wailua.hpl.hp.com> (raw)
Jes Sorensen was kind enough to point out a longstanding
mis-conception that I had about ioremap(): I thought that ioremap()
was being deprecated in favor of ioremap_nocache() because the former
does not clearly define what kind of memory attribute will be used to
access the mapped memory (cached, write-through cached,
write-coalescing, etc). But I seem to have been wrong about that.
Now, as far as I know, on x86, ioremap() will give write-through
cached mappings (in the absence of mtrr games). If this is true, how
can this work? There are many drivers out there that use ioremap() on
memory mapped I/O regions that do NOT have the "Prefetchable" bit set
in the PCI BAR. For example, the eepro100 driver does this and it has
a routine called wait_for_cmd_done(), which spins on an ioremapped
read. On an x86, what prevents these reads from being cached?
Thanks,
--david
next reply other threads:[~2001-10-04 0:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-04 0:29 David Mosberger [this message]
2001-10-04 20:47 ` Alan Cox
2001-10-05 14:12 ` Jes Sorensen
2001-10-05 14:39 ` Alan Cox
[not found] <E15pXGL-0006n6-00@the-village.bc.nu>
[not found] ` <15293.54409.884529.251159@napali.hpl.hp.com>
2001-10-05 16:08 ` David Mosberger
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=200110040029.f940Tn103671@wailua.hpl.hp.com \
--to=davidm@hpl.hp.com \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®