summaryrefslogtreecommitdiffstats
path: root/src/kernel
diff options
context:
space:
mode:
authorPrachi Gupta <pragupta@us.ibm.com>2018-06-21 09:15:52 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2018-06-26 17:10:40 -0400
commitcfc5fb7993fad6ac737340b2dd1a569817dad987 (patch)
tree4866da77a70b04536d55de7c69a88ce2aa838dd8 /src/kernel
parentd406ad362d7f95cef1425216996f08fb5a1c7dca (diff)
downloadtalos-hostboot-cfc5fb7993fad6ac737340b2dd1a569817dad987.tar.gz
talos-hostboot-cfc5fb7993fad6ac737340b2dd1a569817dad987.zip
Save HRMOR in mbox scratch reg for IPC messaging
In order to know where the IPC message of a given node is, we save off the HRMOR of every node in a hw register. Originally, we were saving this information in the core scratch register. Since, the core scratch registers are wiped off when the cores go into the winkle state, therefore, we were writing to the register after we come out of winkle. But, at that point, we ran into race conditions because other nodes could be ahead and try to access the register on a node that is not exactly out of winkle yet. This fixes the problems by using the mbox scratch register rather than the core scratch register because they are saved off even when the cores go into winkle state. Because the registers are preseved, we can set the value prior to cores coming out of winkle, so, we don't run into the race condition where one node is trying to read a value prior to the other one writing the value. Change-Id: I822bfc8defe09cbb418edc5f36a99b7cd41eec88 CQ:SW435271 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/61093 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/kernel')
-rw-r--r--src/kernel/ipc.C1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/kernel/ipc.C b/src/kernel/ipc.C
index 5123d0b94..42eebf92d 100644
--- a/src/kernel/ipc.C
+++ b/src/kernel/ipc.C
@@ -102,6 +102,7 @@ int KernelIpc::updateRemoteIpcAddr(uint64_t i_Node, uint64_t i_RemoteAddr)
{
// update local array entry
rc = 0;
+ printk("IPC ADDR %d = 0x%lx\n", (int)i_Node, i_RemoteAddr);
ipc_data_area.remote_ipc_data_addr[i_Node] =
reinterpret_cast<ipc_data_area_t*>(i_RemoteAddr);
}
OpenPOWER on IntegriCloud