diff options
author | Jaymes Wilks <mjwilks@us.ibm.com> | 2018-06-08 09:00:12 -0500 |
---|---|---|
committer | William G. Hoffa <wghoffa@us.ibm.com> | 2018-06-21 15:52:02 -0400 |
commit | 24f3312ea1d3d45feca870c7c919bcbd69ef0ff4 (patch) | |
tree | 120b1a9a38c0002f33de17d070cce41070c6c2f0 /src/usr/isteps | |
parent | ccf2f3445e15a93f06528c5f077c34e5abce548b (diff) | |
download | talos-hostboot-24f3312ea1d3d45feca870c7c919bcbd69ef0ff4.tar.gz talos-hostboot-24f3312ea1d3d45feca870c7c919bcbd69ef0ff4.zip |
HRMOR relative addressing for PHyp SP ATTN area dump
This change adds absolute addresses to HDAT for the SP ATTN area
that the PHyp team can now use for predictably locating PHyp
debug information. In addition, Hostboot now populates attributes
with its intended PHyp ATTN area start addresses for FSP to read.
Change-Id: I21fbdf672c37462c87705236973b22f9d1d4eba4
CMVC-Prereq: 1059060
CMVC-Prereq: 1058912
CMVC-Prereq: 1059317
RTC:186439
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/59269
Reviewed-by: Nicholas E. Bofferding <bofferdn@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>
Reviewed-by: Michael Baiocchi <mbaiocch@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: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/usr/isteps')
-rw-r--r-- | src/usr/isteps/istep16/call_host_ipl_complete.C | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/usr/isteps/istep16/call_host_ipl_complete.C b/src/usr/isteps/istep16/call_host_ipl_complete.C index a96703191..1d2f711a7 100644 --- a/src/usr/isteps/istep16/call_host_ipl_complete.C +++ b/src/usr/isteps/istep16/call_host_ipl_complete.C @@ -51,6 +51,10 @@ #include <ipmi/ipmisensor.H> #endif +#include <vmmconst.h> +#include <targeting/targplatutil.H> +#include <secureboot/service.H> + using namespace ERRORLOG; using namespace TARGETING; using namespace ISTEP; @@ -282,6 +286,22 @@ void* call_host_ipl_complete (void *io_pArgs) break; } + // populate PHYP ATTN Area Attributes with values + if ( INITSERVICE::spBaseServicesEnabled() && is_phyp_load()) + { + // calculate absolute address for PHYP SP ATTN areas + auto l_abs = SECUREBOOT::calcSpAttnAreaStart(); + + auto spAttnArea1Addr = l_abs; + auto spAttnArea2Addr = l_abs + PHYP_ATTN_AREA_1_SIZE; + + auto l_nodeTgt = TARGETING::UTIL::getCurrentNodeTarget(); + + l_nodeTgt->setAttr<ATTR_ATTN_AREA_1_ADDR>(spAttnArea1Addr); + l_nodeTgt->setAttr<ATTR_ATTN_AREA_2_ADDR>(spAttnArea2Addr); + TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace, INFO_MRK"Set attributes for PHYP ATTN areas. ATTN Area 1: 0x%.16llX ATTN Area 2: 0x%.16llX", spAttnArea1Addr, spAttnArea2Addr); + } + // Sync attributes to Fsp l_err = syncAllAttributesToFsp(); |