Skip to content

powerpc/xive: add support for H_INT_RESET

Cédric Le Goater linuxppc-dev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 1 replyIn review
  2. v14 patches 13 repliesSuperseded

Changes since v2 from the cover letter

- replaced msleep() by mdelay() as some calling path are under lock.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4powerpc/64/kexec: fix race in kexec when XIVE is shutdownarch/powerpc/kernel/machine_kexec_64.c+4 -41 reply
2/4powerpc/xive: fix hcall H_INT_RESET to support long busy delaysarch/powerpc/sysdev/xive/spapr.c+47 -50 replies
3/4powerpc/xive: shutdown XIVE when kexec or kdump is performedarch/powerpc/platforms/pseries/kexec.c+5 -20 replies
4/4powerpc/xive: prepare all hcalls to support long busy delaysarch/powerpc/sysdev/xive/spapr.c+28 -80 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/4] powerpc/xive: add support for H_INT_RESET

Hello,

H_INT_RESET performs a reset of the Hypervisor internal interrupt structures, removing all settings done with H_INT_SET_SOURCE_CONFIG and H_INT_SET_QUEUE_CONFIG. This is most important for kdump and kexec to be able to restart in a clean state.

First patch closes a window in the kexec sequence in which the H_INT_RESET hcall can be run concurrently with other hcalls when CPUs are brought down. The other patches wire up the reset hcall making sure it supports H_LONG_BUSY_* returned by the Hypervisor.

Thanks,

C.

Changes since v2:

- replaced msleep() by mdelay() as some calling path are under lock.

Cédric Le Goater (4):
powerpc/64/kexec: fix race in kexec when XIVE is shutdown powerpc/xive: fix hcall H_INT_RESET to support long busy delays powerpc/xive: shutdown XIVE when kexec or kdump is performed powerpc/xive: prepare all hcalls to support long busy delays

 arch/powerpc/kernel/machine_kexec_64.c |  8 ++--
 arch/powerpc/platforms/pseries/kexec.c |  7 ++-
 arch/powerpc/sysdev/xive/spapr.c       | 88 +++++++++++++++++++++++++++++-----
 3 files changed, 84 insertions(+), 19 deletions(-)
Signature · 1 line
2.13.6