From: steve.capper@linaro.org (Steve Capper)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH V4 0/2] PTE fixes for ARM LPAE
Date: Mon, 16 Jun 2014 15:32:37 +0100 [thread overview]
Message-ID: <1402929159-11028-1-git-send-email-steve.capper@linaro.org> (raw)
This series fixes a couple of problems that I encountered on ARM with
LPAE.
1) Some pte accessors can have their results cancelled out by a
downcast. This is addressed by the first patch.
2) It is impossible to distinguish between clean writable ptes and
read only ptes. This is addressed by the second patch.
I was going to put V3 of this series into the patch system, but got
distracted, and some recent activity has necessitated a revision of
this series.
Notable changes in this series from V3->V4:
o) Rebased to take into account the BE LPAE fix in 3.16-rc1.
o) THP logic added as this was missing.
I was tempted to put a third patch in the series to re-route THP through
the pte setters, but decided to take baby steps instead.
This series has been tested with libhugetlbfs unit tests, ltp mm tests
and a custom THP test to test what happens when PROT_NONE THPs are
faulted. I have tested on an Arndale board with LPAE and classic MMU
(with classic MMU, only ltp mm tests were run), and would appreciate
any testers for anything not covered by proc-v7-[23]level.S.
Also any comments/feedback would be appreciated.
Cheers,
--
Steve
Steve Capper (2):
arm: mm: Introduce {pte,pmd}_isset and {pte,pmd}_isclear
arm: mm: Switch back to L_PTE_WRITE
arch/arm/include/asm/pgtable-2level.h | 2 +-
arch/arm/include/asm/pgtable-3level.h | 24 ++++++++++++----
arch/arm/include/asm/pgtable.h | 52 +++++++++++++++++++----------------
arch/arm/mm/dump.c | 8 +++---
arch/arm/mm/mmu.c | 25 +++++++++--------
arch/arm/mm/proc-macros.S | 16 +++++------
arch/arm/mm/proc-v7-2level.S | 6 ++--
arch/arm/mm/proc-v7-3level.S | 4 ++-
arch/arm/mm/proc-xscale.S | 4 +--
9 files changed, 80 insertions(+), 61 deletions(-)
--
1.8.1.4
next reply other threads:[~2014-06-16 14:32 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-16 14:32 Steve Capper [this message]
2014-06-16 14:32 ` [PATCH V4 1/2] arm: mm: Introduce {pte, pmd}_isset and {pte, pmd}_isclear Steve Capper
2014-06-20 9:12 ` [PATCH V4 1/2] arm: mm: Introduce {pte,pmd}_isset and {pte,pmd}_isclear Will Deacon
2014-06-20 10:04 ` Russell King - ARM Linux
2014-06-16 14:32 ` [PATCH V4 2/2] arm: mm: Switch back to L_PTE_WRITE Steve Capper
2014-06-20 9:21 ` Will Deacon
2014-06-20 13:23 ` Steve Capper
2014-06-20 18:17 ` Russell King - ARM Linux
2014-06-23 11:17 ` Catalin Marinas
2014-06-23 15:07 ` Steve Capper
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=1402929159-11028-1-git-send-email-steve.capper@linaro.org \
--to=steve.capper@linaro.org \
--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).