summaryrefslogtreecommitdiffstats
path: root/src/usr/intr
diff options
context:
space:
mode:
authorThi Tran <thi@us.ibm.com>2018-06-26 15:03:57 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2018-07-12 16:49:35 -0400
commit4c66599e7fd35b64e470a5ac840be8d8fe09aa7c (patch)
treeb5374320a353aaf4176a44a8f2cc56421c4e7f7b /src/usr/intr
parent1d72c0ee82a26faa76ae433fff8a06e0fa15f6fa (diff)
downloadtalos-hostboot-4c66599e7fd35b64e470a5ac840be8d8fe09aa7c.tar.gz
talos-hostboot-4c66599e7fd35b64e470a5ac840be8d8fe09aa7c.zip
Need to add CPU_SPR_HRMOR when calculating HB reserved mem limits.
HB reserved memory start/stop addresses are calculated based on CPU_SPR_HRMOR value in order to handle the case where memory is swapped (because no memory exists behind proc0). Therefore, the calculations of the HB reserved memory ranges must also include the CPU_SPR_HRMOR value or the safety range check will fail. Change-Id: I4145ca58c46b2f2099864dce9347bae5badf0d3f CQ:SW434842 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/62323 Tested-by: Jenkins Server <pfd-jenkins+hostboot@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: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/intr')
-rw-r--r--src/usr/intr/intrrp.C3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/usr/intr/intrrp.C b/src/usr/intr/intrrp.C
index bb6aabff2..d92c27f13 100644
--- a/src/usr/intr/intrrp.C
+++ b/src/usr/intr/intrrp.C
@@ -313,8 +313,7 @@ errlHndl_t IntrRp::_init()
TARGETING::Target * sys = NULL;
TARGETING::targetService().getTopLevelTarget( sys );
assert(sys != NULL);
- uint64_t hrmor_base =
- sys->getAttr<TARGETING::ATTR_HB_HRMOR_NODAL_BASE>();
+ uint64_t hrmor_base = cpu_hrmor_nodal_base();
KernelIpc::ipc_data_area.pir = iv_masterCpu.word;
KernelIpc::ipc_data_area.hrmor_base = hrmor_base;
OpenPOWER on IntegriCloud