Skip to content

KVM: PPC: BookE: Fix boot hang on preemptible kernels

Shrikanth Hegde linuxppc-dev lkml stable 5 versions – Applied

Status from this message: Applied to powerpc/fixes.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest3 patches 2 repliesApplied
  2. v43 patches 3 repliesSuperseded
  3. v33 patches 5 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v23 patches6 repliesSuperseded
v12 patches16 repliesSuperseded

Changes in v5 from the cover letter

- Removed fixes tag for patch 1 as backports could be complicated and added stable instead.
- Collected tags.

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/3PPC32: Fix hard_irq_disable to follow tracing and lockdep statearch/powerpc/include/asm/hw_irq.h+1 -11 reply
2/3KVM: PPC: BookE: Load FP and Altivec before enabling the interruptsarch/powerpc/kvm/booke.c+1 -20 replies
3/3KVM: PPC: Hard disable interrupts before guest entryarch/powerpc/kvm/booke.c arch/powerpc/kvm/powerpc.c+0 -90 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchRitesh Harjani (IBM)Christian ZigotzkyNarayana Murty NMukesh Kumar Chaurasiya (IBM)
1/3R-b R-b
2/3R-b T-b R-b R-b
3/3R-b T-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 v5 thread

Cover letter [PATCH v5 0/3] KVM: PPC: BookE: Fix boot hang on preemptible kernels

Christian Zigotzky had reported that preemptible kernels don't boot on his FSL Cyrus+ board. The board freezes on running either full/lazy preemption and has been an issue for a while now (years!).

https://lore.kernel.org/all/[email protected]/#t
More details in cover-letter of v2[1]

v4->v5:
- Removed fixes tag for patch 1 as backports could be complicated and added stable instead.
- Collected tags.

v3->v4:
- Modify hard_irq_disable for PPC32 to simply call local_irq_disable which does tracing/lockdep in addition to actually disabling the EE bit. (Ritesh Harjani)
- Modify the guest entry code to use the above (Ritesh Harjani)
- Collected tags. Thanks to Ritesh Harjani, Narayana Murty N.

v2->v3:
- Comment removal (Mukesh Kumar Chaurasiya)
- Add missing booke change (Sashiko)
- Collect tags (Thanks to Mukesh Kumar Chaurasiya, Christian Zigotzky)

v1->v2:
- Re-order to avoid preempt count dance (Narayana Murty N)
- Do only hard_irq_disable on PPC64 to avoid second warning. On PPC32 use local_irq_disable to acheive the same. (Ritesh Harjani)

v2: https://lore.kernel.org/all/[email protected]/#t [1]
v4: https://lore.kernel.org/all/[email protected]/

Apologies in case any nitpicks are missed.
I'm surviving on half a night's sleep these days.

As said in v2, remaining usecases of hard_irq_disable will be taken up later, which are in:
arch/powerpc/kexec/core_64.c
arch/powerpc/kvm/book3s_hv.c arch/powerpc/platforms/85xx/smp.c

Shrikanth Hegde (3):
PPC32: Fix hard_irq_disable to follow tracing and lockdep state
KVM: PPC: BookE: Load FP and Altivec before enabling the interrupts
KVM: PPC: Hard disable interrupts before guest entry

 arch/powerpc/include/asm/hw_irq.h | 2 +-
 arch/powerpc/kvm/booke.c          | 4 +---
 arch/powerpc/kvm/powerpc.c        | 8 --------
 3 files changed, 2 insertions(+), 12 deletions(-)
Signature · 1 line
2.54.0