From: Ralf Baechle <ralf@linux-mips.org>
To: Chen Jie <chenj@lemote.com>
Cc: linux-mips@linux-mips.org
Subject: Re: [Question] What's difference between ioremap_wc and ioremap_uncached_accelerated?
Date: Fri, 18 Nov 2011 11:05:44 +0000 [thread overview]
Message-ID: <20111118110544.GA18331@linux-mips.org> (raw)
In-Reply-To: <CAGXxSxWUfNysqpfG0hWGYC0WyOMWS5R+K4euZ9miD3UD43F94A@mail.gmail.com>
On Thu, Nov 17, 2011 at 05:39:56PM +0800, Chen Jie wrote:
> I noticed mips defines an ioremap_uncached_accelerated in
> arch/mips/include/asm/io.h, not reuse the name of "ioremap_wc", what
> is the difference?
>
> Some drivers use ioremap_wc, e.g. ttm_bo_ioremap() in
> drivers/gpu/drm/ttm/ttm_bo_util.c, I wonder whether these ioremap_wc
> invocations can be replaced with "ioremap_uncached_accelerated"?
Uncached Accelerated is the name under which the R10000 introduced a
cache mode that uses the CPU's write buffer to combine writes but that
otherwise is uncached. ioremap_uncached_accelerated and ioremap_cache-
able_cow were introduced in 2002; ioremap_wc was introduced in 2008 for
x86 and the latter name became the standard.
So the two functions are the same, just named differently for historic
reasons. I'm going to rename the function - for all practical purposes
this naming difference has turned into a bug.
Also I will rename ioremap_cacheable_cow to ioremap_cache. Note that
that ioremap_cacheable_cow also has a bug, it is hardwired to use CCA
_CACHE_CACHABLE_COW which is not available on all MIPS cores. I will
change it to use the same CCA that is also being used for RAM.
Ralf
prev parent reply other threads:[~2011-11-18 11:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-17 9:39 [Question] What's difference between ioremap_wc and ioremap_uncached_accelerated? Chen Jie
2011-11-18 11:05 ` Ralf Baechle [this message]
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=20111118110544.GA18331@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=chenj@lemote.com \
--cc=linux-mips@linux-mips.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.