public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Ard Biesheuvel <ard.biesheuvel@linaro.org>
To: "Zeng, Star" <star.zeng@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>,
	"Bi, Dandan" <dandan.bi@intel.com>,
	 Andrew Fish <afish@apple.com>,
	"Kinney, Michael D" <michael.d.kinney@intel.com>,
	Leif Lindholm <leif.lindholm@linaro.org>,
	 "edk2-devel@lists.01.org" <edk2-devel@lists.01.org>,
	"Gao, Liming" <liming.gao@intel.com>,
	Matt Sealey <neko@bakuhatsu.net>
Subject: Re: [PATCH v2 3/8] MdeModulePkg/DxeCorePerformanceLib:Track FPDT record in DXE phase
Date: Tue, 22 May 2018 12:43:16 +0200	[thread overview]
Message-ID: <CAKv+Gu8AJ9G3CBXvhjzLSs3AvS8j+WV+aGnf+z3bwOWMP4o36g@mail.gmail.com> (raw)
In-Reply-To: <0C09AFA07DD0434D9E2A0C6AEB0483103BAEE309@shsmsx102.ccr.corp.intel.com>

On 22 May 2018 at 12:38, Zeng, Star <star.zeng@intel.com> wrote:
> I could not recall the whole background.
>
> Let us separate the problem into two parts.
>
> 1. For this special case in DxeCorePerformanceLib, we at least have approach (although just for short term).

I disagree. The approach involves attempting to allocate below 4 GB,
and fall back to allocating elsewhere if that fails.

On X64, the fallback should not exist. If the first allocation fails,
you will end up with an allocation that PEI may not be able to access,
and you will not get any error or warning about this condition.

On other architectures, allocating below 4 GB unnecessarily may be
wasteful, since it uses up 32-bit addressable that we may prefer to
use for DMA, for instance, given that 32-bit DMA is more efficient
even on PCIe systems.

So even if it makes the error go away, I think it is not a solution at all.

> 2. For the general problem about whether introducing new interface (PCD and API, seemingly it needs to be in MdePkg), it depends on whether we agree to add new interface and seems need more time to discuss. If yes, then library/driver could be updated to consume it.
>
> If we agree to add new interface, as current instances of MemoryAllocationLib are very nature by phases (PEI, DXE (Uefi/DxeCore), SMM, etc), but the new interface is just needed in DXE (Uefi/DxeCore) instances, how about adding it in UefiLib?
>

That is a good point, actually. I will look into this.


  reply	other threads:[~2018-05-22 10:43 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-30 13:53 [PATCH v2 0/8] Update EDKII Performance infrastructure based on ACPI FPDT table Dandan Bi
2018-01-30 13:53 ` [PATCH v2 1/8] MdeModulePkg:Add definitions for new Performance infrastructure Dandan Bi
2018-01-31  2:07   ` Zeng, Star
2018-01-30 13:53 ` [PATCH v2 2/8] MdeModulePkg/PeiPerformance:Updated to track FPDT record in PEI phase Dandan Bi
2018-01-30 13:53 ` [PATCH v2 3/8] MdeModulePkg/DxeCorePerformanceLib:Track FPDT record in DXE phase Dandan Bi
2018-05-01 16:26   ` Ard Biesheuvel
2018-05-22  0:33     ` Bi, Dandan
2018-05-22  8:51       ` Ard Biesheuvel
2018-05-22  8:58         ` Zeng, Star
2018-05-22  9:02           ` Ard Biesheuvel
2018-05-22  9:38             ` Zeng, Star
2018-05-22 10:00               ` Laszlo Ersek
2018-05-22 10:38                 ` Zeng, Star
2018-05-22 10:43                   ` Ard Biesheuvel [this message]
2018-05-22 10:00               ` Ard Biesheuvel
2018-01-30 13:53 ` [PATCH v2 4/8] MdeModulePkg/SmmCorePerformanceLib:Track FPDT record in SMM phase Dandan Bi
2018-01-30 13:53 ` [PATCH v2 5/8] MdeModulePkg/FirmwarePerformancePei:Add FPDT records for S3 phase Dandan Bi
2018-01-30 13:53 ` [PATCH v2 6/8] MdeModulePkg/FirmwarePerfDxe:Enhance for new pref infrastructure Dandan Bi
2018-01-30 13:53 ` [PATCH v2 7/8] MdeModulePkg/FirmwarePerfSmm:Enhance " Dandan Bi
2018-01-30 13:53 ` [PATCH v2 8/8] ShellPkg/Dp: Updated to dump perf log based on FPDT table Dandan Bi
2020-04-28  7:45 ` [edk2-devel] [PATCH v2 0/8] Update EDKII Performance infrastructure based on ACPI " boonewang

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+Gu8AJ9G3CBXvhjzLSs3AvS8j+WV+aGnf+z3bwOWMP4o36g@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