Skip to content

powerpc: base 64-bit Book3E processor support

Benjamin Herrenschmidt linuxppc-dev 1 version In review

Get series with b4
b4 am 1248328938.3367.46.camel@pasglop

Versions newest first

  1. v1 Latest20 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/20powerpc/mm: Fix misplaced #endif in pgtable-ppc64-64k.harch/powerpc/include/asm/pgtable-ppc64-64k.h+1 -30 replies
2/20powerpc/of: Remove useless register save/restore when calling OF backarch/powerpc/kernel/entry_64.S+6 -320 replies
3/20powerpc/mm: Add HW threads support to no_hash TLB managementarch/powerpc/include/asm/cputhreads.h arch/powerpc/mm/mmu_context_nohash.c arch/powerpc/mm/tlb_nohash.c+86 -330 replies
4/20powerpc/mm: Add opcode definitions for tlbivax and tlbsrx.arch/powerpc/include/asm/ppc-opcode.h+6 -03 replies
5/20powerpc/mm: Add more bit definitions for Book3E MMU registersarch/powerpc/include/asm/mmu-book3e.h+119 -490 replies
6/20powerpc/mm: Add support for early ioremap on non-hash 64-bit processorsarch/powerpc/mm/pgtable_64.c+54 -50 replies
7/20powerpc: Modify some ppc_asm.h macros to accomodate 64-bits Book3Earch/powerpc/include/asm/ppc_asm.h+10 -41 reply
8/20powerpc/mm: Make low level TLB flush ops on BookE take additional argumentsarch/powerpc/include/asm/tlbflush.h arch/powerpc/mm/mmu_decl.h arch/powerpc/mm/tlb_nohash.c +1 more+57 -180 replies
9/20powerpc/mm: Call mmu_context_init() from ppc64arch/powerpc/include/asm/mmu_context.h arch/powerpc/kernel/setup_64.c arch/powerpc/mm/mmu_context_hash64.c+11 -13 replies
10/20powerpc: Clean ifdef usage in copy_thread()arch/powerpc/kernel/process.c+2 -01 reply
11/20powerpc: Move definitions of secondary CPU spinloop to header filearch/powerpc/include/asm/smp.h arch/powerpc/kernel/setup_64.c+5 -32 replies
12/20powerpc/mm: Add hook to flush pgtables when a PTE page is freedarch/powerpc/include/asm/pgalloc.h+12 -11 reply
13/20powerpc: Add SPR definitions for new 64-bit BookEarch/powerpc/include/asm/reg.h arch/powerpc/include/asm/reg_booke.h+35 -102 replies
14/20powerpc: Add memory management headers for new 64-bit BookEarch/powerpc/include/asm/mmu-book3e.h arch/powerpc/include/asm/mmu.h arch/powerpc/include/asm/page.h +5 more+186 -180 replies
15/20powerpc: Add definitions used by exception handling on 64-bit Book3Earch/powerpc/include/asm/exception-64e.h arch/powerpc/include/asm/reg.h+219 -01 reply
16/20powerpc: Add PACA fields specific to 64-bit Book3E processorsarch/powerpc/include/asm/paca.h arch/powerpc/kernel/asm-offsets.c arch/powerpc/kernel/paca.c+37 -30 replies
17/20powerpc/mm: Move around mmu_gathers definition on 64-bitarch/powerpc/mm/init_32.c arch/powerpc/mm/pgtable.c arch/powerpc/mm/tlb_hash64.c+2 -70 replies
18/20powerpc: Add TLB management code for 64-bit Book3Earch/powerpc/include/asm/mmu_context.h arch/powerpc/kernel/setup_64.c arch/powerpc/mm/mmu_decl.h +3 more+1020 -90 replies
19/20powerpc/mm: Add support for SPARSEMEM_VMEMMAP on 64-bit Book3Earch/powerpc/include/asm/mmu-book3e.h arch/powerpc/include/asm/pgtable-ppc64.h arch/powerpc/mm/init_64.c +3 more+68 -110 replies
20/20powerpc: Remaining 64-bit Book3E supportarch/powerpc/Kconfig arch/powerpc/include/asm/hw_irq.h arch/powerpc/include/asm/smp.h +9 more+993 -240 replies

Reviews trailers per patch

3 of 20 patches have a Reviewed-by or Acked-by.

PatchKumar Gala
1/20
2/20
3/20
4/20
5/20
6/20
7/20A-b
8/20
9/20A-b
10/20A-b
11/20
12/20
13/20
14/20
15/20
16/20
17/20
18/20
19/20
20/20

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/20] powerpc: base 64-bit Book3E processor support

Here is a series of patches that implement some basic support for 64-bit Book3E processors that comply to architecture 2.06.

There is no specific processor announced yet. The patches make some shortcut which means they currently rely on an implementation that supports MMU v2 with support for the "HES" feature (HW entry select) and with support for the "TLB reservation" feature. They also assume a single unified TLB array. I shouldn't be very hard to implement support for other variants of the architecture on top of this though.

The current set of patch has no proper support yet for hugetlb, nor for "special" interrupt levels (debug, critical and machine check). Some minimal support for debug/critical levels is provided specifically for the "Debug" interrupt (single step etc...) only when it occurs from within user space code.

The intend is to merge these in 2.6.32. They rely on pretty much all the other patches I've been posting lately including the generic changes to add the virtual address argument to pte_free_tlb.