ppc/pnv: Add a big-core mode that joins two regular cores
authorNicholas Piggin <npiggin@gmail.com>
Thu, 16 May 2024 05:25:12 +0000 (15:25 +1000)
committerNicholas Piggin <npiggin@gmail.com>
Thu, 25 Jul 2024 23:21:06 +0000 (09:21 +1000)
commitc26504afd5f5cca1addfab5222621bc32a28522f
tree57cb0cbf64884ff34e5880b7592c352e2b05517e
parent59c921f2297d6e293fde593432acf90d819e4d51
ppc/pnv: Add a big-core mode that joins two regular cores

POWER9 and POWER10 machines come in two variants, big-core and
small-core. Big-core machines are SMT8 from software's point of view,
but the low level platform topology ("xscom registers and pervasive
addressing"), these look more like a pair of small cores ganged
together.

Presently the way this is modelled is to create one SMT8 PnvCore and add
special cases to xscom and pervasive for big-core mode that tries to
split this into two small cores, but this is becoming too complicated to
manage.

A better approach is to create 2 core structures and ganging them
together to look like an SMT8 core in TCG. Then the xscom and pervasive
models mostly do not need to differentiate big and small core modes.

This change adds initial mode bits and QEMU topology handling to
split SMT8 cores into 2xSMT4 cores.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
hw/ppc/pnv.c
hw/ppc/pnv_core.c
include/hw/ppc/pnv.h
include/hw/ppc/pnv_chip.h
include/hw/ppc/pnv_core.h