summary refs log tree commit diff stats
path: root/docs/devel/writing-monitor-commands.rst
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2024-11-11 15:23:29 +1000
committerNicholas Piggin <npiggin@gmail.com>2024-11-27 02:47:25 +1000
commit96746f7a95a6e32d6578d417ae41dc24c564fafa (patch)
tree5b519638e193c2b7f326822bddfec67ced21eeee /docs/devel/writing-monitor-commands.rst
parentfa416ae6157a933ad3f7106090684759baaaf3c9 (diff)
downloadfocaccia-qemu-96746f7a95a6e32d6578d417ae41dc24c564fafa.tar.gz
focaccia-qemu-96746f7a95a6e32d6578d417ae41dc24c564fafa.zip
ppc/pnv: Fix direct controls quiesce
powernv CPUs have a set of control registers that can stop, start, and
do other things to control a thread's execution.

Using this interface to stop a thread puts it into a particular state
that can be queried, and is distinguishable from other things that might
stop the CPU (e.g., going idle, or being debugged via gdb, or stopped by
the monitor).

Add a new flag that can speficially distinguish this state where it is
stopped with control registers. This solves some hangs when rebooting
powernv machines when skiboot is modified to allow QEMU to use the CPU
control facility (that uses controls to bring all secondaries to a known
state).

Fixes: c8891955086 ("ppc/pnv: Implement POWER10 PC xscom registers for direct controls")
Reviewed-by: Glenn Miles <milesg@linux.ibm.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Diffstat (limited to 'docs/devel/writing-monitor-commands.rst')
0 files changed, 0 insertions, 0 deletions