powerpc/8xx: Optimise MMU TLB handling and add support of 16k pages
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest21 patches 5 repliesIn review
- v321 patches 13 repliesSuperseded
- v219 patches 5 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 20 patches | 1 reply | Superseded |
Changes in v4 from the cover letter
- Resubmitting patch 3 and 7 after new comments from Joachim and feedback from Scott. Has impact on patch 5, 14, 19 and 21.
- Fixed patch 20 that didn't apply
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/21 | powerpc/8xx: Declare SPRG2 as a SCRATCH registerarch/ arch/ | +7 | 0 replies | |
| 2/21 | powerpc/8xx: Use SCRATCH0 and SCRATCH1 also for TLB handlersarch/ | +36 | 0 replies | |
| 3/21 | powerpc/8xx: exception InstructionAccess does not exist on MPC8xxarch/ | +7 | 0 replies | |
| 4/21 | powerpc/8xx: Remove loading of r10 at end of FixupDARarch/ | +3 | 0 replies | |
| 5/21 | powerpc/8xx: Fix comment about DIRTY updatearch/ | +2 | 0 replies | |
| 6/21 | powerpc/8xx: No need to save r10 and r3 when not calling FixupDARarch/ | +13 | 0 replies | |
| 7/21 | powerpc/8xx: DataAccess exception not generated by MPC8xxarch/ | +10 | 0 replies | |
| 8/21 | powerpc/8xx: No need to restore registers and save them again.arch/ | +2 | 0 replies | |
| 9/21 | powerpc/8xx: Optimize verification in FixupDARarch/ | +2 | 0 replies | |
| 10/21 | powerpc/8xx: Duplicate two insns instead of branchingarch/ | +4 | 0 replies | |
| 11/21 | powerpc/8xx: Use M_TW instead of M_TWBarch/ | +26 | 0 replies | |
| 12/21 | powerpc/8xx: Don't use MD_TWC for walkarch/ | +12 | 0 replies | |
| 13/21 | powerpc/8xx: Use PAGE size related constsarch/ | +18 | 0 replies | |
| 14/21 | powerpc/8xx: Const for TLB RPN forced valuearch/ | +13 | 0 replies | |
| 15/21 | powerpc/8xx: Implement 16k pagesarch/ arch/ arch/ | +7 | 0 replies | |
| 16/21 | powerpc/8xx: Better readibility of ERRATA CPU6 handlingarch/ | +16 | 0 replies | |
| 17/21 | powerpc/8xx: set PTE bit 22 off TLBmissarch/ arch/ arch/ | +27 | 5 replies | |
| 18/21 | powerpc/8xx: _PMD_PRESENT already set in level 1 entriesarch/ | +0 | 0 replies | |
| 19/21 | powerpc/8xx: Don't restore regs to save them again.arch/ | +5 | 0 replies | |
| 20/21 | powerpc/8xx: Use DAR to save r3 for CPU6 ERRATAarch/ | +15 | 0 replies | |
| 21/21 | powerpc/8xx: Invalidate non present TLB as early as possiblearch/ arch/ | +10 | 0 replies |
Reviews trailers per patch
None of the 21 patches has a Reviewed-by or Acked-by.
| Patch | Christophe Leroy |
|---|---|
| Series | T-b |
| 1/21 | |
| 2/21 | |
| 3/21 | |
| 4/21 | |
| 5/21 | |
| 6/21 | |
| 7/21 | |
| 8/21 | |
| 9/21 | |
| 10/21 | |
| 11/21 | |
| 12/21 | |
| 13/21 | |
| 14/21 | |
| 15/21 | |
| 16/21 | |
| 17/21 | |
| 18/21 | |
| 19/21 | |
| 20/21 | |
| 21/21 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v4 00/21] powerpc/8xx: Optimise MMU TLB handling and add support of 16k pages
This patchset:
1) provides several MMU TLB handling optimisation on MPC8xx.
2) adds support of 16k pages on MPC8xx.
All changes have been successfully tested on a custom board equipped with MPC885
---
Changes in v2:
- Patch number 10 removed, it was implementing a 16 bit alignment of the PGDIR. It is not worth potentially wasting up to 64k of memory just for removing one instruction (ori).
- Preserve r11 while calculating the level 2 address, therefore no more need to save r11 into CR.
Changes in v3:
- Few fixes following review from Joachim Tjernlund
- Removed the major hack which was saving resisters in memory for CPU6 errata
- Invalidating non present TLB entries earlier (in head_8xx instead of fault.c)
Changes in v4:
- Resubmitting patch 3 and 7 after new comments from Joachim and feedback from Scott. Has impact on patch 5, 14, 19 and 21.
- Fixed patch 20 that didn't apply
arch/powerpc/Kconfig | 2 +- arch/powerpc/include/asm/mmu-8xx.h | 2 + arch/powerpc/include/asm/pgtable-ppc32.h | 20 ++ arch/powerpc/include/asm/pte-8xx.h | 7 +- arch/powerpc/include/asm/reg.h | 3 +- arch/powerpc/kernel/head_8xx.S | 366 ++++++++++++------------- arch/powerpc/mm/fault.c | 7 - 7 files changed, 201 insertions(+), 206 deletions(-)