From 5634271463a1f735395a67f3f631358861e3fecd Mon Sep 17 00:00:00 2001 From: Glenn Miles Date: Fri, 24 May 2019 16:32:11 -0500 Subject: OCMB MMIO error handling Added the following -Error checking and FRU isolation on explorer side -Cleaned up MMIO write error handling to read an MMIO error register -Fixed and enabled MMIO test cases -Moved parameter checking and channel checkstop checking into seperate functions. -Only check for channel checkstop for the channel that an OCMB is connected to. -Switch to using I2C on first MMIO failure. Change-Id: I5e997c5177f8a68a2966f837acc9b578a4cc1897 RTC:201588 RTC:201901 RTC:202533 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/77859 Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: FSP CI Jenkins Tested-by: Jenkins OP HW Reviewed-by: Matt Derksen Reviewed-by: Christian R. Geddes Reviewed-by: Daniel M. Crowell --- src/include/usr/mmio/mmio_reasoncodes.H | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/include') diff --git a/src/include/usr/mmio/mmio_reasoncodes.H b/src/include/usr/mmio/mmio_reasoncodes.H index 86ff60b5b..6a96547ac 100644 --- a/src/include/usr/mmio/mmio_reasoncodes.H +++ b/src/include/usr/mmio/mmio_reasoncodes.H @@ -36,6 +36,11 @@ namespace MMIO MOD_MMIO_PERFORM_OP = 0x02, MOD_MMIO_GET_PROC_SCOM = 0x03, MOD_MMIO_SET_PROC_SCOM = 0x04, + MOD_VALIDATE_OCMB_MMIO_OP = 0x05, + MOD_MMIO_CHAN_CHECKSTOP = 0x06, + MOD_CHECK_OCMB_ERROR = 0x07, + MOD_DETERMINE_CALLOUTS = 0x08, + MOD_DETERMINE_EXP_CALLOUTS = 0x09, }; enum MMIOReasonCode @@ -52,6 +57,8 @@ namespace MMIO RC_BAD_MMIO_WRITE = MMIO_COMP_ID | 0x09, RC_PROC_NOT_FOUND = MMIO_COMP_ID | 0x0A, RC_BAR_OFFSET_MISMATCH = MMIO_COMP_ID | 0x0B, + RC_MMIO_CHAN_CHECKSTOP = MMIO_COMP_ID | 0x0C, + RC_UNSUPPORTED_CHIPID = MMIO_COMP_ID | 0x0D, }; }; -- cgit v1.2.3