Skip to content

Commit

Permalink
Change port sorting for memdiags subtest insertion to be in order
Browse files Browse the repository at this point in the history
Change-Id: I58d1427942e5a2d6397c68c4bf2d9d27d34438b7
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35645
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Reviewed-by: STEPHEN GLANCY <sglancy@us.ibm.com>
Reviewed-by: Louis Stermole <stermole@us.ibm.com>
Reviewed-by: Brian R. Silver <bsilver@us.ibm.com>
Reviewed-by: JACOB L. HARVEY <jlharvey@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35663
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
  • Loading branch information
aamarin authored and wghoffa committed Feb 1, 2017
1 parent b14f1ac commit e2f9771
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/import/chips/p9/procedures/hwp/memory/lib/mcbist/memdiags.C
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
/* Contributors Listed Below - COPYRIGHT 2016 */
/* Contributors Listed Below - COPYRIGHT 2016,2017 */
/* [+] International Business Machines Corp. */
/* */
/* */
Expand Down Expand Up @@ -253,7 +253,7 @@ fapi2::ReturnCode operation<TARGET_TYPE_MCBIST>::multi_port_init()

// Deterimine which ports are functional and whether we can broadcast to them
// TK on the broadcast BRS
// Disable braodcast mode - disabled by default
// Disable broadcast mode - disabled by default

// We need to do three things here. One is to create a subtest which starts at start address and runs to
// the end of the port. Next, create subtests to go from the start of the next port to the end of the
Expand All @@ -263,8 +263,8 @@ fapi2::ReturnCode operation<TARGET_TYPE_MCBIST>::multi_port_init()

// Get the port/DIMM information for the addresses. This is an integral value which allows us to index
// all the DIMM across a controller.
uint64_t l_portdimm_start_address = iv_const.iv_start_address.get_port_dimm();
uint64_t l_portdimm_end_address = iv_const.iv_end_address.get_port_dimm();
const uint64_t l_portdimm_start_address = iv_const.iv_start_address.get_port_dimm();
const uint64_t l_portdimm_end_address = iv_const.iv_end_address.get_port_dimm();

FAPI_INF("start port/dimm: %d end port/dimm: %d", l_portdimm_start_address, l_portdimm_end_address);

Expand Down Expand Up @@ -341,7 +341,7 @@ fapi2::ReturnCode operation<TARGET_TYPE_MCBIST>::multi_port_init()
uint64_t l_a_portdimm = (a.get_port() << 1) | a.get_dimm();
uint64_t l_b_portdimm = (b.get_port() << 1) | b.get_dimm();

return l_a_portdimm > l_b_portdimm;
return l_a_portdimm < l_b_portdimm;
});

// Initialize the common sections
Expand Down

0 comments on commit e2f9771

Please sign in to comment.