mbox series

[0/3] Add long/short running application context

Message ID 20220128061221.1054173-1-amitay@ozlabs.org
Headers show
Series Add long/short running application context | expand

Message

Amitay Isaacs Jan. 28, 2022, 6:12 a.m. UTC
On P10 BMC, applications use libpdbg to access hardware. Currently,
when a core is probed, libpdbg enforces special wakeup and when the core
is released the special wakeup is also released.  This works very well
for pdbg tool which runs for short time and exits.  For applications
running on BMC, enforcing special wakeup can change the core state
unintentionally.  None of the BMC applications require special wakeup, so
there is no need to enforce special wakeup even on core probe.

This requires identifying two different contexts: one in which the special
wakeup is enforced during core probe as is when running pdbg tool and the
other in which special wakeup is not enforced when running BMC applications.

Amitay Isaacs (3):
  libpdbg: Add api to set short/long running application context
  main: Set the short running application context for pdbg tool
  libpdbg: For p10 do not assert special wakeup for core by default

 libpdbg/libpdbg.c | 17 +++++++++++++++++
 libpdbg/libpdbg.h |  9 +++++++++
 libpdbg/p10chip.c | 10 ++++++++++
 libpdbg/target.h  |  2 ++
 src/main.c        |  2 ++
 5 files changed, 40 insertions(+)