[Skiboot] [PATCH v2] platform/witherspoon: Enable eSEL logging

Vasant Hegde hegdevasant at linux.vnet.ibm.com
Mon Jul 17 17:55:39 AEST 2017


OpenBMC stack added IPMI OEM extension to log eSEL events.
Lets enable eSEL logging from OPAL side.

Signed-off-by: Vasant Hegde <hegdevasant at linux.vnet.ibm.com>
---
Changes in v2:
  - Added astbmc_openbmc structure - Thanks Stewart.

-Vasant
 platforms/astbmc/astbmc.h      | 1 +
 platforms/astbmc/common.c      | 6 ++++++
 platforms/astbmc/witherspoon.c | 2 +-
 3 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/platforms/astbmc/astbmc.h b/platforms/astbmc/astbmc.h
index 9995800..d538f97 100644
--- a/platforms/astbmc/astbmc.h
+++ b/platforms/astbmc/astbmc.h
@@ -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);
diff --git a/platforms/astbmc/common.c b/platforms/astbmc/common.c
index 6f29e61..3ff949a 100644
--- a/platforms/astbmc/common.c
+++ b/platforms/astbmc/common.c
@@ -414,3 +414,9 @@ 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),
+	.ipmi_oem_pnor_access_status = IPMI_CODE(0x3a, 0x07),
+};
diff --git a/platforms/astbmc/witherspoon.c b/platforms/astbmc/witherspoon.c
index 6a77306..c522739 100644
--- a/platforms/astbmc/witherspoon.c
+++ b/platforms/astbmc/witherspoon.c
@@ -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,
-- 
2.9.3



More information about the Skiboot mailing list