Book3s abstraction in preparation for new MMU model
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest18 patches 19 repliesIn review
- v330 patches 7 repliesSuperseded
- v229 patches 20 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 RFC | 33 patches | 11 replies | Superseded |
Changes in v4 from the cover letter
* rebase on top of PTE bits movement patch series
* Drop all the hash linux abstraction patches
* Keep only 4 level table and other code movement patches.
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/18 | powerp/mm: Update code commentsarch/ arch/ | +3 | 0 replies | |
| 2/18 | mm: Some arch may want to use HPAGE_PMD related values as variablesarch/ include/ include/ +1 more | +30 | 1 reply | |
| 3/18 | powerpc/mm: add _PAGE_HASHPTE similar to 4K hasharch/ arch/ arch/ | +4 | 2 replies | |
| 4/18 | powerpc/mm: Split pgtable types to separate headerarch/ arch/ | +109 | 2 replies | |
| 5/18 | powerpc/mm: Don't have conditional defines for real_pte_tarch/ arch/ | +9 | 2 replies | |
| 6/18 | powerpc/mm: Switch book3s 64 with 64K page size to 4 level page tablearch/ arch/ arch/ +5 more | +97 | 2 replies | |
| 7/18 | powerpc/mm: Update masked bits for linux page tablearch/ | +6 | 2 replies | |
| 8/18 | powerpc/mm: Copy pgalloc (part 1)arch/ arch/ | +375 | 2 replies | |
| 9/18 | powerpc/mm: Copy pgalloc (part 2)arch/ arch/ arch/ +4 more | +59 | 0 replies | |
| 10/18 | powerpc/mm: Copy pgalloc (part 3)arch/ | +18 | 0 replies | |
| 11/18 | powerpc/mm: Hugetlbfs is book3s_64 and fsl_book3e (32 or 64)arch/ arch/ arch/ +1 more | +415 | 2 replies | |
| 12/18 | powerpc/mm: Use flush_tlb_page in ptep_clear_flush_youngarch/ arch/ arch/ | +48 | 0 replies | |
| 13/18 | powerpc/mm: Move hash related mmu-*.h headers to book3s/arch/ arch/ arch/ +9 more | +11 | 0 replies | |
| 14/18 | powerpc/mm: Create a new headers for tlbflush for hash64arch/ arch/ | +95 | 0 replies | |
| 15/18 | powerpc/mm: Move hash page table related functions to pgtable-hash64.carch/ arch/ arch/ +8 more | +464 | 2 replies | |
| 16/18 | powerpc/mm: THP is only available on hash64 as of nowarch/ arch/ | +373 | 0 replies | |
| 17/18 | powerpc/mm: Use generic version of pmdp_clear_flush_youngarch/ arch/ | +2 | 0 replies | |
| 18/18 | powerpc/mm: Move hash64 specific definitions to separate headerarch/ arch/ arch/ +1 more | +209 | 0 replies |
Reviews trailers per patch
3 of 18 patches have a Reviewed-by or Acked-by.
| Patch | Paul Mackerras |
|---|---|
| 1/18 | |
| 2/18 | |
| 3/18 | |
| 4/18 | R-b |
| 5/18 | R-b |
| 6/18 | |
| 7/18 | |
| 8/18 | |
| 9/18 | |
| 10/18 | |
| 11/18 | |
| 12/18 | |
| 13/18 | |
| 14/18 | |
| 15/18 | |
| 16/18 | |
| 17/18 | |
| 18/18 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH V4 00/18] Book3s abstraction in preparation for new MMU model
Hello,
This series mostly consisting of code movement. One new thing added in this series is to switch book3s 64 to 4 level page table. The changes are done to accomodate the upcoming new memory model in future powerpc chips. The details of the new MMU model can be found at
http://ibm.biz/power-isa3 (Needs registration). I am including a summary of the changes below.
ISA 3.0 adds support for the radix tree style of MMU with full virtualization and related control mechanisms that manage its coexistence with the HPT. Radix-using operating systems will manage their own translation tables instead of relying on hcalls.
Radix style MMU model requires us to do a 4 level page table with 64K and 4K page size. The table index size different page size is listed below
PGD -> 13 bits
PUD -> 9 (1G hugepage)
PMD -> 9 (2M huge page)
PTE -> 5 (for 64k), 9 (for 4k)
We also require the page table to be in big endian format.
Changes from V3:
* rebase on top of PTE bits movement patch series
* Drop all the hash linux abstraction patches
* Keep only 4 level table and other code movement patches.
Changes from V2:
* rebase to latest kernel
* Update commit messages
* address review comments
Changes from V1:
* move patches adding helpers to the next series
NOTE:
This is lightly tested. Right now 4K linux page size is what is being tested. Once that is done I will have to do 64K linux page size tests.
-aneesh
Aneesh Kumar K.V (17):
powerp/mm: Update code comments
powerpc/mm: add _PAGE_HASHPTE similar to 4K hash powerpc/mm: Split pgtable types to separate header powerpc/mm: Don't have conditional defines for real_pte_t powerpc/mm: Switch book3s 64 with 64K page size to 4 level page table powerpc/mm: Update masked bits for linux page table powerpc/mm: Copy pgalloc (part 1)
powerpc/mm: Copy pgalloc (part 2)
powerpc/mm: Copy pgalloc (part 3)
powerpc/mm: Hugetlbfs is book3s_64 and fsl_book3e (32 or 64) powerpc/mm: Use flush_tlb_page in ptep_clear_flush_young powerpc/mm: Move hash related mmu-*.h headers to book3s/ powerpc/mm: Create a new headers for tlbflush for hash64 powerpc/mm: Move hash page table related functions to pgtable-hash64.c powerpc/mm: THP is only available on hash64 as of now powerpc/mm: Use generic version of pmdp_clear_flush_young powerpc/mm: Move hash64 specific definitions to separate header
Kirill A. Shutemov (1):
mm: Some arch may want to use HPAGE_PMD related values as variables
arch/powerpc/Kconfig | 1 +
.../asm/{mmu-hash32.h => book3s/32/mmu-hash.h} | 0
arch/powerpc/include/asm/book3s/32/pgalloc.h | 109 ++++
arch/powerpc/include/asm/book3s/64/hash-4k.h | 33 +-
arch/powerpc/include/asm/book3s/64/hash-64k.h | 31 +-
arch/powerpc/include/asm/book3s/64/hash.h | 58 +-
.../asm/{mmu-hash64.h => book3s/64/mmu-hash.h} | 2 +-
.../include/asm/book3s/64/pgalloc-hash-4k.h | 92 +++
.../include/asm/book3s/64/pgalloc-hash-64k.h | 51 ++
arch/powerpc/include/asm/book3s/64/pgalloc-hash.h | 59 ++
arch/powerpc/include/asm/book3s/64/pgalloc.h | 69 +++
arch/powerpc/include/asm/book3s/64/pgtable.h | 72 ++-
arch/powerpc/include/asm/book3s/64/tlbflush-hash.h | 94 ++++
arch/powerpc/include/asm/book3s/pgalloc.h | 19 +
arch/powerpc/include/asm/hugetlb.h | 1 +
arch/powerpc/include/asm/mmu.h | 4 +-
.../asm/{pgalloc-32.h => nohash/32/pgalloc.h} | 0
.../asm/{pgalloc-64.h => nohash/64/pgalloc.h} | 28 +-
arch/powerpc/include/asm/nohash/64/pgtable.h | 3 +
arch/powerpc/include/asm/nohash/pgalloc.h | 23 +
arch/powerpc/include/asm/page.h | 104 +---
arch/powerpc/include/asm/pgalloc.h | 19 +-
arch/powerpc/include/asm/pgtable-types.h | 103 ++++
arch/powerpc/include/asm/tlbflush.h | 92 +--
arch/powerpc/kernel/idle_power7.S | 2 +-
arch/powerpc/kvm/book3s_32_mmu_host.c | 2 +-
arch/powerpc/kvm/book3s_64_mmu.c | 2 +-
arch/powerpc/kvm/book3s_64_mmu_host.c | 2 +-
arch/powerpc/kvm/book3s_64_mmu_hv.c | 2 +-
arch/powerpc/kvm/book3s_64_vio.c | 2 +-
arch/powerpc/kvm/book3s_64_vio_hv.c | 2 +-
arch/powerpc/kvm/book3s_hv_rm_mmu.c | 2 +-
arch/powerpc/kvm/book3s_hv_rmhandlers.S | 2 +-
arch/powerpc/mm/Makefile | 3 +-
arch/powerpc/mm/hash64_4k.c | 2 +-
arch/powerpc/mm/hash64_64k.c | 8 +-
arch/powerpc/mm/hugepage-hash64.c | 2 +-
arch/powerpc/mm/hugetlbpage-book3e.c | 293 ++++++++++
arch/powerpc/mm/hugetlbpage-hash64.c | 122 +++-
arch/powerpc/mm/hugetlbpage.c | 401 +-------------
arch/powerpc/mm/init_64.c | 105 +---
arch/powerpc/mm/mem.c | 29 +-
arch/powerpc/mm/mmu_decl.h | 5 -
arch/powerpc/mm/pgtable-book3e.c | 163 ++++++
arch/powerpc/mm/pgtable-hash64.c | 614 +++++++++++++++++++++
arch/powerpc/mm/pgtable.c | 9 +
arch/powerpc/mm/pgtable_64.c | 454 ---------------
arch/powerpc/mm/ppc_mmu_32.c | 30 +
include/linux/bug.h | 9 +
include/linux/huge_mm.h | 3 -
mm/huge_memory.c | 17 +-
51 files changed, 2037 insertions(+), 1317 deletions(-)
rename arch/powerpc/include/asm/{mmu-hash32.h => book3s/32/mmu-hash.h} (100%)
create mode 100644 arch/powerpc/include/asm/book3s/32/pgalloc.h
rename arch/powerpc/include/asm/{mmu-hash64.h => book3s/64/mmu-hash.h} (99%)
create mode 100644 arch/powerpc/include/asm/book3s/64/pgalloc-hash-4k.h
create mode 100644 arch/powerpc/include/asm/book3s/64/pgalloc-hash-64k.h
create mode 100644 arch/powerpc/include/asm/book3s/64/pgalloc-hash.h
create mode 100644 arch/powerpc/include/asm/book3s/64/pgalloc.h
create mode 100644 arch/powerpc/include/asm/book3s/64/tlbflush-hash.h
create mode 100644 arch/powerpc/include/asm/book3s/pgalloc.h
rename arch/powerpc/include/asm/{pgalloc-32.h => nohash/32/pgalloc.h} (100%)
rename arch/powerpc/include/asm/{pgalloc-64.h => nohash/64/pgalloc.h} (90%)
create mode 100644 arch/powerpc/include/asm/nohash/pgalloc.h
create mode 100644 arch/powerpc/include/asm/pgtable-types.h
create mode 100644 arch/powerpc/mm/pgtable-book3e.c
create mode 100644 arch/powerpc/mm/pgtable-hash64.cSignature · 1 line
2.5.0