Skip to content

Commit

Permalink
p9_mss_setup_bars - Updating Channel ID program value condition
Browse files Browse the repository at this point in the history
Program odd port (port1) channel ID to empty even port (port0)
only if port1 is in a group of 2.

Change-Id: I2bc44216f5137ae00f7b10f784a0d539dff19215
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35977
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Reviewed-by: Dean Sanner <dsanner@us.ibm.com>
Reviewed-by: Thi N. Tran <thi@us.ibm.com>
Dev-Ready: Thi N. Tran <thi@us.ibm.com>
Tested-by: Thi N. Tran <thi@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35994
Reviewed-by: Hostboot Team <hostboot@us.ibm.com>
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: Daniel M. Crowell <dcrowell@us.ibm.com>
  • Loading branch information
ibmthi authored and dcrowell77 committed Feb 7, 2017
1 parent 31cfb8c commit 39922df
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/import/chips/p9/procedures/hwp/nest/p9_mss_setup_bars.C
Expand Up @@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
/* Contributors Listed Below - COPYRIGHT 2015,2016 */
/* Contributors Listed Below - COPYRIGHT 2015,2017 */
/* [+] International Business Machines Corp. */
/* */
/* */
Expand Down Expand Up @@ -597,7 +597,7 @@ fapi2::ReturnCode getBarData(const mcsPortGroupInfo_t i_portInfo[],
o_mcsBarData.MCFGPMA_HOLE_valid[ii] = 1;
o_mcsBarData.MCFGPMA_HOLE_LOWER_addr[ii] = i_portInfo[1].altBaseAddr[ii];
o_mcsBarData.MCFGPMA_HOLE_UPPER_addr[ii] =
i_portInfo[0].altBaseAddr[ii] + i_portInfo[1].altMemSize[ii];
i_portInfo[1].altBaseAddr[ii] + i_portInfo[1].altMemSize[ii];
}
else
{
Expand Down Expand Up @@ -802,9 +802,10 @@ fapi2::ReturnCode buildMCBarData(
(l_portInfo[1].numPortsInGroup > 0) )
{
// If odd port (port1) has memory and even port (port0) is empty,
// program channel id for port0 (because HW looks for id at this
// and odd port is in a group of 2 (obviously with a cross-MCS port),
// then program channel id for port0 (because HW looks for id at this
// port), zero out port1's group id
if ( (l_portInfo[1].numPortsInGroup > 0) &&
if ( (l_portInfo[1].numPortsInGroup == 2) &&
(l_portInfo[0].numPortsInGroup == 0) )
{
l_portInfo[0].channelId = l_portInfo[1].channelId;
Expand Down

0 comments on commit 39922df

Please sign in to comment.