Skip to content

Reorganize setup code and merge 32 and 64-bit setup_arch()

Benjamin Herrenschmidt linuxppc-dev 2 versions – Applied

Status from this message: Applied to powerpc next, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest36 of 41 patches 35 repliesApplied
  2. v138 patches 12 repliesSuperseded

36 of 41 patches are in this archive. The cover letter announces 41.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/41dt: Add of_device_compatible_match()drivers/of/base.c include/linux/of.h+24 -00 replies
2/41drm: Fix broken use of _PAGE_NO_CACHE on powerpcdrivers/gpu/drm/drm_memory.c drivers/gpu/drm/drm_scatter.c drivers/gpu/drm/drm_vm.c+4 -42 replies
3/41powerpc/prom_init: PTRRELOC is not neededarch/powerpc/kernel/prom_init.c+1 -10 replies
4/41powerpc: Make PTRRELOC() 32-bit onlyarch/powerpc/include/asm/setup.h+4 -00 replies
5/41powerpc: Factor do_feature_fixup callsarch/powerpc/include/asm/feature-fixups.h arch/powerpc/include/asm/synch.h arch/powerpc/kernel/setup_32.c +2 more+36 -301 reply
6/41powerpc: Move 64-bit feature fixup earlierarch/powerpc/kernel/setup_64.c+3 -21 reply
7/41powerpc: Move 64-bit memory reserves to setup_arch()arch/powerpc/kernel/setup_64.c+11 -111 reply
8/41powerpc: Move epapr_paravirt_early_init() to early_init_devtree()arch/powerpc/kernel/prom.c arch/powerpc/kernel/setup_32.c arch/powerpc/kernel/setup_64.c+2 -61 reply
9/41powerpc: Update obsolete comments in setup_32.c about entry conditionsarch/powerpc/kernel/setup_32.c+5 -31 reply
10/41powerpc: Add comment explaining the purpose of setup_kdump_trampoline()arch/powerpc/kernel/setup_64.c+3 -21 reply
11/41powerpc/dart: Use a cachable DARTarch/powerpc/include/asm/iommu.h arch/powerpc/mm/hash_utils_64.c arch/powerpc/platforms/maple/setup.c +2 more+84 -1441 reply
12/41powerpc: Move FW feature probing out of pseries probe()arch/powerpc/include/asm/firmware.h arch/powerpc/kernel/prom.c arch/powerpc/platforms/pseries/firmware.c +2 more+52 -481 reply
13/41powerpc: Put exception configuration in a common placearch/powerpc/include/asm/hvcall.h arch/powerpc/include/asm/opal.h arch/powerpc/include/asm/setup.h +5 more+107 -1031 reply
14/41powerpc/pmac: Remove early allocation of the SMU command bufferarch/powerpc/include/asm/smu.h arch/powerpc/platforms/powermac/setup.c drivers/macintosh/smu.c+8 -241 reply
15/41powerpc/64: Move MMU backend selection out of platform codearch/powerpc/include/asm/ps3.h arch/powerpc/kernel/prom.c arch/powerpc/mm/hash_utils_64.c +8 more+33 -261 reply
16/41powerpc/pasemi: Remove IOBMAP allocation from platform probe()arch/powerpc/platforms/pasemi/iommu.c arch/powerpc/platforms/pasemi/pasemi.h arch/powerpc/platforms/pasemi/setup.c+5 -131 reply
17/41powerpc/mm/hash: Don't use machine_is() early during bootarch/powerpc/mm/hash_utils_64.c+16 -91 reply
18/41powerpc/rtas: Don't test for machine type in rtas_initialize()arch/powerpc/kernel/rtas.c+1 -11 reply
19/41powerpc: Don't test for machine type in smp_setup_cpu_maps()arch/powerpc/kernel/setup-common.c+1 -11 reply
20/41powerpc/mm/hash64: Don't test for machine type to detect HEA special casearch/powerpc/mm/hash_utils_64.c+3 -21 reply
21/41powerpc/pmac: Remove spurrious machine type testarch/powerpc/platforms/powermac/setup.c+0 -31 reply
22/41powerpc/mm: Move hash table ops to a separate structurearch/powerpc/include/asm/book3s/64/mmu-hash.h arch/powerpc/include/asm/book3s/64/mmu.h arch/powerpc/include/asm/machdep.h +13 more+156 -1321 reply
23/41powerpc: Ensure that ppc_md is empty before probing for machine typearch/powerpc/kernel/setup-common.c+11 -01 reply
24/41powerpc: Move 64-bit probe_machine() to later in the boot processarch/powerpc/kernel/setup_64.c arch/powerpc/platforms/cell/setup.c arch/powerpc/platforms/maple/setup.c +5 more+21 -261 reply
25/41powerpc/cell: Don't use flat device-tree after bootarch/powerpc/platforms/cell/spu_manage.c+1 -21 reply
26/41powerpc/85xx/ge_imp3a: Don't use the flat device-tree after bootarch/powerpc/platforms/85xx/ge_imp3a.c+1 -21 reply
27/41powerpc/85xx/mpc85xx_ds: Don't use the flat device-tree after bootarch/powerpc/platforms/85xx/mpc85xx_ds.c+1 -31 reply
28/41powerpc/85xx/mpc85xx_rdb: Don't use the flat device-tree after bootarch/powerpc/platforms/85xx/mpc85xx_rdb.c+1 -21 reply
29/41powerpc: Move 32-bit probe() machine to later in the boot processarch/powerpc/kernel/setup_32.c arch/powerpc/platforms/40x/ep405.c arch/powerpc/platforms/40x/ppc40x_simple.c +80 more+120 -2891 reply
30/41powerpc: Get rid of ppc_md.init_early()arch/powerpc/include/asm/machdep.h arch/powerpc/kernel/setup_32.c arch/powerpc/kernel/setup_64.c +12 more+43 -601 reply
31/41powerpc/64: Move the boot time info banner to a separate functionarch/powerpc/kernel/setup_64.c+35 -311 reply
32/41powerpc/64: Move setting of {i, d}cache_bsize to initialize_cache_info()arch/powerpc/kernel/setup_64.c+4 -91 reply
33/41powerpc/64: Move the content of setup_system() to setup_arch()arch/powerpc/kernel/head_64.S arch/powerpc/kernel/setup_64.c+64 -781 reply
34/41powerpc/32: Move cache info inits to a separate functionarch/powerpc/kernel/setup_32.c+16 -111 reply
35/41powerpc: Re-order the call to smp_setup_cpu_maps()arch/powerpc/kernel/setup_32.c arch/powerpc/kernel/setup_64.c+4 -31 reply
36/41powerpc: Re-order setup_panic()arch/powerpc/kernel/setup-common.c arch/powerpc/kernel/setup_32.c arch/powerpc/kernel/setup_64.c+6 -62 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 00/41] Reorganize setup code and merge 32 and 64-bit setup_arch()

This series reorganizes the setup code, moving probe_machine() later than when it's currently done, and sync'ing 32-bit and 64-bit enough to merge their implementations of setup_arch(). We get rid of ppc64 setup_system() which is subsumed by the new setup_arch().

Note: The first 2 patches could go separately. The first one is a pre requisite for the ppc32 move of probe_machine(). The second one a general bug fix for recent kernels which I included here so my test kernels could build but the rest of the series doesn't depend on it.

Finally I added a few more random build fixes at the end.