diff options
author | Dan Crowell <dcrowell@us.ibm.com> | 2015-07-10 16:11:05 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2015-08-10 14:46:12 -0500 |
commit | 531d53379749691b810ee4bd02989217335ead5e (patch) | |
tree | 914d3322e02a5e1a77a51ee66e47bc1d1e81ab36 /src/usr/pnor | |
parent | e494fa231626e93739d84b5ba0c2d5f5065aa6f3 (diff) | |
download | talos-hostboot-531d53379749691b810ee4bd02989217335ead5e.tar.gz talos-hostboot-531d53379749691b810ee4bd02989217335ead5e.zip |
Add console message for PNOR ECC errors
Output message to the console when uncorrectable ECC errors are
encountered to improve debug of corruption issues.
Change-Id: I5c398a3eee5f03f87a471cf3da1c0a957ced5bd7
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/19040
Tested-by: Jenkins Server
Tested-by: Jenkins OP Build CI
Tested-by: Jenkins OP HW
Reviewed-by: Michael Baiocchi <baiocchi@us.ibm.com>
Reviewed-by: MATTHEW A. PLOETZ <maploetz@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/pnor')
-rw-r--r-- | src/usr/pnor/pnorrp.C | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/usr/pnor/pnorrp.C b/src/usr/pnor/pnorrp.C index c50a28ba6..a887e8a98 100644 --- a/src/usr/pnor/pnorrp.C +++ b/src/usr/pnor/pnorrp.C @@ -46,6 +46,7 @@ #include <config.h> #include "pnor_common.H" #include <hwas/common/hwasCallout.H> +#include <console/consoleif.H> extern trace_desc_t* g_trac_pnor; @@ -1095,6 +1096,7 @@ errlHndl_t PnorRP::readFromDevice( uint64_t i_offset, if( ecc_stat == PNOR::ECC::UNCORRECTABLE ) { TRACFCOMP( g_trac_pnor, "PnorRP::readFromDevice> Uncorrectable ECC error : chip=%d,offset=0x%.X", i_chip, i_offset ); + CONSOLE::displayf( NULL, "ECC error in PNOR flash in section offset 0x%.8X\n", i_offset ); // Need to shutdown here instead of creating an error log // because the bad page could be critical to the regular |