PowerISA 3.0 Radix page table support
Get series with b4
b4 am [email protected]Versions newest first
- v2 Latest68 patches 70 repliesIn review
Changes in v2 from the cover letter
* Make sure each patch build without errors on different configs
* Address review feedback
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/68 | powerpc/cxl: Use REGION_ID instead of opencodingdrivers/ | +1 | 4 replies | |
| 2/68 | powerpc/mm/nohash: Return correctly from flush_tlb_pagearch/ | +1 | 2 replies | |
| 3/68 | powerpc/mm/nohash: Update non SMP version of flush_tlb_page to handle hugetlb addressarch/ arch/ arch/ | +17 | 0 replies | |
| 4/68 | powerpc/mm: Use big endian page table for book3s 64arch/ arch/ arch/ +6 more | +159 | 11 replies | |
| 5/68 | powerpc/mm: use _PAGE_READ to indicate Read accessarch/ arch/ arch/ +11 more | +49 | 0 replies | |
| 6/68 | powerpc/mm/subpage: Clear RWX bit to indicate no accessarch/ | +8 | 0 replies | |
| 7/68 | powerpc/mm: Use pte_user instead of opencodingarch/ arch/ | +6 | 0 replies | |
| 8/68 | powerpc/mm: Replace _PAGE_USER with _PAGE_PRIVILEGEDarch/ arch/ arch/ +9 more | +80 | 0 replies | |
| 9/68 | powerpc/mm: Remove RPN_SHIFT and RPN_SIZEarch/ arch/ arch/ +2 more | +23 | 0 replies | |
| 10/68 | powerpc/mm: Update _PAGE_KERNEL_ROarch/ arch/ arch/ | +14 | 5 replies | |
| 11/68 | powerpc/mm: Use helper for finding pte bits mapping I/O areaarch/ arch/ arch/ +3 more | +8 | 0 replies | |
| 12/68 | powerpc/mm: Drop WIMG in favour of new constantsarch/ arch/ arch/ +6 more | +66 | 0 replies | |
| 13/68 | powerpc/mm: Use generic version of pmdp_clear_flush_youngarch/ arch/ | +3 | 0 replies | |
| 14/68 | powerpc/mm: Use generic version of ptep_clear_flush_youngarch/ | +7 | 0 replies | |
| 15/68 | powerpc/mm: Move common data structure between radix and hash to book3s 64 generic headersarch/ arch/ arch/ +1 more | +85 | 0 replies | |
| 16/68 | powerpc/mm/power9: Add partition table formatarch/ arch/ arch/ | +31 | 1 reply | |
| 17/68 | powerpc/mm/hash: Add support for POWER9 hasharch/ arch/ arch/ +5 more | +81 | 2 replies | |
| 18/68 | powerpc/mm: Move hash and no hash code to separate filesarch/ arch/ arch/ +2 more | +235 | 3 replies | |
| 19/68 | powerpc/mm/book3s: Rename hash specific PTE bits to carry H_ prefixarch/ arch/ arch/ +10 more | +121 | 0 replies | |
| 20/68 | powerpc/mm: Handle _PTE_NONE_MASKarch/ | +2 | 1 reply | |
| 21/68 | powerpc/mm: Move common pte bits and accessors to book3s/64/pgtable.harch/ arch/ | +141 | 0 replies | |
| 22/68 | powerpc/mm: Move pte accessors that operate on common pte bits to pgtable.harch/ arch/ | +209 | 0 replies | |
| 23/68 | powerpc/mm: Make page table size a variablearch/ arch/ arch/ +11 more | +135 | 3 replies | |
| 24/68 | powerpc/mm: Move page table index and and vaddr to pgtable.harch/ arch/ | +12 | 0 replies | |
| 25/68 | powerpc/mm: Move pte related function togetherarch/ | +71 | 1 reply | |
| 26/68 | powerpc/mm/radix: Add radix pte definesarch/ arch/ arch/ +1 more | +153 | 3 replies | |
| 27/68 | powerpc/mm/radix: Dummy radix_enabled()arch/ arch/ arch/ | +9 | 1 reply | |
| 28/68 | powerpc/mm: Add radix callbacks to pte accessorsarch/ arch/ | +84 | 1 reply | |
| 29/68 | powerpc/mm: Move hugetlb and THP related pmd accessors to pgtable.harch/ arch/ arch/ +1 more | +108 | 3 replies | |
| 30/68 | powerpc/mm/radix: Add radix callback for pmd accessorsarch/ arch/ arch/ | +36 | 1 reply | |
| 31/68 | powerpc/mm: Abstraction for early init routinesarch/ arch/ arch/ | +30 | 0 replies | |
| 32/68 | powerpc/mm/radix: Add radix callback for early init routinesarch/ arch/ arch/ +2 more | +367 | 1 reply | |
| 33/68 | powerpc/mm: Abstraction for vmemmap and map_kernel_pagearch/ arch/ arch/ +3 more | +41 | 2 replies | |
| 34/68 | powerpc/mm/radix: Add radix callback for vmemmap and map_kernel pagearch/ arch/ arch/ | +38 | 1 reply | |
| 35/68 | powerpc/mm: Abstraction for switch_mmu_contextarch/ arch/ arch/ +2 more | +19 | 3 replies | |
| 36/68 | powerpc/mm/radix: Add mmu context handling callback for radixarch/ arch/ | +38 | 1 reply | |
| 37/68 | powerpc/mm: Rename mmu_context_hash64.c to mmu_context_book3s64.carch/ arch/ | +3 | 0 replies | |
| 38/68 | powerpc/mm: Hash linux abstraction for tlbflush routinesarch/ arch/ arch/ +1 more | +73 | 0 replies | |
| 39/68 | powerpc/mm/radix: Add tlbflush routinesarch/ arch/ arch/ +4 more | +308 | 1 reply | |
| 40/68 | powerpc/mm/radix: Add MMU_FTR_RADIXarch/ arch/ | +6 | 1 reply | |
| 41/68 | powerpc/mm/radix: Use STD_MMU_64 to properly isolate hash related codearch/ arch/ arch/ +3 more | +52 | 1 reply | |
| 42/68 | powerpc/mm/radix: Isolate hash table function from pseries guest codearch/ arch/ | +13 | 0 replies | |
| 43/68 | powerpc/mm/radix: Add checks in slice code to catch radix usagearch/ | +16 | 0 replies | |
| 44/68 | powerpc/mm/radix: Limit paca allocation in radixarch/ | +19 | 1 reply | |
| 45/68 | powerpc/mm/radix: Pick the address layout for radix configarch/ | +109 | 0 replies | |
| 46/68 | powerpc/mm/radix: Update secondary PTCRarch/ | +7 | 0 replies | |
| 47/68 | powerpc/mm: Make a copy of pgalloc.h for 32 and 64 book3sarch/ arch/ | +375 | 0 replies | |
| 48/68 | powerpc/mm: Copy pgalloc (part 2)arch/ arch/ arch/ +4 more | +59 | 0 replies | |
| 49/68 | powerpc/mm: Revert changes made to nohash pgalloc-64.harch/ arch/ | +10 | 0 replies | |
| 50/68 | powerpc/mm: Simplify the code dropping 4 level table #ifdefarch/ | +18 | 0 replies | |
| 51/68 | powerpc/mm: Rename function to indicate we are allocating fragmentsarch/ arch/ arch/ | +16 | 0 replies | |
| 52/68 | powerpc/mm: make 4k and 64k use pte_t for pgtable_tarch/ arch/ arch/ +1 more | +52 | 2 replies | |
| 53/68 | powerpc/mm: Add radix pgalloc detailsarch/ arch/ arch/ +2 more | +55 | 1 reply | |
| 54/68 | powerpc/mm: Update pte filter for radixarch/ | +3 | 1 reply | |
| 55/68 | powerpc/mm: VMALLOC abstractionarch/ arch/ arch/ +5 more | +69 | 5 replies | |
| 56/68 | powerpc/radix: update mmu cachearch/ | +2 | 1 reply | |
| 57/68 | powerpc/mm: pte_frag abstractionarch/ arch/ arch/ +3 more | +22 | 0 replies | |
| 58/68 | powerpc/mm: Fix vma_mmu_pagesize for radixarch/ | +4 | 0 replies | |
| 59/68 | powerpc/mm: Add radix support for hugetlbarch/ arch/ arch/ +3 more | +132 | 0 replies | |
| 60/68 | powerpc/mm/radix: Make sure swapper pgdir is properly alignedarch/ | +8 | 0 replies | |
| 61/68 | powerpc/mm/radix: Add hugetlb support 4K page sizearch/ arch/ | +47 | 0 replies | |
| 62/68 | powerpc/mm: Drop PTE_ATOMIC_UPDATES from pmd_hugepage_updatearch/ | +1 | 0 replies | |
| 63/68 | powerpc/mm: THP is only available on hash64 as of nowarch/ arch/ arch/ | +371 | 0 replies | |
| 64/68 | powerpc/mm/thp: Abstraction for THP functionsarch/ arch/ arch/ +3 more | +231 | 0 replies | |
| 65/68 | powerpc/mm/radix: Add radix THP callbacksarch/ arch/ arch/ +2 more | +158 | 0 replies | |
| 66/68 | powerpc/mm/radix: Add THP support for 4k linux page sizearch/ arch/ arch/ +1 more | +82 | 2 replies | |
| 67/68 | powerpc/mm/radix: Cputable update for radixarch/ arch/ arch/ +1 more | +20 | 1 reply | |
| 68/68 | powerpc/mm/radix: Use firmware feature to disable radixarch/ | +1 | 3 replies |
Reviews trailers per patch
7 of 68 patches have a Reviewed-by or Acked-by.
| Patch | Ian Munsie | Andrew Donnellan | balbir Singh |
|---|---|---|---|
| 1/68 | A-b | R-b | |
| 2/68 | |||
| 3/68 | |||
| 4/68 | |||
| 5/68 | A-b | ||
| 6/68 | |||
| 7/68 | |||
| 8/68 | A-b | ||
| 9/68 | |||
| 10/68 | |||
| 11/68 | |||
| 12/68 | |||
| 13/68 | |||
| 14/68 | |||
| 15/68 | |||
| 16/68 | |||
| 17/68 | |||
| 18/68 | |||
| 19/68 | |||
| 20/68 | |||
| 21/68 | |||
| 22/68 | |||
| 23/68 | |||
| 24/68 | |||
| 25/68 | A-b | ||
| 26/68 | |||
| 27/68 | |||
| 28/68 | |||
| 29/68 | |||
| 30/68 | |||
| 31/68 | |||
| 32/68 | |||
| 33/68 | |||
| 34/68 | |||
| 35/68 | |||
| 36/68 | |||
| 37/68 | |||
| 38/68 | |||
| 39/68 | |||
| 40/68 | A-b | ||
| 41/68 | |||
| 42/68 | |||
| 43/68 | |||
| 44/68 | |||
| 45/68 | |||
| 46/68 | |||
| 47/68 | |||
| 48/68 | |||
| 49/68 | |||
| 50/68 | |||
| 51/68 | |||
| 52/68 | |||
| 53/68 | |||
| 54/68 | A-b | ||
| 55/68 | |||
| 56/68 | A-b | ||
| 57/68 | |||
| 58/68 | |||
| 59/68 | |||
| 60/68 | |||
| 61/68 | |||
| 62/68 | |||
| 63/68 | |||
| 64/68 | |||
| 65/68 | |||
| 66/68 | |||
| 67/68 | |||
| 68/68 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH V2 00/68] PowerISA 3.0 Radix page table support
This patch series implements Radix page table support for ppc64 book3s as defined by PowerISA 3.0.
Changes from V1:
* Make sure each patch build without errors on different configs
* Address review feedback
Aneesh Kumar K.V (68):
powerpc/cxl: Use REGION_ID instead of opencoding powerpc/mm/nohash: Return correctly from flush_tlb_page powerpc/mm/nohash: Update non SMP version of flush_tlb_page to handle
hugetlb address
powerpc/mm: Use big endian page table for book3s 64 powerpc/mm: use _PAGE_READ to indicate Read access powerpc/mm/subpage: Clear RWX bit to indicate no access powerpc/mm: Use pte_user instead of opencoding
powerpc/mm: Replace _PAGE_USER with _PAGE_PRIVILEGED powerpc/mm: Remove RPN_SHIFT and RPN_SIZE
powerpc/mm: Update _PAGE_KERNEL_RO
powerpc/mm: Use helper for finding pte bits mapping I/O area powerpc/mm: Drop WIMG in favour of new constants powerpc/mm: Use generic version of pmdp_clear_flush_young powerpc/mm: Use generic version of ptep_clear_flush_young powerpc/mm: Move common data structure between radix and hash to
book3s 64 generic headers
powerpc/mm/power9: Add partition table format powerpc/mm/hash: Add support for POWER9 hash
powerpc/mm: Move hash and no hash code to separate files powerpc/mm/book3s: Rename hash specific PTE bits to carry H_ prefix powerpc/mm: Handle _PTE_NONE_MASK
powerpc/mm: Move common pte bits and accessors to book3s/64/pgtable.h powerpc/mm: Move pte accessors that operate on common pte bits to
pgtable.h
powerpc/mm: Make page table size a variable
powerpc/mm: Move page table index and and vaddr to pgtable.h powerpc/mm: Move pte related function together powerpc/mm/radix: Add radix pte defines
powerpc/mm/radix: Dummy radix_enabled()
powerpc/mm: Add radix callbacks to pte accessors powerpc/mm: Move hugetlb and THP related pmd accessors to pgtable.h powerpc/mm/radix: Add radix callback for pmd accessors powerpc/mm: Abstraction for early init routines powerpc/mm/radix: Add radix callback for early init routines powerpc/mm: Abstraction for vmemmap and map_kernel_page powerpc/mm/radix: Add radix callback for vmemmap and map_kernel page powerpc/mm: Abstraction for switch_mmu_context powerpc/mm/radix: Add mmu context handling callback for radix powerpc/mm: Rename mmu_context_hash64.c to mmu_context_book3s64.c powerpc/mm: Hash linux abstraction for tlbflush routines powerpc/mm/radix: Add tlbflush routines
powerpc/mm/radix: Add MMU_FTR_RADIX
powerpc/mm/radix: Use STD_MMU_64 to properly isolate hash related code powerpc/mm/radix: Isolate hash table function from pseries guest code powerpc/mm/radix: Add checks in slice code to catch radix usage powerpc/mm/radix: Limit paca allocation in radix powerpc/mm/radix: Pick the address layout for radix config powerpc/mm/radix: Update secondary PTCR
powerpc/mm: Make a copy of pgalloc.h for 32 and 64 book3s powerpc/mm: Copy pgalloc (part 2)
powerpc/mm: Revert changes made to nohash pgalloc-64.h powerpc/mm: Simplify the code dropping 4 level table #ifdef powerpc/mm: Rename function to indicate we are allocating fragments powerpc/mm: make 4k and 64k use pte_t for pgtable_t powerpc/mm: Add radix pgalloc details
powerpc/mm: Update pte filter for radix
powerpc/mm: VMALLOC abstraction
powerpc/radix: update mmu cache
powerpc/mm: pte_frag abstraction
powerpc/mm: Fix vma_mmu_pagesize for radix
powerpc/mm: Add radix support for hugetlb powerpc/mm/radix: Make sure swapper pgdir is properly aligned powerpc/mm/radix: Add hugetlb support 4K page size powerpc/mm: Drop PTE_ATOMIC_UPDATES from pmd_hugepage_update powerpc/mm: THP is only available on hash64 as of now powerpc/mm/thp: Abstraction for THP functions powerpc/mm/radix: Add radix THP callbacks powerpc/mm/radix: Add THP support for 4k linux page size powerpc/mm/radix: Cputable update for radix powerpc/mm/radix: Use firmware feature to disable radix
arch/powerpc/include/asm/book3s/32/mmu-hash.h | 6 +-
arch/powerpc/include/asm/book3s/32/pgalloc.h | 109 +++
arch/powerpc/include/asm/book3s/64/hash-4k.h | 136 ++--
arch/powerpc/include/asm/book3s/64/hash-64k.h | 213 ++----
arch/powerpc/include/asm/book3s/64/hash.h | 477 ++----------
arch/powerpc/include/asm/book3s/64/hugetlb-radix.h | 14 +
arch/powerpc/include/asm/book3s/64/mmu-hash.h | 79 +-
arch/powerpc/include/asm/book3s/64/mmu.h | 137 ++++
arch/powerpc/include/asm/book3s/64/pgalloc.h | 207 ++++++
arch/powerpc/include/asm/book3s/64/pgtable-4k.h | 53 ++
arch/powerpc/include/asm/book3s/64/pgtable-64k.h | 64 ++
arch/powerpc/include/asm/book3s/64/pgtable.h | 812 +++++++++++++++++++--
arch/powerpc/include/asm/book3s/64/radix-4k.h | 12 +
arch/powerpc/include/asm/book3s/64/radix-64k.h | 12 +
arch/powerpc/include/asm/book3s/64/radix.h | 188 +++++
arch/powerpc/include/asm/book3s/64/tlbflush-hash.h | 41 +-
.../powerpc/include/asm/book3s/64/tlbflush-radix.h | 33 +
arch/powerpc/include/asm/book3s/64/tlbflush.h | 76 ++
arch/powerpc/include/asm/book3s/pgalloc.h | 19 +
arch/powerpc/include/asm/hugetlb.h | 23 +-
arch/powerpc/include/asm/kvm_book3s_64.h | 42 +-
arch/powerpc/include/asm/machdep.h | 1 +
arch/powerpc/include/asm/mmu.h | 32 +-
arch/powerpc/include/asm/mmu_context.h | 29 +-
.../asm/{pgalloc-32.h => nohash/32/pgalloc.h} | 0
.../asm/{pgalloc-64.h => nohash/64/pgalloc.h} | 92 +--
arch/powerpc/include/asm/nohash/64/pgtable.h | 10 +-
arch/powerpc/include/asm/nohash/pgalloc.h | 23 +
arch/powerpc/include/asm/page.h | 14 +-
arch/powerpc/include/asm/page_64.h | 2 +-
arch/powerpc/include/asm/pgalloc.h | 19 +-
arch/powerpc/include/asm/pgtable-be-types.h | 104 +++
arch/powerpc/include/asm/pte-common.h | 9 +
arch/powerpc/include/asm/reg.h | 5 +
arch/powerpc/include/asm/tlbflush.h | 3 +-
arch/powerpc/kernel/asm-offsets.c | 4 +
arch/powerpc/kernel/btext.c | 2 +-
arch/powerpc/kernel/cputable.c | 2 +-
arch/powerpc/kernel/entry_64.S | 7 +-
arch/powerpc/kernel/exceptions-64s.S | 28 +-
arch/powerpc/kernel/head_64.S | 13 +-
arch/powerpc/kernel/isa-bridge.c | 4 +-
arch/powerpc/kernel/machine_kexec_64.c | 6 +-
arch/powerpc/kernel/mce_power.c | 13 +-
arch/powerpc/kernel/pci_64.c | 5 +-
arch/powerpc/kernel/process.c | 15 +-
arch/powerpc/kernel/prom.c | 1 +
arch/powerpc/kernel/swsusp.c | 2 +-
arch/powerpc/kvm/book3s_64_mmu_hv.c | 11 +-
arch/powerpc/kvm/book3s_hv.c | 6 +
arch/powerpc/kvm/book3s_hv_rm_mmu.c | 12 +-
arch/powerpc/kvm/book3s_pr.c | 6 +-
arch/powerpc/mm/Makefile | 10 +-
arch/powerpc/mm/hash64_4k.c | 32 +-
arch/powerpc/mm/hash64_64k.c | 77 +-
arch/powerpc/mm/hash_native_64.c | 11 +-
arch/powerpc/mm/hash_utils_64.c | 161 +++-
arch/powerpc/mm/hugepage-hash64.c | 25 +-
arch/powerpc/mm/hugetlbpage-book3e.c | 8 +
arch/powerpc/mm/hugetlbpage-hash64.c | 32 +-
arch/powerpc/mm/hugetlbpage-radix.c | 87 +++
arch/powerpc/mm/hugetlbpage.c | 20 +-
arch/powerpc/mm/init_64.c | 73 +-
arch/powerpc/mm/mem.c | 2 +
arch/powerpc/mm/mmap.c | 109 +++
...mmu_context_hash64.c => mmu_context_book3s64.c} | 42 +-
arch/powerpc/mm/mmu_context_nohash.c | 3 +-
arch/powerpc/mm/mmu_decl.h | 5 -
arch/powerpc/mm/pgtable-book3e.c | 129 ++++
arch/powerpc/mm/pgtable-book3s64.c | 123 ++++
arch/powerpc/mm/pgtable-hash64.c | 347 +++++++++
arch/powerpc/mm/pgtable-radix.c | 527 +++++++++++++
arch/powerpc/mm/pgtable.c | 24 +-
arch/powerpc/mm/pgtable_64.c | 555 ++------------
arch/powerpc/mm/slb_low.S | 4 +-
arch/powerpc/mm/slice.c | 20 +-
arch/powerpc/mm/tlb-radix.c | 252 +++++++
arch/powerpc/mm/tlb_hash64.c | 6 +-
arch/powerpc/mm/tlb_nohash.c | 7 +-
arch/powerpc/perf/callchain.c | 2 +-
arch/powerpc/platforms/Kconfig.cputype | 6 +-
arch/powerpc/platforms/cell/spu_base.c | 2 +-
arch/powerpc/platforms/cell/spufs/fault.c | 4 +-
arch/powerpc/platforms/powernv/setup.c | 5 +-
arch/powerpc/platforms/ps3/htab.c | 2 +-
arch/powerpc/platforms/ps3/spu.c | 4 +-
arch/powerpc/platforms/pseries/lpar.c | 20 +-
arch/powerpc/platforms/pseries/lparcfg.c | 3 +-
arch/powerpc/xmon/xmon.c | 2 +-
drivers/cpufreq/pmac32-cpufreq.c | 2 +-
drivers/macintosh/via-pmu.c | 4 +-
drivers/misc/cxl/fault.c | 10 +-
drivers/pcmcia/electra_cf.c | 2 +-
93 files changed, 4280 insertions(+), 1712 deletions(-)
create mode 100644 arch/powerpc/include/asm/book3s/32/pgalloc.h
create mode 100644 arch/powerpc/include/asm/book3s/64/hugetlb-radix.h
create mode 100644 arch/powerpc/include/asm/book3s/64/mmu.h
create mode 100644 arch/powerpc/include/asm/book3s/64/pgalloc.h
create mode 100644 arch/powerpc/include/asm/book3s/64/pgtable-4k.h
create mode 100644 arch/powerpc/include/asm/book3s/64/pgtable-64k.h
create mode 100644 arch/powerpc/include/asm/book3s/64/radix-4k.h
create mode 100644 arch/powerpc/include/asm/book3s/64/radix-64k.h
create mode 100644 arch/powerpc/include/asm/book3s/64/radix.h
create mode 100644 arch/powerpc/include/asm/book3s/64/tlbflush-radix.h
create mode 100644 arch/powerpc/include/asm/book3s/64/tlbflush.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} (68%)
create mode 100644 arch/powerpc/include/asm/nohash/pgalloc.h
create mode 100644 arch/powerpc/include/asm/pgtable-be-types.h
create mode 100644 arch/powerpc/mm/hugetlbpage-radix.c
rename arch/powerpc/mm/{mmu_context_hash64.c => mmu_context_book3s64.c} (78%)
create mode 100644 arch/powerpc/mm/pgtable-book3e.c
create mode 100644 arch/powerpc/mm/pgtable-book3s64.c
create mode 100644 arch/powerpc/mm/pgtable-hash64.c
create mode 100644 arch/powerpc/mm/pgtable-radix.c
create mode 100644 arch/powerpc/mm/tlb-radix.cSignature · 1 line
2.5.0