Skip to content

SMP support for MPC8544DS

Alexander Graf qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest23 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/23PPC: Add secondary CPU spinning codepc-bios/ppc_spin.c pc-bios/ppc_spin.elf+97 -03 replies
2/23PPC: Move openpic to target specific code compilationMakefile.objs Makefile.target+2 -10 replies
3/23PPC: Add CPU definitions for up to 32 guest CPUspc-bios/mpc8544ds.dtb pc-bios/mpc8544ds.dts+437 -02 replies
4/23PPC: Add CPU local MMIO regions to MPIChw/openpic.c+72 -380 replies
5/23PPC: Extend MPIC MMIO rangehw/openpic.c+1 -10 replies
6/23PPC: Fix IPI support in MPIChw/openpic.c+15 -23 replies
7/23PPC: Remove cINT code from MPIChw/openpic.c+1 -82 replies
8/23PPC: Bump MPIC up to 32 supported CPUshw/openpic.c+3 -72 replies
9/23PPC: E500: create multiple envshw/ppce500_mpc8544ds.c+29 -150 replies
10/23PPC: E500: Generate IRQ lines for many CPUshw/ppce500_mpc8544ds.c+12 -50 replies
11/23PPC: E500: Use spin code for secondary CPUshw/ppce500_mpc8544ds.c+13 -40 replies
12/23device tree: add nop_nodedevice_tree.c device_tree.h+12 -00 replies
13/23PPC: bamboo: Move host fdt copy to targethw/ppc440_bamboo.c target-ppc/kvm_ppc.c target-ppc/kvm_ppc.h+35 -330 replies
14/23PPC: KVM: Add generic function to read host clockfreqtarget-ppc/kvm.c target-ppc/kvm_ppc.h+66 -03 replies
15/23PPC: E500: Use generic kvm function for freqhw/ppce500_mpc8544ds.c+9 -350 replies
16/23PPC: E500: Remove mpc8544_copy_soc_cellhw/ppce500_mpc8544ds.c+0 -240 replies
17/23PPC: bamboo: Use kvm api for freq and clock frequencieshw/ppc440_bamboo.c+12 -330 replies
18/23PPC: KVM: Remove kvmppc_read_host_propertytarget-ppc/kvm_ppc.c target-ppc/kvm_ppc.h+0 -460 replies
19/23PPC: KVM: Add stubs for kvm helper functionstarget-ppc/kvm_ppc.h+26 -00 replies
20/23PPC: E500: Update freqs for all CPUshw/ppce500_mpc8544ds.c+7 -30 replies
21/23PPC: E500: Remove unneeded CPU nodeshw/ppce500_mpc8544ds.c+6 -00 replies
22/23PPC: E500: Update cpu-release-addr property in cpu nodeshw/ppce500_mpc8544ds.c+4 -00 replies
23/23PPC: E500: Bump CPU count to 32hw/ppce500_mpc8544ds.c+1 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 00/23] SMP support for MPC8544DS

Due to popular demand, I got involved in the dirty arts of SMP programming :). This patch set adds support for the MPC8544DS board (e500v2) to run with up to 32 virtual CPUs.

This works fine with emulation and Linux guests. It also works with KVM when disabling the DEC trick in ppc_spin.c - something seems to be broken in KVM there.

For non-Linux guests, TLB invalidation broadcasting is still missing, but for now this is enough to get Linux up and running.

I've used the chance while touching the code to also clean up ugly code that just diverged over time between the 3 KVM capable PPC targets (frequency device-tree entries). They're intertwined with this series, but I hope not too hard to understand, so they don't hurt being there.

Alexander Graf (23):
PPC: Add secondary CPU spinning code
PPC: Move openpic to target specific code compilation
PPC: Add CPU definitions for up to 32 guest CPUs
PPC: Add CPU local MMIO regions to MPIC
PPC: Extend MPIC MMIO range
PPC: Fix IPI support in MPIC
PPC: Remove cINT code from MPIC
PPC: Bump MPIC up to 32 supported CPUs
PPC: E500: create multiple envs
PPC: E500: Generate IRQ lines for many CPUs
PPC: E500: Use spin code for secondary CPUs device tree: add nop_node
PPC: bamboo: Move host fdt copy to target
PPC: KVM: Add generic function to read host clockfreq
PPC: E500: Use generic kvm function for freq
PPC: E500: Remove mpc8544_copy_soc_cell
PPC: bamboo: Use kvm api for freq and clock frequencies
PPC: KVM: Remove kvmppc_read_host_property
PPC: KVM: Add stubs for kvm helper functions
PPC: E500: Update freqs for all CPUs
PPC: E500: Remove unneeded CPU nodes
PPC: E500: Update cpu-release-addr property in cpu nodes
PPC: E500: Bump CPU count to 32

 Makefile.objs          |    1 -
 Makefile.target        |    2 +
 device_tree.c          |   11 ++
 device_tree.h          |    1 +
 hw/openpic.c           |  148 ++++++++++------
 hw/ppc440_bamboo.c     |   16 ++-
 hw/ppce500_mpc8544ds.c |  159 +++++++++---------
 pc-bios/mpc8544ds.dtb  |  Bin 2277 -> 9699 bytes
 pc-bios/mpc8544ds.dts  |  437 ++++++++++++++++++++++++++++++++++++++++++++++++
 pc-bios/ppc_spin.c     |   97 +++++++++++
 pc-bios/ppc_spin.elf   |  Bin 0 -> 66553 bytes
 target-ppc/kvm.c       |   65 +++++++
 target-ppc/kvm_ppc.c   |   65 -------
 target-ppc/kvm_ppc.h   |   39 +++--
 14 files changed, 823 insertions(+), 218 deletions(-)
 create mode 100644 pc-bios/ppc_spin.c
 create mode 100755 pc-bios/ppc_spin.elf