public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Ard Biesheuvel <ard.biesheuvel@linaro.org>
To: Sughosh Ganu <sughosh.ganu@arm.com>
Cc: "edk2-devel@lists.01.org" <edk2-devel@lists.01.org>,
	Leif Lindholm <leif.lindholm@linaro.org>
Subject: Re: [PATCH edk2-platforms v2 3/3] Platform/ARM/SgiPkg: Enable MmCommunication module on the platform
Date: Thu, 20 Dec 2018 09:52:46 +0100	[thread overview]
Message-ID: <CAKv+Gu8LWqXqZkXW7FQUE68j_EoQujPGSomjWYy_6i-2KhxELQ@mail.gmail.com> (raw)
In-Reply-To: <1545284878-21417-4-git-send-email-sughosh.ganu@arm.com>

On Thu, 20 Dec 2018 at 06:48, Sughosh Ganu <sughosh.ganu@arm.com> wrote:
>
> 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 | 18 ++++++++++++++++++
>  Platform/ARM/SgiPkg/SgiPlatform.fdf |  5 +++++
>  2 files changed, 23 insertions(+)
>
> diff --git a/Platform/ARM/SgiPkg/SgiPlatform.dsc b/Platform/ARM/SgiPkg/SgiPlatform.dsc
> index 7995c7d132d6..948b75631a00 100644
> --- a/Platform/ARM/SgiPkg/SgiPlatform.dsc
> +++ b/Platform/ARM/SgiPkg/SgiPlatform.dsc
> @@ -197,6 +197,20 @@ [PcdsFixedAtBuild.common]
>    gArmSgiTokenSpaceGuid.PcdVirtioNetSize|0x10000
>    gArmSgiTokenSpaceGuid.PcdVirtioNetInterrupt|204
>
> +!if $(ARM_STANDALONE_MM_ENABLE) == TRUE

Why is this inclusion conditional (here and below)? I was under the
impression that the communicate driver fails gracefully if the secure
standalone MM is absent. If this is not the case, please propose how
to fix the core driver so that it does.

> +  #
> +  # 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
> @@ -331,3 +345,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 80c3412fd4ad..01799de8a0c8 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
>


  reply	other threads:[~2018-12-20  8:52 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-20  5:47 [PATCH edk2-platforms v2 0/3] Platform/ARM/SgiPkg: Enable StandaloneMm on Sgi platforms Sughosh Ganu
2018-12-20  5:47 ` [PATCH edk2-platforms v2 1/3] Platform/ARM/SgiPkg: Build infrastructure for StandaloneMm image Sughosh Ganu
2018-12-20  8:46   ` Ard Biesheuvel
2018-12-20 10:04     ` Sughosh Ganu
2018-12-27  2:58     ` Sughosh Ganu
2018-12-20  5:47 ` [PATCH edk2-platforms v2 2/3] Platform/ARM/SgiPkg: Setup memory buffers for MmCommunicate Sughosh Ganu
2018-12-20  5:47 ` [PATCH edk2-platforms v2 3/3] Platform/ARM/SgiPkg: Enable MmCommunication module on the platform Sughosh Ganu
2018-12-20  8:52   ` Ard Biesheuvel [this message]
2018-12-20 10:09     ` Sughosh Ganu

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=CAKv+Gu8LWqXqZkXW7FQUE68j_EoQujPGSomjWYy_6i-2KhxELQ@mail.gmail.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