Skip to content

hw/ppc: SysBus simplifications

Philippe Mathieu-Daudé qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest7 patches 3 repliesIn review
  2. v27 patches 1 replySuperseded
  3. v16 patches 9 repliesSuperseded

Changes in v3 from the cover letter

- Mention coccinelle script in patch descriptions

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7hw/ppc/spapr_vio: Realize SPAPR_VIO_BRIDGE device before accessing ithw/ppc/spapr_vio.c+2 -11 reply
2/7hw/ppc/pnv_xscom: Rename pnv_xscom_realize(Error **) -> pnv_xscom_init()hw/ppc/pnv.c hw/ppc/pnv_xscom.c include/hw/ppc/pnv_xscom.h+5 -170 replies
3/7hw/ppc/pnv_xscom: Move sysbus_mmio_map() call within pnv_xscom_init()hw/ppc/pnv.c hw/ppc/pnv_xscom.c include/hw/ppc/pnv_xscom.h+6 -80 replies
4/7hw/ppc/pnv_xscom: Do not use SysBus API to map local MMIO regionhw/ppc/pnv_xscom.c+1 -30 replies
5/7hw/ppc/pnv: Do not use SysBus API to map local MMIO regionhw/ppc/pnv.c+2 -30 replies
6/7hw/intc/spapr_xive: Move sysbus_init_mmio() calls aroundhw/intc/spapr_xive.c+3 -30 replies
7/7hw/intc/spapr_xive: Do not use SysBus API to map local MMIO regionhw/intc/spapr_xive.c+6 -60 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchRichard HendersonThomas HuthLIU ZhiweiCédric Le Goater
SeriesR-b
1/7R-b
2/7R-b R-b R-b
3/7R-b R-b R-b
4/7R-b R-b R-b
5/7R-b R-b R-b
6/7R-b R-b R-b
7/7R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/7] hw/ppc: SysBus simplifications

Hi,

There is no point in exposing an internal MMIO region via SysBus and directly mapping it in the very same device.

This series replaces a sequence of:
- sysbus_init_mmio()
- sysbus_mmio_map()
by a single call to memory_region_add_subregion().

Since v2:
- Mention coccinelle script in patch descriptions

Since v1:
- New "Realize SPAPR_VIO_BRIDGE device before accessing it" patch
- Added R-b tags

Philippe Mathieu-Daudé (7):
hw/ppc/spapr_vio: Realize SPAPR_VIO_BRIDGE device before accessing it hw/ppc/pnv_xscom: Rename pnv_xscom_realize(Error **) ->
pnv_xscom_init()
hw/ppc/pnv_xscom: Move sysbus_mmio_map() call within pnv_xscom_init() hw/ppc/pnv_xscom: Do not use SysBus API to map local MMIO region hw/ppc/pnv: Do not use SysBus API to map local MMIO region hw/intc/spapr_xive: Move sysbus_init_mmio() calls around hw/intc/spapr_xive: Do not use SysBus API to map local MMIO region

 include/hw/ppc/pnv_xscom.h |  2 +-
 hw/intc/spapr_xive.c       | 12 ++++++------
 hw/ppc/pnv.c               | 26 +++++---------------------
 hw/ppc/pnv_xscom.c         |  5 ++---
 hw/ppc/spapr_vio.c         |  3 ++-
 5 files changed, 16 insertions(+), 32 deletions(-)
Signature · 1 line
2.41.0