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

Amitay Isaacs amitay at ozlabs.org
Fri Jan 28 17:12:18 AEDT 2022


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(+)

-- 
2.34.1



More information about the Pdbg mailing list