From: "Ilias Apalodimas" <ilias.apalodimas@linaro.org>
To: Pierre <pierre.gondois@arm.com>
Cc: devel@edk2.groups.io, Sami.Mujawar@arm.com
Subject: Re: [edk2-devel] [PATCH 2/2 v5] StMMRpmb: Add support for building StandaloneMm image for OP-TEE
Date: Wed, 3 Mar 2021 21:24:39 +0200 [thread overview]
Message-ID: <YD/id2jO+YNq46+V@apalos.home> (raw)
In-Reply-To: <05ede192-6a8f-ec8e-ed97-bfe52c9fc9de@arm.com>
Hi Pierre,
On Wed, Mar 03, 2021 at 10:18:57AM +0000, Pierre wrote:
> Hello Ilias,
>
> I would have some (inlined) remarks about your patch,
>
> Regards,
>
> Pierre
>
> On 3/2/21 3:35 PM, Pierre Gondois wrote:
> > + PLATFORM_NAME = MmStandaloneRpmb
[...]
> >
> > + PLATFORM_GUID = A27A486E-D7B9-4D70-9F37-FED9ABE041A2
> >
> > + PLATFORM_VERSION = 1.0
> >
> > + DSC_SPECIFICATION = 0x00010011
> I think we are at the revision 0x0001001C, cf https://edk2-docs.gitbook.io/edk-ii-dsc-specification/3_edk_ii_dsc_file_format/35_-defines-_section
>
Probably, the paptch has been sitting in my trees for quite some time.
I'll have a look and update it.
> >
> > + OUTPUT_DIRECTORY = Build/$(PLATFORM_NAME)
> >
> > + SUPPORTED_ARCHITECTURES = AARCH64
> > + StandaloneMmCoreEntryPoint|StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/StandaloneMmCoreEntryPoint.inf
[...]
> >
> > + StandaloneMmDriverEntryPoint|MdePkg/Library/StandaloneMmDriverEntryPoint/StandaloneMmDriverEntryPoint.inf
> >
> > +
> >
> > + StandaloneMmMmuLib|ArmPkg/Library/StandaloneMmMmuLib/ArmMmuStandaloneMmLib.inf
> >
> > + CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLibNull/BaseCacheMaintenanceLibNull.inf
> >
> > + PeCoffExtraActionLib|StandaloneMmPkg/Library/StandaloneMmPeCoffExtraActionLib/StandaloneMmPeCoffExtraActionLib.inf
> >
> > + RngLib|MdePkg/Library/BaseRngLibNull/BaseRngLibNull.inf
> >
> > +
> >
> > + SerialPortLib|MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.inf
> >
> > + DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
> It seems in the previous patch you are using some 'DEBUG ()' and 'ASSERT ()
> statements. Wouldn't using BaseDebugLibNull and BaseSerialPortLibNull make
> them useless for DEBUG and RELEASE build ?
There's a reasson for that. So what happens right now is that OP-TEE creates
(and maps) the device(s) StMM can access. In the current case you are
correct, but noone prevents us from mapping the console and in the future
have those ASSERT/DEBUG statements visible.
So I figured it's worth keeping them in there even if they won't (currently)
show up, since they offer some hints to code reading as well.
In fact we do have patches that map the console and intend to upstream them
into OP-TEE at some point (and this was used during development as well).
> >
> > +
> >
> > + #
> >
> > + # It is not possible to prevent the ARM compiler for generic
> > intrinsic functions.
> >
> > + # This library provides the intrinsic functions generate by a given
> > compiler.
> >
> > + # NULL means link this library into all ARM images.
> >
> > + #
> >
> > + NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
> >
> > +
> >
> > +[LibraryClasses.common.MM_STANDALONE]
> >
> > + HobLib|StandaloneMmPkg/Library/StandaloneMmHobLib/StandaloneMmHobLib.inf
> >
> > + MmServicesTableLib|MdePkg/Library/StandaloneMmServicesTableLib/StandaloneMmServicesTableLib.inf
> >
> > + MemoryAllocationLib|StandaloneMmPkg/Library/StandaloneMmMemoryAllocationLib/StandaloneMmMemoryAllocationLib.inf
> >
> > +
> >
> > + IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
> >
> > + OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
> >
> > + PlatformSecureLib|SecurityPkg/Library/PlatformSecureLibNull/PlatformSecureLibNull.inf
> >
> > + SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
> >
> > + TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
> >
> > +################################################################################
> >
> > +#
> >
> > +# Pcd Section - list of all EDK II PCD Entries defined by this Platform
> >
> > +#
> >
> > +################################################################################
> >
> Since this comment is for the PCD section, I think it would be better to
> remove the empty line after the comment and add one at the top of this
> comment.
Sure
[...]
Thanks
/Ilias
next prev parent reply other threads:[~2021-03-03 19:24 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-12 17:34 [PATCH 0/2 v5] Add support for running StandaloneMm as OP-TEE TA Ilias Apalodimas
2021-02-12 17:34 ` [PATCH 1/2 v5] Drivers/OpTeeRpmb: Add an OP-TEE backed RPMB driver Ilias Apalodimas
2021-03-03 10:20 ` [edk2-devel] " PierreGondois
2021-03-03 20:02 ` Ilias Apalodimas
2021-03-05 16:08 ` PierreGondois
2021-03-05 17:58 ` PierreGondois
2021-03-08 23:33 ` Ilias Apalodimas
2021-02-12 17:34 ` [PATCH 2/2 v5] StMMRpmb: Add support for building StandaloneMm image for OP-TEE Ilias Apalodimas
2021-03-03 10:18 ` [edk2-devel] " PierreGondois
2021-03-03 19:24 ` Ilias Apalodimas [this message]
2021-03-05 18:07 ` PierreGondois
2021-03-08 11:16 ` Ilias Apalodimas
2021-03-03 11:32 ` [edk2-devel] [PATCH 0/2 v5] Add support for running StandaloneMm as OP-TEE TA Sami Mujawar
2021-03-08 15:57 ` Leif Lindholm
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=YD/id2jO+YNq46+V@apalos.home \
--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