Skip to content

target-ppc: Tidy sPAPR device tree CPU nodes

Andreas Färber qemu-devel 2 versions – Applied

Status from this message: Thanks, applied all to ppc-next.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 1 replyApplied
  2. v24 patches 22 repliesSuperseded

Changes in v3 from the cover letter

* Drop any type-based model name mangling and default to PowerPC,UNKNOWN (Alex).

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2target-ppc: Fill in OpenFirmware names for some PowerPCCPU familiestarget-ppc/translate_init.c+3 -00 replies
2/2spapr: Use DeviceClass::fw_name for device tree CPU nodehw/ppc/spapr.c include/hw/ppc/spapr.h target-ppc/translate_init.c+8 -210 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [Qemu-devel] [PATCH v3 0/2] target-ppc: Tidy sPAPR device tree CPU nodes

Hello Alexey and Alex,

This series cleans up the fdt CPU nodes for -M pseries as attempted by Prerna.

v3 uses DeviceClass::fw_name for name storage exclusively, with "PowerPC,UNKNOWN" as fallback.

Regards,
Andreas

v2 -> v3:
* Drop any type-based model name mangling and default to PowerPC,UNKNOWN (Alex).

preview -> v2:
* Set fw_name at family level rather than model level, saving macro extensions.
* Appended patch stripping underscores (Prerna).

v1 / Prerna's v3 -> preview:
* Instead of overwriting cpu_model with parent's type name for -cpu host, set fw_name for some models and read type / parent's types otherwise.
* Don't pass cpu_model to functions, determine name per CPU iterated.
* Avoid walking alias list by taking fw_name or model part of type name.

Cc Prerna Saxena <[email protected]>
Cc Alexander Graf <[email protected]>
Cc Alexey Kardashevskiy <[email protected]>
Cc Benjamin Herrenschmidt <[email protected]>
Cc Thomas Huth <[email protected]>
Cc Anthony Liguori <[email protected]>

Andreas Färber (2):
target-ppc: Fill in OpenFirmware names for some PowerPCCPU families
spapr: Use DeviceClass::fw_name for device tree CPU node

 hw/ppc/spapr.c              | 26 ++++++--------------------
 include/hw/ppc/spapr.h      |  1 -
 target-ppc/translate_init.c |  5 +++++
 3 files changed, 11 insertions(+), 21 deletions(-)
Signature · 1 line
1.8.1.4