[Pdbg] [PATCH 0/8] Fix thread status for sbefifo thread driver
Amitay Isaacs
amitay at ozlabs.org
Fri Oct 9 14:59:53 AEDT 2020
The thread driver for P8 and P9 maintains the current state of
hardware thread. This is used to make decisions on whether you can
stop/start/reset a thread or execute instructions on a thread.
The sbefifo thread driver did not implement thread status. These patches add
state() hardware procedure to thread to correctly implement obtaining the
thread status of hardware thread. Currently only P9 threads are supported
with sbefifo thread driver, so p9_thread_state() is used to calculate the
thread state in sbefifo thread implementation.
Amitay Isaacs (8):
libpdbg: Rename get_thread_status to p8_thread_state
libpdbg: Rename p9_get_thread_status to p9_thread_state
libpdbg: Add state() method to thread
libpdbg: Use thread method to get state
libpdbg: Expose p9_thread_state method
libpdbg: Implement state method for sbefifo thread
libpdbg: Update thread status when starting/stopping a thread
libpdbg: Update thread state when starting/stopping all threads
libpdbg/chip.h | 2 ++
libpdbg/hwunit.h | 1 +
libpdbg/p8chip.c | 13 ++++----
libpdbg/p9chip.c | 17 +++++-----
libpdbg/sbefifo.c | 84 +++++++++++++++++++++++++++++++++++++++++++----
5 files changed, 97 insertions(+), 20 deletions(-)
--
2.26.2
More information about the Pdbg
mailing list