KOP L2 guest fails to boot with 1 core - SMT8 topology
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
The Ubuntu-power-systems project |
Confirmed
|
High
|
Ubuntu on IBM Power Systems Bug Triage | ||
linux (Ubuntu) |
Confirmed
|
High
|
Unassigned |
Bug Description
== Comment: #0 - SEETEENA THOUFEEK <email address hidden> - 2024-06-25 01:24:11 ==
+++ This bug was initially created as a clone of Bug #205277 +++
---Problem Description---
KOP L2 guest fails to boot with 1 core - SMT8 topology
---Additional Hardware Info---
na
---Debugger Data---
na
---Steps to Reproduce---
KOP L2 guest fails to boot when we set the CPU topology as 1 core - SMT 8
command line used to verify the issue:
#!/bin/sh
QEMU="/
qemu-system-ppc64 -s \
-drive file=/root/
-m 20G \
-smp 8,cores=
-cpu host \
-nographic \
-machine pseries,
-net nic,model=virtio \
-net user,host=
NOTE: L2 boots fine when doorbells are turned off in L1 kernel
As per the investigation so far, the doorbell exception is not getting fired inside L2 guest. At L1 level, if we set DPDES=1 in the GSB for L2, the guest never receives the doorbell and also it is never cleared from the GSB. We are discussing this behaviour with phyp team.
The root cause of this issue is lack of DPDES support at L1. I've posted the fix upstream - https://<email address hidden>/T/#u
The fix has been accepted upstream and will be backported for kernels >= 6.7
https://<email address hidden>/
---Patches Installed---
na
---System Hang---
na
---uname output---
na
Contact Information = na
Machine Type = na
Userspace rpm: na
Userspace tool common name: na
The userspace tool has the following bit modes: na
Userspace tool obtained from project website: na
*Additional Instructions for na:
-Post a private note with access information to the machine that is currently in the debugger.
-Attach ltrace and strace of userspace application.
tags: | added: architecture-ppc64 bugnameltc-207101 severity-high targetmilestone-inin--- |
Changed in ubuntu: | |
assignee: | nobody → Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage) |
affects: | ubuntu → linux (Ubuntu) |
Hello and thanks for having reported this issue.
Once the patch set 'Fix doorbell emulation for v2 API on PPC' with patches: /git.kernel. org/pub/ scm/linux/ kernel/ git/next/ linux-next. git/log/ ?qt=grep& q=Fix+doorbell+ emulation+ for+v2+ API), but assume they are still part of a staging tree and will hit linux-next soon.
- arch/powerpc/kvm: Add DPDES support in helper library for Guest state buffer
- arch/powerpc/kvm: Fix doorbell emulation for v2 API
are upstream accepted (having them in 'linux-next' is sufficient), we can think about picking them.
I cannot find them in 'linux-next' yet (https:/
Based on your statement "The fix has been accepted upstream and will be backported for kernels >= 6.7" I assume the patch(es) are (or will be soon) also upstream marked as "stable updates", and will then land in kernel 6.8 (that we have in 24.04).
As soon as this happens, the "stable updates" for 6.8 will be picked by the Canonical kernel team automatically.