Skip to content

CPU unplug timeout/LMB unplug cleanup in DRC reconfiguration

Daniel Henrique Barboza qemu-devel 2 versions – Applied

Status from this message: Applied to ppc-for-6.0, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest5 patches 3 repliesApplied
  2. v37 patches 20 repliesSuperseded

Changes in v4 from the cover letter · 16 lines

- former patch 1: already pushed to ppc-for-6.0
- former patch 2: dropped
- all patches: commit message trimmed to < 76 chars per line
- all patches: added R-bs from previous review
- patch 3:
* removed the migratable state of the unplug timer
* added a 'spapr_drc_start_unplug_timeout_timer()' helper to start the timer
* added a .post_load implementation to vmstate_spapr_drc, pointed to a new spapr_drc_post_load() function
* spapr_drc_post_load() starts the DRC unplug timer from the beginning using spapr_drc_start_unplug_timeout_timer()

- patch 4:
* use spapr_drc_start_unplug_timeout_timer() to start the timer in spapr_drc_unplug_request() (To David: I kept your Reviewed-by in this patch despite this change - feel free to review it again)

- patch 5:
* removed the 'DIMM' wording when referring to kernel internals
* move the g_assert() to spapr_clear_pending_dimm_unplug_state()
* do not g_assert(dev), but g_assert(ds) if dev != NULL inside spapr_clear_pending_dimm_unplug_state()

- v3 link: https://lists.gnu.org/archive/html/qemu-devel/2021-02/msg04196.html

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/5spapr_drc.c: use spapr_drc_release() in isolate_physical/set_unusablehw/ppc/spapr_drc.c+16 -161 reply
2/5spapr: rename spapr_drc_detach() to spapr_drc_unplug_request()hw/ppc/spapr.c hw/ppc/spapr_drc.c hw/ppc/spapr_pci.c +2 more+9 -91 reply
3/5spapr_drc.c: introduce unplug_timeout_timerhw/ppc/spapr_drc.c include/hw/ppc/spapr_drc.h+44 -00 replies
4/5spapr_drc.c: add hotunplug timeout for CPUshw/ppc/spapr.c hw/ppc/spapr_drc.c include/hw/ppc/spapr_drc.h+18 -00 replies
5/5spapr_drc.c: use DRC reconfiguration to cleanup DIMM unplug statehw/ppc/spapr.c hw/ppc/spapr_drc.c include/hw/ppc/spapr.h+55 -00 replies

Reviews trailers per patch

3 of 5 patches have a Reviewed-by or Acked-by.

PatchGreg KurzDavid Gibson
1/5R-b R-b
2/5R-b R-b
3/5
4/5R-b
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/5] CPU unplug timeout/LMB unplug cleanup in DRC reconfiguration

Hi,

This new version contains fixes proposed during the review of v3. Patches were rebased on top of David's ppc-for-6.0.

changes from v3:
- former patch 1: already pushed to ppc-for-6.0
- former patch 2: dropped
- all patches: commit message trimmed to < 76 chars per line
- all patches: added R-bs from previous review
- patch 3:
* removed the migratable state of the unplug timer
* added a 'spapr_drc_start_unplug_timeout_timer()' helper to start the timer
* added a .post_load implementation to vmstate_spapr_drc, pointed to a new spapr_drc_post_load() function
* spapr_drc_post_load() starts the DRC unplug timer from the beginning using spapr_drc_start_unplug_timeout_timer()

- patch 4:
* use spapr_drc_start_unplug_timeout_timer() to start the timer in spapr_drc_unplug_request() (To David: I kept your Reviewed-by in this patch despite this change - feel free to review it again)

- patch 5:
* removed the 'DIMM' wording when referring to kernel internals
* move the g_assert() to spapr_clear_pending_dimm_unplug_state()
* do not g_assert(dev), but g_assert(ds) if dev != NULL inside spapr_clear_pending_dimm_unplug_state()

- v3 link: https://lists.gnu.org/archive/html/qemu-devel/2021-02/msg04196.html

Daniel Henrique Barboza (5):
spapr_drc.c: use spapr_drc_release() in isolate_physical/set_unusable
spapr: rename spapr_drc_detach() to spapr_drc_unplug_request() spapr_drc.c: introduce unplug_timeout_timer
spapr_drc.c: add hotunplug timeout for CPUs
spapr_drc.c: use DRC reconfiguration to cleanup DIMM unplug state

 hw/ppc/spapr.c             | 53 ++++++++++++++++++--
 hw/ppc/spapr_drc.c         | 99 +++++++++++++++++++++++++++++++-------
 hw/ppc/spapr_pci.c         |  4 +-
 hw/ppc/trace-events        |  2 +-
 include/hw/ppc/spapr.h     |  2 +
 include/hw/ppc/spapr_drc.h |  7 ++-
 6 files changed, 142 insertions(+), 25 deletions(-)
Signature · 1 line
2.29.2