diff options
author | Dean Sanner <dsanner@us.ibm.com> | 2014-04-14 12:51:31 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2014-04-14 13:11:35 -0500 |
commit | 24c6ac779e4ad663fd997bee7a52a807f3e6beb3 (patch) | |
tree | b655655b90cf317e6f6ef3232aa4669b91e9925f /src/usr/hwpf/plat/fapiPlatAttributeService.C | |
parent | aa79ddfd7c58df63ec0b2b2feb783f4533e31606 (diff) | |
download | blackbird-hostboot-24c6ac779e4ad663fd997bee7a52a807f3e6beb3.tar.gz blackbird-hostboot-24c6ac779e4ad663fd997bee7a52a807f3e6beb3.zip |
Correct BAR calculation in Sapphire mode
Change-Id: Ifdaea94a0253fd17a43133da0d064e97bfc09554
CQ: SW257095
Backport: release-fips810
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/10492
Tested-by: Jenkins Server
Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/hwpf/plat/fapiPlatAttributeService.C')
-rw-r--r-- | src/usr/hwpf/plat/fapiPlatAttributeService.C | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/usr/hwpf/plat/fapiPlatAttributeService.C b/src/usr/hwpf/plat/fapiPlatAttributeService.C index 25e2a50c1..6f4d40042 100644 --- a/src/usr/hwpf/plat/fapiPlatAttributeService.C +++ b/src/usr/hwpf/plat/fapiPlatAttributeService.C @@ -955,9 +955,9 @@ fapi::ReturnCode fapiPlatGetProcPcieBarBaseAddr ( { if(TARGETING::is_sapphire_load()) { - o_pcieBarBase[u][0] = SAPPHIRE_PCIE_BAR0_BASE | + o_pcieBarBase[u][0] = SAPPHIRE_PCIE_BAR0_BASE + (l_pciMem64[u] & PCIE_BAR0_OFFSET_MASK); - o_pcieBarBase[u][1] = SAPPHIRE_PCIE_BAR1_BASE | + o_pcieBarBase[u][1] = SAPPHIRE_PCIE_BAR1_BASE + (l_pciMem32[u] & PCIE_BAR1_OFFSET_MASK); } else @@ -968,7 +968,8 @@ fapi::ReturnCode fapiPlatGetProcPcieBarBaseAddr ( o_pcieBarBase[u][2] = l_phbRegs[u]; - FAPI_DBG( "fapiPlatGetProcPcieBarBaseAddr: Unit %d : %p %p %p", + FAPI_DBG( "fapiPlatGetProcPcieBarBaseAddr: Chip %x Unit %d : %p %p %p", + TARGETING::get_huid(l_pProcTarget), u, o_pcieBarBase[u][0], o_pcieBarBase[u][1], |