diff options
author | Mike Baiocchi <mbaiocch@us.ibm.com> | 2017-07-07 12:06:09 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2017-07-19 13:50:21 -0400 |
commit | 3eabaf7eb4a10ab8b3860de26860258af48d00aa (patch) | |
tree | 7438b26c573b64cbfc9dd19153d78477800f0891 /src/usr/mbox/mailboxsp.C | |
parent | c0f528fbaf2532d8cfaf51165fe4f7055a11f24a (diff) | |
download | talos-hostboot-3eabaf7eb4a10ab8b3860de26860258af48d00aa.tar.gz talos-hostboot-3eabaf7eb4a10ab8b3860de26860258af48d00aa.zip |
Secureboot: Add IPL calls to Open/Close Memory Regions via SBE
This commit adds the open/close SBE memory region calls
throughout the IPL, as needed. The underlying SBE calls are still
commented out, however, as we await SBE support.
Change-Id: I87685dca95e5cb7d10997eb6eb414a1927862d64
RTC:145686
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/42873
Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Stephen M. Cprek <smcprek@us.ibm.com>
Reviewed-by: Michael Baiocchi <mbaiocch@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: Marshall J. Wilks <mjwilks@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/mbox/mailboxsp.C')
-rw-r--r-- | src/usr/mbox/mailboxsp.C | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/usr/mbox/mailboxsp.C b/src/usr/mbox/mailboxsp.C index e3a2c2dbf..4a968ed27 100644 --- a/src/usr/mbox/mailboxsp.C +++ b/src/usr/mbox/mailboxsp.C @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2012,2016 */ +/* Contributors Listed Below - COPYRIGHT 2012,2017 */ /* [+] Google Inc. */ /* [+] International Business Machines Corp. */ /* */ @@ -48,6 +48,7 @@ #include <errno.h> #include <kernel/console.H> #include <arch/pirformat.H> +#include <sbeio/sbeioif.H> // Local functions namespace MBOX @@ -152,6 +153,16 @@ errlHndl_t MailboxSp::_init() // provider task_create(MailboxSp::msg_handler, NULL); + // Tell SBE to create Read-Write Memory Region for the DMA Buffer + err = SBEIO::openUnsecureMemRegion( + iv_dmaBuffer.toPhysAddr(iv_dmaBuffer.getDmaBufferHead()), + VmmManager::MBOX_DMA_SIZE, + true); //true=Read-Write + if (err) + { + return err; + } + if(mbxComm) { //TODO RTC 150260 Move after init after mask issues resolved |