public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Ard Biesheuvel <ard.biesheuvel@linaro.org>
To: Leif Lindholm <leif.lindholm@linaro.org>
Cc: "edk2-devel@lists.01.org" <edk2-devel@lists.01.org>,
	 Vladimir Olovyannikov <vladimir.olovyannikov@broadcom.com>,
	Udit Kumar <udit.kumar@nxp.com>,
	 Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Subject: Re: [PATCH] ArmPlatformPkg/MemoryInitPeiLib: mark primary FV region as boot services data
Date: Wed, 28 Feb 2018 15:03:52 +0000	[thread overview]
Message-ID: <CAKv+Gu-Dc6bJe+3gXt82B8w8psyqLCDzB45tETD+eOKq495rZw@mail.gmail.com> (raw)
In-Reply-To: <20180228150311.h362ivdrpujqfh6w@bivouac.eciton.net>

On 28 February 2018 at 15:03, Leif Lindholm <leif.lindholm@linaro.org> wrote:
> On Tue, Jan 02, 2018 at 03:50:34PM +0000, Ard Biesheuvel wrote:
>> Commit 8ae5fc182941 ("ArmPlatformPkg/MemoryInitPeiLib: don't reserve
>> primary FV in memory") deleted the code that removes the memory covering
>> the primary firmware volume from the memory map. The assumption was that
>> this is no longer necessary now that we no longer expose compression and
>> PE/COFF loader library code from the PrePi module to DXE core.
>>
>> However, the FV is still declared, and so code may attempt to access it
>> anyway, which may cause unexpected results depending on whether the
>> memory has been reused for other purposes in the mean time.
>>
>> So reinstate the code that splits off the resource descriptor HOB that
>> describes the firmware device, but this time, don't mark the memory as
>> unusable, but create a memory allocation HOB that marks the region as
>> boot services data.
>>
>> Contributed-under: TianoCore Contribution Agreement 1.1
>> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
>
> So, this looks like a necessary fix.
> However, there are many line-length violations below.
> And it's not apparent how fixing that would make the code more
> readable.
>
> So rather than asking for a rewrite - could you split the revert
> from the modification?
>

Sure.


      reply	other threads:[~2018-02-28 14:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-02 15:50 [PATCH] ArmPlatformPkg/MemoryInitPeiLib: mark primary FV region as boot services data Ard Biesheuvel
2018-01-02 20:42 ` Vladimir Olovyannikov
2018-01-03  5:09 ` Udit Kumar
2018-01-03  7:44   ` Ard Biesheuvel
2018-02-01 11:41     ` Ard Biesheuvel
2018-02-28 15:03 ` Leif Lindholm
2018-02-28 15:03   ` Ard Biesheuvel [this message]

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+Gu-Dc6bJe+3gXt82B8w8psyqLCDzB45tETD+eOKq495rZw@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