Skip to content

powerpc32: fix of PTE accessors and handle inverted HW bits via PTE accessors

Christophe Leroy linuxppc-dev lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4powerpc32: misuse of accessors to pte_t objectsarch/powerpc/include/asm/pgtable.h+9 -80 replies
2/4powerpc32: properly clear page table when 0 is not a good default PTE valuearch/powerpc/mm/pgtable_32.c+14 -01 reply
3/4powerpc32: adds direct support to hardware inverted values in pte accessorsarch/powerpc/include/asm/page.h arch/powerpc/include/asm/pgtable-ppc32.h arch/powerpc/include/asm/pte-common.h+32 -160 replies
4/4powerpc32/8xx: invert _PAGE_RW bit in PTE accessorsarch/powerpc/include/asm/pte-8xx.h arch/powerpc/kernel/head_8xx.S+1 -30 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by.

PatchChristophe Leroy
SeriesT-b
1/4
2/4
3/4
4/4

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/4] powerpc32: fix of PTE accessors and handle inverted HW bits via PTE accessors

Some powerpc like the 8xx do invert some PTE bits in HW. In order to avoid having to invert the bits each time we set them into hardware, this patch adds the invertion logic into the PTE accessors in order to get them already properly inversed in the tables.

Patchset:
1) powerpc32: misuse of accessors to pte_t objects
2) powerpc32: properly clear page table when 0 is not a good default PTE value
3) powerpc32: adds direct support to hardware inverted values in pte accessors
4) powerpc32/8xx: invert _PAGE_RW bit in PTE accessors

All changes have been successfully tested on MPC885

---
 arch/powerpc/include/asm/page.h          |  8 +++----
 arch/powerpc/include/asm/pgtable-ppc32.h | 37 +++++++++++++++++++++-----------
 arch/powerpc/include/asm/pgtable.h       | 17 ++++++++-------
 arch/powerpc/include/asm/pte-8xx.h       |  1 +
 arch/powerpc/include/asm/pte-common.h    |  3 +++
 arch/powerpc/kernel/head_8xx.S           |  3 ---
 arch/powerpc/mm/pgtable_32.c             | 14 ++++++++++++
 7 files changed, 56 insertions(+), 27 deletions(-)