From: John David Anglin <dave.anglin@bell.net>
To: Helge Deller <deller@gmx.de>, linux-parisc@vger.kernel.org
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Subject: Re: [PATCH 1/3] parisc: Disable huge pages on Mako machines
Date: Mon, 7 Dec 2015 10:13:37 -0500 [thread overview]
Message-ID: <5665A221.5050309@bell.net> (raw)
In-Reply-To: <1449434613-32214-1-git-send-email-deller@gmx.de>
On 2015-12-06 3:43 PM, Helge Deller wrote:
> Mako-based machines (PA8800 and PA8900 CPUs) don't allow aliasing on
> non-equaivalent addresses.
Where do the non equivalent addresses come from? When non equivalent
mappings are
used in the kernel, we try pretty hard to ensure that the user mappings
are flushed prior
to using the kernel mapping and then we flush the kernel mapping.
There's also the
copy_user_page_asm and clear_user_page_asm routines that do copies and
clear operations
using equivalent addresses. I have some notes on the flushing needed
using these routines.
One source of non equivalent addresses is the boundary between text and
data in user
applications. At one time, we had data immediately after the text and
non equivalent
addresses. Now, the start of data is rounded up so it starts on a 4K
page boundary.
This may need adjustment for huge pages, but that implies a rebuild of
user space.
I tend to think flush_tlb_all() doesn't work because the aliasing rules
are being broken.
Disabling it causes a significant increase in time to flush the tlb.
Dave
--
John David Anglin dave.anglin@bell.net
next prev parent reply other threads:[~2015-12-07 15:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-06 20:43 [PATCH 1/3] parisc: Disable huge pages on Mako machines Helge Deller
2015-12-06 20:43 ` [PATCH 2/3] parisc: Disable tlb flush optimization with huge pages Helge Deller
2015-12-06 20:43 ` [PATCH 3/3] parisc: protect huge pte changes with spinlocks Helge Deller
2015-12-07 15:13 ` John David Anglin [this message]
2015-12-07 21:19 ` [PATCH 1/3] parisc: Disable huge pages on Mako machines Helge Deller
2015-12-08 2:03 ` John David Anglin
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=5665A221.5050309@bell.net \
--to=dave.anglin@bell.net \
--cc=James.Bottomley@HansenPartnership.com \
--cc=deller@gmx.de \
--cc=linux-parisc@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 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.