RFC ppc/pnv: Better big-core model, lpar-per-core, PC unit
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest10 patches 33 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/10 | ppc/pnv: Add pointer from PnvCPUState to PnvCorehw/ include/ | +4 | 2 replies | |
| 2/10 | ppc/pnv: Move timebase state into PnvCorehw/ include/ target/ +1 more | +49 | 3 replies | |
| 3/10 | target/ppc: Improve SPR indirect registersinclude/ target/ target/ +1 more | +46 | 2 replies | |
| 4/10 | ppc/pnv: specialise init for powernv8/9/10 machineshw/ | +30 | 3 replies | |
| 5/10 | ppc/pnv: Extend chip_pir class method to TIR as wellhw/ hw/ include/ | +45 | 5 replies | |
| 6/10 | ppc: Add a core_index to CPUPPCState for SMT vCPUshw/ hw/ target/ | +9 | 3 replies | |
| 7/10 | target/ppc: Add helpers to check for SMT sibling threadstarget/ target/ target/ +2 more | +28 | 4 replies | |
| 8/10 | ppc/pnv: Invert the design for big-core machine modellinghw/ hw/ hw/ +5 more | +197 | 5 replies | |
| 9/10 | ppc/pnv: Implement POWER10 PC xscom registers for direct controlshw/ hw/ include/ +3 more | +112 | 2 replies | |
| 10/10 | ppc/pnv: Add an LPAR per core machine optionhw/ hw/ include/ +2 more | +41 | 1 reply |
Reviews trailers per patch
5 of 10 patches have a Reviewed-by or Acked-by.
| Patch | Cédric Le Goater | Harsh Prateek Bora |
|---|---|---|
| 1/10 | R-b | R-b |
| 2/10 | R-b | |
| 3/10 | ||
| 4/10 | R-b | |
| 5/10 | ||
| 6/10 | ||
| 7/10 | R-b | |
| 8/10 | ||
| 9/10 | ||
| 10/10 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [RFC PATCH 00/10] ppc/pnv: Better big-core model, lpar-per-core, PC unit
Primary motivation for this series is to improve big-core support. Other things like SPR indirect, timebase state, PC xscom, are required for minimal big core support.
I'm still not 100% happy with the big-core topology model after this. Maybe one day we add pnv big core and pnv small core structures. But nothing is completely clean because big core mode still has certain small core restrictions. I think for now we take a bit of mostly abstracted ugliness in TCG code for the benefit of not spreading hacks through pervasive (xscom) core addressing.
After this series, power9 and power10 get through skiboot/Linux boot in SMT8 big-core mode. Not all big core registers are modeled exactly (some are not shared between small core halves), but that mostly doesn't matter for OPAL and it can be improved later.
Thanks,
Nick
Nicholas Piggin (10):
ppc/pnv: Add pointer from PnvCPUState to PnvCore ppc/pnv: Move timebase state into PnvCore
target/ppc: Improve SPR indirect registers
ppc/pnv: specialise init for powernv8/9/10 machines ppc/pnv: Extend chip_pir class method to TIR as well
ppc: Add a core_index to CPUPPCState for SMT vCPUs target/ppc: Add helpers to check for SMT sibling threads ppc/pnv: Invert the design for big-core machine modelling ppc/pnv: Implement POWER10 PC xscom registers for direct controls ppc/pnv: Add an LPAR per core machine option
include/hw/core/cpu.h | 8 + include/hw/ppc/pnv.h | 6 + include/hw/ppc/pnv_chip.h | 3 +- include/hw/ppc/pnv_core.h | 31 ++++ target/ppc/cpu.h | 37 ++--- hw/ppc/pnv.c | 297 ++++++++++++++++++++++++++++------- hw/ppc/pnv_chiptod.c | 6 +- hw/ppc/pnv_core.c | 129 +++++++++++++-- hw/ppc/spapr_cpu_core.c | 7 + system/cpus.c | 10 ++ target/ppc/cpu_init.c | 26 +-- target/ppc/excp_helper.c | 16 +- target/ppc/misc_helper.c | 98 ++++++------ target/ppc/timebase_helper.c | 82 +++++----- 14 files changed, 548 insertions(+), 208 deletions(-)
Signature · 1 line
2.43.0