From: Sughosh Ganu <sughosh.ganu@arm.com>
To: edk2-devel@lists.01.org,
Ard Biesheuvel <ard.biesheuvel@linaro.org>,
Leif Lindholm <leif.lindholm@linaro.org>
Subject: [PATCH edk2-platforms 3/3] Platform/ARM/SgiPkg: Enable MmCommunication module on the platform
Date: Thu, 13 Dec 2018 17:16:09 +0530 [thread overview]
Message-ID: <1544701569-13334-4-git-send-email-sughosh.ganu@arm.com> (raw)
In-Reply-To: <1544701569-13334-1-git-send-email-sughosh.ganu@arm.com>
The ArmMmCommunication module is used for communication between
non-secure and secure world using Arm's Management Mode
Specification. Enable this module on Sgi platforms. This would be used
subsequently by the RAS and SecureBoot features, support for which
is to be added on the platform..
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Sughosh Ganu <sughosh.ganu@arm.com>
---
Platform/ARM/SgiPkg/SgiPlatform.dsc | 20 ++++++++++++++++++++
Platform/ARM/SgiPkg/SgiPlatform.fdf | 5 +++++
2 files changed, 25 insertions(+)
diff --git a/Platform/ARM/SgiPkg/SgiPlatform.dsc b/Platform/ARM/SgiPkg/SgiPlatform.dsc
index 19d2ac3a656a..44f769947d53 100644
--- a/Platform/ARM/SgiPkg/SgiPlatform.dsc
+++ b/Platform/ARM/SgiPkg/SgiPlatform.dsc
@@ -185,6 +185,22 @@ [PcdsFixedAtBuild.common]
# Ethernet
gEmbeddedTokenSpaceGuid.PcdLan91xDxeBaseAddress|0x18000000
+!if $(ARM_STANDALONE_MM_ENABLE) == TRUE
+ #
+ # Set the base address and size of the buffer used
+ # for communication between the Normal world edk2
+ # with StandaloneMm image at S-EL0 through MM_COMMUNICATE.
+ # This buffer gets allocated in ATF and since we do not have
+ # a mechanism currently to communicate the base address and
+ # size of this buffer from ATF, hard-code it here
+ #
+
+ ## MM Communicate
+ gArmTokenSpaceGuid.PcdMmBufferBase|0xFF600000
+ gArmTokenSpaceGuid.PcdMmBufferSize|0x10000
+
+!endif
+
################################################################################
#
# Components Section - list of all EDK II Modules needed by this Platform
@@ -316,3 +332,7 @@ [Components.common]
# SATA Controller
#
MdeModulePkg/Bus/Pci/SataControllerDxe/SataControllerDxe.inf
+
+!if $(ARM_STANDALONE_MM_ENABLE) == TRUE
+ ArmPkg/Drivers/MmCommunicationDxe/MmCommunication.inf
+!endif
diff --git a/Platform/ARM/SgiPkg/SgiPlatform.fdf b/Platform/ARM/SgiPkg/SgiPlatform.fdf
index 9c0ec1fa43a6..4145bc50ea04 100644
--- a/Platform/ARM/SgiPkg/SgiPlatform.fdf
+++ b/Platform/ARM/SgiPkg/SgiPlatform.fdf
@@ -169,6 +169,11 @@ [FV.FvMain]
#
INF ShellPkg/Application/Shell/Shell.inf
+!if $(ARM_STANDALONE_MM_ENABLE) == TRUE
+ # MM Communicate
+ INF ArmPkg/Drivers/MmCommunicationDxe/MmCommunication.inf
+!endif
+
#
# Platform driver
#
--
2.7.4
prev parent reply other threads:[~2018-12-13 11:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-13 11:46 [PATCH edk2-platforms 0/3] Platform/ARM/SgiPkg: Enable StandaloneMm on Sgi platforms Sughosh Ganu
2018-12-13 11:46 ` [PATCH edk2-platforms 1/3] Platform/ARM/SgiPkg: Build infrastructure for StandaloneMm image Sughosh Ganu
2018-12-13 11:46 ` [PATCH edk2-platforms 2/3] Platform/ARM/SgiPkg: Setup memory buffers for MmCommunicate Sughosh Ganu
2018-12-13 11:46 ` Sughosh Ganu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1544701569-13334-4-git-send-email-sughosh.ganu@arm.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox