From: Laszlo Ersek <lersek@redhat.com>
To: "Marvin Häuser" <Marvin.Haeuser@outlook.com>,
"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Cc: "eric.dong@intel.com" <eric.dong@intel.com>
Subject: Re: [PATCH] UefiCpuPkg/CpuMpPei: Correct BIST PPI logic.
Date: Mon, 23 Jul 2018 10:28:14 +0200 [thread overview]
Message-ID: <e769123c-a032-e9c4-c368-9d95f61ba6e2@redhat.com> (raw)
In-Reply-To: <VI1PR0801MB1790005CF102AF660484BBC780500@VI1PR0801MB1790.eurprd08.prod.outlook.com>
On 07/22/18 00:17, Marvin Häuser wrote:
> Currently, the SecPlatformInformation2 PPI is installed when either
> there is none present or the present one doesn't lack data.
> Update the logic to only install the SecPlatformInformation2 PPI when
> it's not already installed so that an up-to-date PPI remains the only
> one and unchanged.
>
> Contributed-under: TianoCore Contribution Agreement 1.1
> Signed-off-by: Marvin Haeuser <Marvin.Haeuser@outlook.com>
> ---
> UefiCpuPkg/CpuMpPei/CpuBist.c | 22 +++++++++++---------
> 1 file changed, 12 insertions(+), 10 deletions(-)
>
> diff --git a/UefiCpuPkg/CpuMpPei/CpuBist.c b/UefiCpuPkg/CpuMpPei/CpuBist.c
> index 20728525e2d9..5312d9f01dc8 100644
> --- a/UefiCpuPkg/CpuMpPei/CpuBist.c
> +++ b/UefiCpuPkg/CpuMpPei/CpuBist.c
> @@ -275,18 +275,20 @@ CollectBistDataFromPpi (
> (UINTN) BistInformationSize
> );
>
> - if (SecPlatformInformation2 != NULL && NumberOfData < NumberOfProcessors) {
> - //
> - // Reinstall SecPlatformInformation2 PPI to include new BIST information
> - //
> - Status = PeiServicesReInstallPpi (
> - SecInformationDescriptor,
> - &mPeiSecPlatformInformation2Ppi
> - );
> - ASSERT_EFI_ERROR (Status);
> + if (SecPlatformInformation2 != NULL) {
> + if (NumberOfData < NumberOfProcessors) {
> + //
> + // Reinstall SecPlatformInformation2 PPI to include new BIST information
> + //
> + Status = PeiServicesReInstallPpi (
> + SecInformationDescriptor,
> + &mPeiSecPlatformInformation2Ppi
> + );
> + ASSERT_EFI_ERROR (Status);
> + }
> } else {
> //
> - // Install SecPlatformInformation2 PPI to include new BIST information
> + // Install SecPlatformInformation2 PPI
> //
> Status = PeiServicesInstallPpi (&mPeiSecPlatformInformation2Ppi);
> ASSERT_EFI_ERROR(Status);
>
Looks good to me:
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
but Eric should decide.
Thanks
Laszlo
next prev parent reply other threads:[~2018-07-23 8:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-21 22:17 [PATCH] UefiCpuPkg/CpuMpPei: Correct BIST PPI logic Marvin Häuser
2018-07-23 8:28 ` Laszlo Ersek [this message]
2018-07-24 0:45 ` Dong, Eric
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=e769123c-a032-e9c4-c368-9d95f61ba6e2@redhat.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