Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Introduce PTE_WRITE for arm64
@ 2014-01-15 14:07 Steve Capper
  2014-01-15 14:07 ` [PATCH 1/2] arm64: mm: Remove PTE_BIT_FUNC macro Steve Capper
  2014-01-15 14:07 ` [PATCH 2/2] arm64: mm: Introduce PTE_WRITE Steve Capper
  0 siblings, 2 replies; 3+ messages in thread
From: Steve Capper @ 2014-01-15 14:07 UTC (permalink / raw)
  To: linux-arm-kernel

This series adds support for a separate PTE_WRITE bit, allowing one to
distinguish between writable clean ptes and read only ptes. At the
moment we have the following bit encodings:

                                PTE_DIRTY       PTE_RDONLY
!pte_dirty && !pte_write        0               1
!pte_dirty && pte_write         0               1
pte_dirty && !pte_write         1               1
pte_dirty && pte_write          1               0

One reason we need to add the distinction is to fix a problem with huge
pages, described here:
http://lists.infradead.org/pipermail/linux-arm-kernel/2013-November/215155.html

The patch in the link above attempts to address this issue by bypassing
set_pte_at in the huge page code, but it was decided that the lack of
distinction between writable clean ptes and read only ptes should be
addressed instead as it could likely lead to other issues that we've
not yet seen.

The first patch in the series expands out PTE_BIT_FUNC to make life
much easier for cscope and tags users. Whilst the second patch actually
introduces PTE_WRITE.

LPAE on ARM is also affected by this issue and will need a similar
patch.
 
Steve Capper (2):
  arm64: mm: Remove PTE_BIT_FUNC macro
  arm64: mm: Introduce PTE_WRITE

 arch/arm64/include/asm/pgtable.h | 93 +++++++++++++++++++++++++++-------------
 1 file changed, 63 insertions(+), 30 deletions(-)

-- 
1.8.1.4

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-01-15 14:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-15 14:07 [PATCH 0/2] Introduce PTE_WRITE for arm64 Steve Capper
2014-01-15 14:07 ` [PATCH 1/2] arm64: mm: Remove PTE_BIT_FUNC macro Steve Capper
2014-01-15 14:07 ` [PATCH 2/2] arm64: mm: Introduce PTE_WRITE Steve Capper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox