Skip to content

Commit

Permalink
platform/witherspoon: Enable eSEL logging
Browse files Browse the repository at this point in the history
OpenBMC stack added IPMI OEM extension to log eSEL events.
Lets enable eSEL logging from OPAL side.

See: https://github.com/openbmc/openpower-host-ipmi-oem/blob/d9296050bcece5c2eca5ede0932d944b0ced66c9/oemhandler.cpp#L142
(yes, that is the documentation)

Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
[stewart@linux.vnet.ibm.com: remove pnor access request, add link to OpenBMC doc]
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
  • Loading branch information
Vasant Hegde authored and stewartsmith committed Jul 19, 2017
1 parent dc2f7eb commit 293b5ac
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions platforms/astbmc/astbmc.h
Expand Up @@ -42,6 +42,7 @@ struct slot_table_entry {
};

extern const struct bmc_platform astbmc_ami;
extern const struct bmc_platform astbmc_openbmc;

extern void astbmc_early_init(void);
extern int64_t astbmc_ipmi_reboot(void);
Expand Down
5 changes: 5 additions & 0 deletions platforms/astbmc/common.c
Expand Up @@ -414,3 +414,8 @@ const struct bmc_platform astbmc_ami = {
.ipmi_oem_partial_add_esel = IPMI_CODE(0x32, 0xf0),
.ipmi_oem_pnor_access_status = IPMI_CODE(0x3a, 0x07),
};

const struct bmc_platform astbmc_openbmc = {
.name = "OpenBMC",
.ipmi_oem_partial_add_esel = IPMI_CODE(0x32, 0xf0),
};
2 changes: 1 addition & 1 deletion platforms/astbmc/witherspoon.c
Expand Up @@ -410,7 +410,7 @@ DECLARE_PLATFORM(witherspoon_platform) = {
.pre_pci_fixup = witherspoon_pre_pci_fixup,
.start_preload_resource = flash_start_preload_resource,
.resource_loaded = flash_resource_loaded,
.bmc = NULL, /* FIXME: Add openBMC */
.bmc = &astbmc_openbmc,
.pci_get_slot_info = slot_table_get_slot_info,
.pci_probe_complete = check_all_slot_table,
.cec_power_down = astbmc_ipmi_power_down,
Expand Down

0 comments on commit 293b5ac

Please sign in to comment.