diff options
author | Jaymes Wilks <mjwilks@us.ibm.com> | 2018-08-17 11:24:21 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2018-11-12 09:00:37 -0600 |
commit | 87adeec286402eb648f14d274382fb8b84351467 (patch) | |
tree | 62f3c86906eac47753f862e8147af53a469e5d3f /src/usr/errl/plugins | |
parent | d83a4ee8495c5ad4b823c26b1a09a3c886882494 (diff) | |
download | talos-hostboot-87adeec286402eb648f14d274382fb8b84351467.tar.gz talos-hostboot-87adeec286402eb648f14d274382fb8b84351467.zip |
Support openpower-specific I2C device callouts
This change supports the openpower path for adding I2C device
callouts to error logs. The process works as follows:
- Create an I2C device lookup table on first use of I2C callout
- Use that table to map I2C info to the actual device to callout
- Callout any other I2C devices on the bus with lesser priority
- If no I2C match found, callout the I2C master instead
- If an I2C device was found, callout the I2C master as low
Change-Id: Ib7b248ae60e7e834d6165bbdf4bd9b776ea2421b
RTC:94872
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/64833
Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/errl/plugins')
-rw-r--r-- | src/usr/errl/plugins/errludcallout.H | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/errl/plugins/errludcallout.H b/src/usr/errl/plugins/errludcallout.H index f5ef563b7..e8bb364e9 100644 --- a/src/usr/errl/plugins/errludcallout.H +++ b/src/usr/errl/plugins/errludcallout.H @@ -222,13 +222,13 @@ case HWAS::_type: i_parser.PrintString( "Bus Type", #_type); break; } case HWAS::I2C_DEVICE_CALLOUT: { - i_parser.PrintString( "Callout type", "I2c Device Callout"); + i_parser.PrintString( "Callout type", "I2C Device Callout"); i_parser.PrintNumber( "Engine","0x%.2x", pData->engine ); i_parser.PrintNumber( "Port","0x%.2x", pData->port ); i_parser.PrintNumber( "DevAddr","0x%.2x", pData->address ); uint8_t *l_ptr = reinterpret_cast<uint8_t *>(pData+1); - printEntityPath(l_ptr, i_parser, "Target"); + printEntityPath(l_ptr, i_parser, "I2C Master"); break; // I2C_DEVICE_CALLOUT } |