[Skiboot] [RFC PATCH 0/3] Boot progress codes to LPC port 80 (and 81 and 82)

Stewart Smith stewart at linux.ibm.com
Thu Dec 13 17:07:02 AEDT 2018


This patch series implements a simple mechanism for a service processor
to observe the boot progress and state. This would likely be used with
the OpenBMC IPL observer.

Firstly, we use the industry standard port 80h in a way that's
compatible with the hostboot usage (see hostboot commit 90ec2e65) and
ensures we don't collide with it.

We then extend things to use ports 81 and 82 to throw in more detail.
This patch is a bit more RFC than the port80h one.

A future patch should clean up the op_panel() call to not exist in
hw/fsp/fsp-op-panel.c and instead sit somewhere generic, possibly being
a platform call?

I'd also like us to produce a build artifact that is a CSV of what
values we could end up writing, which probably means we should change
the code parameter of op_display() to a bunch of defines/enums ?

NOTE: I have not tested these *AT ALL* and they should probably be
considered RFC for now until I find out a good way to do so. They do
compile though :)

Stewart Smith (3):
  hw/test: generalise makefile
  Write boot progress to LPC port 80h
  Write boot progress to LPC ports 81 and 82

 hw/Makefile.inc        |   1 +
 hw/fsp/fsp-op-panel.c  |   4 +-
 hw/lpc-port80h.c       | 177 +++++++++++++++++++++++++++++++++++++++++
 hw/test/Makefile.check |  29 ++++---
 hw/test/run-port80h.c  | 101 +++++++++++++++++++++++
 include/op-panel.h     |   2 +-
 6 files changed, 303 insertions(+), 11 deletions(-)
 create mode 100644 hw/lpc-port80h.c
 create mode 100644 hw/test/run-port80h.c

-- 
2.20.0



More information about the Skiboot mailing list