From 9acfce99596f12dcc60952f8506a77e542609cbf Mon Sep 17 00:00:00 2001 From: Dean Sanner Date: Mon, 14 Aug 2017 10:02:43 -0500 Subject: Clear ECC sections marked "clearOnEccErr" on error - Add the capability for Hostboot to recover (with reboot) when it consumes an ECC error - PNOR layout needs to be updated to flag the recoverable sections (generally cached or throw away data like *VPD HBEL, and GUARD partitions) - Upon bad ECC detection, Hostboot will check partition flag and if set, it will clear and write good ECC to PNOR. It will then throw the normal error and terminate, waiting for the BMC to issue a reboot Change-Id: Ie4f4c0637d3962e9d4871e84a0bda8c256a74440 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/44608 Reviewed-by: Stephen M. Cprek Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: FSP CI Jenkins Tested-by: Jenkins OP HW Reviewed-by: Nicholas E. Bofferding Reviewed-by: Daniel M. Crowell --- src/usr/pnor/common/ffs_hb.H | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/usr/pnor/common/ffs_hb.H') diff --git a/src/usr/pnor/common/ffs_hb.H b/src/usr/pnor/common/ffs_hb.H index 12d6689b7..7b0788405 100644 --- a/src/usr/pnor/common/ffs_hb.H +++ b/src/usr/pnor/common/ffs_hb.H @@ -69,8 +69,9 @@ enum FFS_MISC_PSEUDO = 0x20, /**< Pseudo partition */ FFS_MISC_REPROVISION = 0x10, /**< Erased during reprovision */ FFS_MISC_VOLATILE = 0x08, /**< Loses contents based on boot types*/ + FFS_MISC_CLR_ECC_ERR = 0x04, /**< Clear and reboot on ECC err */ FFS_MISC_GOLDEN = 0x01, /**< Golden side of PNOR */ - FFS_MISC_UNUSED = 0x06, /**< Unused MISC Flags */ + FFS_MISC_UNUSED = 0x02, /**< Unused MISC Flags */ }; /** -- cgit v1.2.1