diff options
author | Bill Hoffa <wghoffa@us.ibm.com> | 2018-01-09 08:16:44 -0600 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2018-01-25 17:44:20 -0500 |
commit | cb444552aebafa54ceb0417c12d61cd48fbc65e0 (patch) | |
tree | 0668b3062d19ceea3cf3ca626a5a5fcbda1acd1d /src/kernel/workitem.C | |
parent | de1c2d1d9e39215b8c7012a0dbfde029de6bec2d (diff) | |
download | talos-hostboot-cb444552aebafa54ceb0417c12d61cd48fbc65e0.tar.gz talos-hostboot-cb444552aebafa54ceb0417c12d61cd48fbc65e0.zip |
Multi-Drawer (IPC) Interrupt/Messaging Support
- Use doorbells instead of IPIs (no IPI support
using LSI interupts in the XIVE intr architecture)
- New message type from kernel to userspace so the
kernel can notify the HB userspace Interrupt
Resource Provider (INTRP) that an IPC message was
sent to the particular HB instance (in P8 this
happened automatically as that was part of the
IPI architecture).
- Re-enable testcase that validates that an IPC
message can be successfully sent.
Change-Id: Ic846f8dca45217205ed61d8381a573e995cb16f2
RTC: 150861
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/52004
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>
Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Prachi Gupta <pragupta@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/kernel/workitem.C')
-rw-r--r-- | src/kernel/workitem.C | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/kernel/workitem.C b/src/kernel/workitem.C index a883cdb8f..a66908514 100644 --- a/src/kernel/workitem.C +++ b/src/kernel/workitem.C @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2016 */ +/* Contributors Listed Below - COPYRIGHT 2016,2018 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -41,10 +41,12 @@ void CpuWakeupDoorbellWorkItem::operator() (void) return; } -/*TODO RTC 150861 -void IpcDoorbellWorkItem::operator() (void) +void IPCDoorbellWorkItem::operator() (void) { - //Decide what needs to be done when the Ipc Doorbell is received - // (if anything) + size_t pir = getPIR(); + printk("IPC msg pir %ld done\n", pir); + //Send message tot he intrrp in userspace indicating it has a pending IPC + // message. + InterruptMsgHdlr::sendIpcMsg(pir); + return; } -**/ |