Skip to content

Commit

Permalink
Handle partial-bad MCS logic correctly
Browse files Browse the repository at this point in the history
One of the rewritten PG rules was incorrect for modules that have
a MCS marked bad, e.g. Sforza.

Change-Id: I30672b51f81ba74b51ece6e878e462106c090350
CQ: SW457231
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/72010
Reviewed-by: Matt Derksen <mderkse1@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Ilya Smirnov <ismirno@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: Matthew Raybuck <matthew.raybuck@ibm.com>
Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
  • Loading branch information
dcrowell77 authored and wghoffa committed Feb 19, 2019
1 parent b61b496 commit 5c187fc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/include/usr/hwas/common/pgLogic.H
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@ namespace PARTIAL_GOOD
extern const size_t MCS_R1_CU_MASK;
// Rule 2 only applies to chip units 2 & 3
extern const size_t MCS_R2_CU_MASK;
// Rule 3 only applies to chip units 0 & 2
extern const size_t MCS_R3_CU_MASK;
// Rule 4 only applies to chip units 1 & 3
extern const size_t MCS_R4_CU_MASK;

// NPU
// PG/AG Masks
Expand Down Expand Up @@ -611,7 +615,7 @@ namespace PARTIAL_GOOD
MCS_R1_CU_MASK,
NO_SPECIAL_RULE
),
// MCS Rule 1: For chip units 2 and 3. Check MCS23
// MCS Rule 2: For chip units 2 and 3. Check MCS23
new PartialGoodRule
(
{&PREDICATE_NIMBUS},
Expand All @@ -621,7 +625,7 @@ namespace PARTIAL_GOOD
MCS_R2_CU_MASK,
NO_SPECIAL_RULE
),
// MCS Rule 3: For chip units 0 and 1. Check bits in the
// MCS Rule 3: For chip units 0 and 2. Check bits in the
// MCxx entry including specific IOM bit, but
// not the other bits in the partial good
// region.
Expand All @@ -631,10 +635,10 @@ namespace PARTIAL_GOOD
MCS_R3_PG_MASK,
MCS_ALL_GOOD_MASK,
USE_CHIPLET_ID,
MCS_R1_CU_MASK,
MCS_R3_CU_MASK,
NO_SPECIAL_RULE
),
// MCS Rule 4: For chip units 2 and 3. Check bits in the
// MCS Rule 4: For chip units 1 and 3. Check bits in the
// MCxx entry including specific IOM bit, but
// not the other bits in the partial good
// region.
Expand All @@ -644,7 +648,7 @@ namespace PARTIAL_GOOD
MCS_R4_PG_MASK,
MCS_ALL_GOOD_MASK,
USE_CHIPLET_ID,
MCS_R2_CU_MASK,
MCS_R4_CU_MASK,
NO_SPECIAL_RULE
),
}// End of PG Rules for MCS Target
Expand Down
4 changes: 4 additions & 0 deletions src/usr/hwas/common/pgLogic.C
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ namespace PARTIAL_GOOD
const size_t MCS_R1_CU_MASK = 0x0003;
// Rule 2 only applies to chip units 2 & 3
const size_t MCS_R2_CU_MASK = 0x000C;
// Rule 3 only applies to chip units 0 & 2
const size_t MCS_R3_CU_MASK = 0x0005;
// Rule 4 only applies to chip units 1 & 3
const size_t MCS_R4_CU_MASK = 0x000A;

// NPU
// PG/AG Masks
Expand Down

0 comments on commit 5c187fc

Please sign in to comment.