From ee1cd5b0adfaf133abe846ccbaebe48d7dbded0f Mon Sep 17 00:00:00 2001 From: Nick Bofferding Date: Fri, 6 Jul 2018 13:46:35 -0500 Subject: Enhance RAS for case where boot firmware image is too big to load Provides a better fail indicator when the boot firmware image is too big to load Change-Id: Ibb8765dec430b4e38de1d82e74e144c7ea8f3959 CQ: SW437090 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/61989 Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: FSP CI Jenkins Tested-by: Jenkins OP HW Reviewed-by: Daniel M. Crowell --- src/include/bootloader/bootloader_trace.H | 3 +++ src/include/bootloader/hbblreasoncodes.H | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src/include/bootloader') diff --git a/src/include/bootloader/bootloader_trace.H b/src/include/bootloader/bootloader_trace.H index d79f3c4af..aedba5441 100644 --- a/src/include/bootloader/bootloader_trace.H +++ b/src/include/bootloader/bootloader_trace.H @@ -79,6 +79,9 @@ enum BootloaderTraces /** Bootloader main verifyComponentId failed */ BTLDR_TRC_COMP_ID_VERIFY_FAILED = 0x1B, + /** Bootloader main working length too big */ + BTLDR_TRC_BAD_WORK_LEN = 0x1C, + /** Bootloader handleMMIO started */ BTLDR_TRC_HANDLEMMIO_START = 0x20, diff --git a/src/include/bootloader/hbblreasoncodes.H b/src/include/bootloader/hbblreasoncodes.H index 213e3dfe9..e50def492 100644 --- a/src/include/bootloader/hbblreasoncodes.H +++ b/src/include/bootloader/hbblreasoncodes.H @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2016,2017 */ +/* Contributors Listed Below - COPYRIGHT 2016,2018 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -74,6 +74,7 @@ namespace Bootloader RC_NO_HBB_IN_TOC = HBBL_COMP_ID | 0x0C, /**< No HBB Sect in TOC */ RC_PNOR_SECID_OUT_OF_RANGE = HBBL_COMP_ID | 0x0D, /**< Requested PNOR SecId DNE in string array */ RC_PNOR_NULLPTR = HBBL_COMP_ID | 0x0E, /**< Requested address to compare is a nullptr */ + RC_BAD_WORK_LEN = HBBL_COMP_ID | 0x0F, /**< Working length too large */ }; }; // end Bootloader -- cgit v1.2.3