From: Alice Hennessy <ahennessy@mvista.com>
To: Kevin Jacobs <jacobs@penguin.theopalgroup.com>
Cc: Vipin Malik <vmalik@danielind.com>,
mtd@infradead.org, ahennessy@mvista.com
Subject: Re: Oh, the many joys of MTD...
Date: Thu, 08 Mar 2001 18:54:44 -0800 [thread overview]
Message-ID: <3AA845F4.4C73221B@mvista.com> (raw)
In-Reply-To: Pine.LNX.4.21.0103081232160.7891-100000@penguin.theopalgroup.com
Kevin Jacobs wrote:
> On Thu, 8 Mar 2001, Vipin Malik wrote:
> > > The device mapping is done with the ioremap() call which is responsible for
> > > providing a non-cacheable mapping.
> >
> > Actually I had to use ioremap_nocache() call with my ELANSC520 processor
> > (which has a processor I&D cache). This is even with caching actually
> > disabled for the flash banks inside the processor (by the startup
> > processor init code).
>
> This is exactly the configuration I have -- its a Lineo SecureEdge (NETtel)
> 2580 which is based on an AMD Elan SC520 chip.
>
> > Does ioremap() do any caching of it's own? What's the diff between the two?
>
> The difference is:
>
> extern inline void * ioremap (unsigned long offset, unsigned long size)
> {
> return __ioremap(offset, size, 0);
> }
>
> and
>
> extern inline void * ioremap_nocache (unsigned long offset, unsigned long size)
> {
> return __ioremap(offset, size, _PAGE_PCD);
> }
>
> This in turn adds _PAGE_PCD to the set_pte() call in __ioremap. This turns
> off the page cache for the mapped area. I'm still not sure why this matters
> though I think its inspired me to re-read the literature on the fiddly bits
> of i386 architecture.
>
> -Kevin
>
> --
> Kevin Jacobs
> The OPAL Group - Enterprise Systems Architect
> Voice: (216) 986-0710 x 19 E-mail: jacobs@theopalgroup.com
> Fax: (216) 986-0714 WWW: http://www.theopalgroup.com
>
> To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
Looks like ioremap is implemented inconsistently over the architectures. Both
mips
and ppc return no-cache addresses for ioremap at the moment. i386 looks like it
doesn't.
Perhaps ioremap_nocache is the way to go.
Alice
To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
next prev parent reply other threads:[~2001-03-09 2:54 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-08 13:38 Oh, the many joys of MTD Kevin Jacobs
2001-03-08 14:43 ` David Woodhouse
2001-03-08 14:49 ` Kevin Jacobs
2001-03-08 16:27 ` Nicolas Pitre
2001-03-08 16:29 ` Kevin Jacobs
2001-03-08 17:41 ` Vipin Malik
2001-03-08 17:40 ` Kevin Jacobs
2001-03-09 2:54 ` Alice Hennessy [this message]
2001-03-12 10:10 ` Robert Kaiser
-- strict thread matches above, loose matches on Subject: below --
2001-03-13 7:24 Jonas Holmberg
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=3AA845F4.4C73221B@mvista.com \
--to=ahennessy@mvista.com \
--cc=jacobs@penguin.theopalgroup.com \
--cc=mtd@infradead.org \
--cc=vmalik@danielind.com \
/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