public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Jeff Brasen" <jbrasen@nvidia.com>
To: <devel@edk2.groups.io>
Cc: <jian.j.wang@intel.com>, <gaoliming@byosoft.com.cn>,
	<dandan.bi@intel.com>, <zhichao.gao@intel.com>,
	Jeff Brasen <jbrasen@nvidia.com>
Subject: [PATCH 1/2] MdeModulePkg/DxeCorePerformanceLib: Install BPDT in config table
Date: Thu, 29 Jun 2023 21:09:02 +0000	[thread overview]
Message-ID: <7e7a27f5d68b101737396049b9983e4ce62e40f2.1688072687.git.jbrasen@nvidia.com> (raw)
In-Reply-To: <cover.1688072687.git.jbrasen@nvidia.com>

Install the performance table into the UEFI configuration table.
This will allow the shell application to get this if the system
is not using ACPI.

Signed-off-by: Jeff Brasen <jbrasen@nvidia.com>
---
 .../Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c       | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c b/MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c
index ef14bc0738..e72b04794a 100644
--- a/MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c
+++ b/MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c
@@ -1403,6 +1403,8 @@ ReportFpdtRecordBuffer (
         &BPDTAddr,
         sizeof (UINT64)
         );
+      Status = gBS->InstallConfigurationTable (&gEdkiiFpdtExtendedFirmwarePerformanceGuid, (VOID *)BPDTAddr);
+      ASSERT_EFI_ERROR (Status);
     }
 
     //
-- 
2.25.1


  reply	other threads:[~2023-06-29 21:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-29 21:09 [PATCH 0/2] dp command without ACPI Jeff Brasen
2023-06-29 21:09 ` Jeff Brasen [this message]
2023-06-29 21:09 ` [PATCH 2/2] ShellPkg/Dp: Allow dp command to work " Jeff Brasen
2023-06-30  1:35 ` 回复: [PATCH 0/2] dp command " gaoliming

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=7e7a27f5d68b101737396049b9983e4ce62e40f2.1688072687.git.jbrasen@nvidia.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