From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: Creating 16 MB super-sections for MMIO
Date: Wed, 03 Dec 2014 18:06:08 +0100 [thread overview]
Message-ID: <2452742.elcJohDinR@wuerfel> (raw)
In-Reply-To: <547F1C11.5090408@free.fr>
On Wednesday 03 December 2014 15:20:01 Mason wrote:
>
> As far as I could tell, Linux does not create a super-section in the
> case outlined above. Perhaps I misread the source code?
I believe you are right, and I also agree that in theory implementing
what you say (both 64k and 16M mappings) can only help, but it's not
obvious if this makes a measurable difference in the end.
MMIO register accesses are usually slow for other reasons, and
they tend to be rare, so it's possible that you won't be able
to ever tell a difference because the MMIO TLB often gets evicted
by user mappings between accesses to different 1MB sections,
and the timing difference between a TLB-hot and cold MMIO access
might not be that great (depending on the latency of a particular
register).
I don't think there would be any objections to doing superpage
or supersection mappings for early page tables if you can show
any benefit whatsoever, but it may be hard to come up with a
scenario where it's actually measurable.
Arnd
next prev parent reply other threads:[~2014-12-03 17:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-02 10:42 Creating 16 MB super-sections for MMIO Mason
2014-12-03 9:52 ` Mason
2014-12-03 10:32 ` Catalin Marinas
2014-12-03 14:20 ` Mason
2014-12-03 17:06 ` Arnd Bergmann [this message]
2014-12-03 17:47 ` Mason
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=2452742.elcJohDinR@wuerfel \
--to=arnd@arndb.de \
--cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).