All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] Special handlers for post-codes
@ 2025-05-30  2:02 Amithash Prasad
  2025-05-30 13:17 ` Patrick Williams
  0 siblings, 1 reply; 3+ messages in thread
From: Amithash Prasad @ 2025-05-30  2:02 UTC (permalink / raw)
  To: LF/OpenBMC Mailing List
  Cc: wangkuiying.wky@alibaba-inc.com, zhikui.ren@intel.com,
	wangkuiying.wky@alibaba-inc.com, zhikui.ren@intel.com

[-- Attachment #1: Type: text/plain, Size: 1500 bytes --]

Hello,

There are many occasions when a post code from a server actually means something is wrong — especially crucial if a boot failure occurs before the part of the system firmware capable of sending a SEL to the BMC is loaded. To support this, I am proposing enhancing phosphor-post-code-mfg to support configurable special handling of post codes.

Example configuration:
[
  {
    "primary": [123],
    "secondary": [234, 123],
    "targets": ["my_special.service"]
  },
  {
    "primary": [999],
    "targets": ["power_failure.service"],
    "event": {
      "name": "xyz.openbmc_project.State.Power.PowerRailFault",
      "arguments": {
          "POWER_RAIL": "MyDevice",
          "FAILURE_DATA": ""
      }
    }
  }
]

The first config will start my_special.service if we receive a postcode: {{123}, {234, 123}}. The second will start power_failure.service and also create a phosphor-logging event xyz.openbmc_project.State.Power.PowerRailFault with arguments {"POWER_FAIL": "MyDevice", "FAILURE_DATA": ""} when we receive a post code {{999}, {anything}}.

Any feedback is appreciated. Especially pertaining to the secondary post-code (since I don't have experience with machines which have a secondary post-code and my proposal is just a guess).

I have a untested proof of concept I am working on: https://gerrit.openbmc.org/c/openbmc/phosphor-post-code-manager/+/80646
I would love to get feedback before I continue down this path.


Thanks,

Amithash

[-- Attachment #2: Type: text/html, Size: 7145 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-07-17 23:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-30  2:02 [RFC] Special handlers for post-codes Amithash Prasad
2025-05-30 13:17 ` Patrick Williams
2025-07-17 21:00   ` Amithash Prasad

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.