Skip to content

Commit

Permalink
Fix misleading trace output for BPM attribute overrides
Browse files Browse the repository at this point in the history
The traces would indicate that the SKIP attribute override was enabled
in some circumstances when it wasn't. This could lead to confusion about
why BPM updates didn't occur.

Change-Id: Ib577d5fe322266b300f622e9c9095e36dc69c5d1
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/83122
Reviewed-by: Christian R Geddes <crgeddes@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>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Roland Veloz <rveloz@us.ibm.com>
Reviewed-by: Daniel M Crowell <dcrowell@us.ibm.com>
  • Loading branch information
MRaybuck authored and dcrowell77 committed Sep 10, 2019
1 parent f88b6bc commit 25e1157
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 additions & 6 deletions src/usr/isteps/nvdimm/bpm_update.C
Expand Up @@ -969,9 +969,18 @@ errlHndl_t Bpm::runUpdate(BpmFirmwareLidImage i_fwImage,
}
else
{
TRACFCOMP(g_trac_bpm, INFO_MRK"Bpm::runUpdate(): "
"ATTR_BPM_UPDATE_OVERRIDE set to skip firmware "
"portion of BPM updates. Skipping Firmware Update...");
if (firmwareOverrideFlag == TARGETING::BPM_UPDATE_BEHAVIOR_SKIP_FW)
{
TRACFCOMP(g_trac_bpm, INFO_MRK"Bpm::runUpdate(): "
"ATTR_BPM_UPDATE_OVERRIDE set to skip firmware "
"portion of BPM updates. Skipping Firmware Update...");
}
else
{
TRACFCOMP(g_trac_bpm, INFO_MRK"Bpm::runUpdate(): "
"Firmware Data on BPM already up-to-date. "
"Skipping Firmware Update...");
}
}

uint16_t configOverrideFlag = (updateOverride & 0x00FF);
Expand All @@ -993,9 +1002,18 @@ errlHndl_t Bpm::runUpdate(BpmFirmwareLidImage i_fwImage,
}
else
{
TRACFCOMP(g_trac_bpm, INFO_MRK"Bpm::runUpdate(): "
"ATTR_BPM_UPDATE_OVERRIDE set to skip config "
"portion of BPM updates. Skipping Config Update...");
if (configOverrideFlag == TARGETING::BPM_UPDATE_BEHAVIOR_SKIP_CONFIG)
{
TRACFCOMP(g_trac_bpm, INFO_MRK"Bpm::runUpdate(): "
"ATTR_BPM_UPDATE_OVERRIDE set to skip config "
"portion of BPM updates. Skipping Config Update...");
}
else
{
TRACFCOMP(g_trac_bpm, INFO_MRK"Bpm::runUpdate(): "
"Configuration Data on BPM already up-to-date. "
"Skipping Config Update...");
}
}


Expand Down

0 comments on commit 25e1157

Please sign in to comment.