ppc/pnv: remove the use of qdev_get_machine()
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest12 patches 4 repliesIn review
- v213 patches 12 repliesApplied
- v110 patches 5 repliesSuperseded
Changes in v3 from the cover letter
- rebase on latest ppc tree
- dropped get_system_memory() removal
- addition of a couple of cleanup patches of the PSI model from Greg
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/12 | ppc/pnv: Introduce a "xics" property alias under the PSI modelhw/ hw/ | +4 | 0 replies | |
| 2/12 | ppc/pnv: Introduce a "xics" property under the POWER8 chiphw/ include/ | +21 | 0 replies | |
| 3/12 | pnv/xive: Use device_class_set_parent_realize()hw/ include/ | +20 | 0 replies | |
| 4/12 | spapr, pnv, xive: Add a "xive-fabric" link to the XIVE routerhw/ hw/ hw/ +1 more | +19 | 0 replies | |
| 5/12 | xive: Use the XIVE fabric link under the XIVE routerhw/ | +11 | 1 reply | |
| 6/12 | ppc/pnv: Add an "nr-threads" property to the base chip classhw/ include/ | +6 | 0 replies | |
| 7/12 | ppc/pnv: Add a "pnor" const link property to the BMC internal simulatorhw/ hw/ include/ | +7 | 0 replies | |
| 8/12 | xive: Add a "presenter" link property to the TCTX objecthw/ hw/ hw/ +1 more | +13 | 0 replies | |
| 9/12 | spapr/xive: Deduce the SpaprXive pointer from XiveTCTX::xptrhw/ | +4 | 0 replies | |
| 10/12 | pnv/xive: Deduce the PnvXive pointer from XiveTCTX::xptrhw/ hw/ include/ | +2 | 1 reply | |
| 11/12 | pnv/psi: Add device reset hookhw/ | +13 | 2 replies | |
| 12/12 | pnv/psi: Consolidate some duplicated code in pnv_psi_realize()hw/ | +12 | 0 replies |
Reviews trailers per patch
4 of 12 patches have a Reviewed-by or Acked-by.
| Patch | Greg Kurz | David Gibson |
|---|---|---|
| 1/12 | R-b | |
| 2/12 | R-b | R-b |
| 3/12 | R-b | |
| 4/12 | ||
| 5/12 | ||
| 6/12 | R-b | |
| 7/12 | ||
| 8/12 | ||
| 9/12 | ||
| 10/12 | ||
| 11/12 | ||
| 12/12 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 00/12] ppc/pnv: remove the use of qdev_get_machine()
Hello,
The PowerNV and sPAPR machine use qdev_get_machine() in some places. This is not a good modeling pratice and it should be avoided. This series replaces the use of this routine with a set of QOM properties and aliases.
Thanks,
C.
Changes since v2:
- rebase on latest ppc tree
- dropped get_system_memory() removal
- addition of a couple of cleanup patches of the PSI model from Greg
Changes since v1:
- fixed a missing assert(chip->system_memory)
- introduced a XivePresenter link under XiveTCTX
Cédric Le Goater (3):
ppc/pnv: Introduce a "xics" property alias under the PSI model ppc/pnv: Introduce a "xics" property under the POWER8 chip
xive: Add a "presenter" link property to the TCTX object
Greg Kurz (9):
pnv/xive: Use device_class_set_parent_realize() spapr, pnv, xive: Add a "xive-fabric" link to the XIVE router
xive: Use the XIVE fabric link under the XIVE router ppc/pnv: Add an "nr-threads" property to the base chip class ppc/pnv: Add a "pnor" const link property to the BMC internal
simulator
spapr/xive: Deduce the SpaprXive pointer from XiveTCTX::xptr pnv/xive: Deduce the PnvXive pointer from XiveTCTX::xptr pnv/psi: Add device reset hook
pnv/psi: Consolidate some duplicated code in pnv_psi_realize()
include/hw/ppc/pnv.h | 7 +++-- include/hw/ppc/pnv_xive.h | 10 +++++++ include/hw/ppc/xive.h | 13 +++++---- hw/intc/pnv_xive.c | 18 ++++++++---- hw/intc/spapr_xive.c | 2 +- hw/intc/spapr_xive_kvm.c | 9 +++--- hw/intc/xive.c | 28 ++++++++++++++++--- hw/ppc/pnv.c | 59 ++++++++++++++++++++++----------------- hw/ppc/pnv_bmc.c | 8 ++++-- hw/ppc/pnv_psi.c | 43 ++++++++++++++++------------ hw/ppc/spapr_irq.c | 2 ++ 11 files changed, 129 insertions(+), 70 deletions(-)
Signature · 1 line
2.21.1