Skip to content

Minor cleanups to kernel pte handling

Russell King - ARM Linux linux-arm-kernel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5ARM: pgtable: move TOP_PTE address definitions to arch/arm/mm/mm.harch/arm/mm/copypage-v4mc.c arch/arm/mm/copypage-v6.c arch/arm/mm/copypage-xscale.c +2 more+25 -281 reply
2/5ARM: pgtable: use mk_pte rather than pfn_pte(page_to_pfn())arch/arm/mm/copypage-v4mc.c arch/arm/mm/copypage-v6.c arch/arm/mm/copypage-xscale.c+5 -51 reply
3/5ARM: pgtable: consolidate set_pte_ext(TOP_PTE, ...) + tlb flusharch/arm/mm/copypage-v4mc.c arch/arm/mm/copypage-v6.c arch/arm/mm/copypage-xscale.c +3 more+20 -251 reply
3/5ARM: pgtable: consolidate set_pte_ext(TOP_PTE, ...) + tlb flush+0 -00 replies
4/5ARM: pgtable: provide get_top_pte() to complement set_top_pte()arch/arm/mm/highmem.c arch/arm/mm/mm.h+8 -51 reply
5/5ARM: pgtable: get rid of TOP_PTE()arch/arm/mm/mm.h+4 -41 reply

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchCatalin Marinas
1/5R-b
2/5R-b
3/5R-b
3/5R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] Minor cleanups to kernel pte handling

This series of five patches cleans up the pte handling for users of the 'TOP_PTE' - those CPUs which require special handling of cache aliases and the like.

TOP_PTE() always was ugly, so this patch set gets rid of it, in favour of a couple of helper functions (set_top_pte() and get_top_pte()). set_top_pte() contains the necessary local TLB flush to ensure that the update will be seen by the MMU.

We also centralize the virtual addresses used for these mappings into arch/arm/mm/mm.h.

Finally, we transform pfn_pte(page_to_pfn(page), prot) to mk_pte(page, prot) as we don't need to open-code this operation, and we have this helper anyway.

 arch/arm/mm/copypage-v4mc.c   |    9 ++-------
 arch/arm/mm/copypage-v6.c     |   20 ++++++--------------
 arch/arm/mm/copypage-xscale.c |    9 +--------
 arch/arm/mm/flush.c           |   14 +++++---------
 arch/arm/mm/highmem.c         |   21 ++++++++-------------
 arch/arm/mm/mm.h              |   26 +++++++++++++++++++++++++-
 6 files changed, 47 insertions(+), 52 deletions(-)