From: Ard Biesheuvel <ard.biesheuvel@linaro.org>
To: Bhupesh Sharma <bhupesh.sharma@nxp.com>
Cc: Laszlo Ersek <lersek@redhat.com>,
"edk2-devel@lists.01.org" <edk2-devel@ml01.01.org>,
Sakar Arora <sakar.arora@nxp.com>
Subject: Re: Exporting discontiguous System Memory to EFI STUB
Date: Wed, 21 Sep 2016 12:36:33 +0100 [thread overview]
Message-ID: <CAKv+Gu8MSaA54S+kC8zQt5juftNH=LG-kPMtizmz=-RgwzvNfw@mail.gmail.com> (raw)
In-Reply-To: <AM4PR0401MB2289BBA8A15D6B63E869581888F60@AM4PR0401MB2289.eurprd04.prod.outlook.com>
On 21 September 2016 at 12:32, Bhupesh Sharma <bhupesh.sharma@nxp.com> wrote:
> Hi Ard,
>
>> From: Ard Biesheuvel
>> Sent: Wednesday, September 21, 2016 4:50 PM
>>
[...]
>> I recently fixed a problem in the MMU code where the maximum size of
>> the VA range which is programmed into the MMU registers was based on
>> the initial memory size, and adding memory (or MMIO) ranges later would
>> cause problems.
>>
>> WIth the latest EDK2, adding memory may be done at any time, and will
>> be reflected in the 1:1 mapping in the MMU
>
> Thanks. That looks promising. Can you please share the SHA-ID, commit-ID
> of this *MMU fixup* patch.
>
commit dd82465a9f0f0beff0e4d74c6e3192b966853332
Author: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Date: Fri Sep 9 09:01:56 2016 +0100
ArmPkg/ArmMmuLib: base page table VA size on GCD memory map size
As reported by Eugene, the practice of sizing the address space in the
virtual memory system based on the maximum address in the table passed
to ArmConfigureMmu() is problematic, since it fails to take into account
the fact that the GCD memory space may be extended at a later time, both
for memory and for MMIO. So instead, choose the VA size identical to the
GCD memory map size, which is based on PcdPrePiCpuMemorySize on ARM
systems.
Reported-by: Eugene Cohen <eugene@hp.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Eugene Cohen <eugene@hp.com>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
prev parent reply other threads:[~2016-09-21 11:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <VI1PR04MB2173B4CEB9AB3ED7B4DAEC93F8F00@VI1PR04MB2173.eurprd04.prod.outlook.com>
2016-09-15 8:45 ` Exporting discontiguous System Memory to EFI STUB Sakar Arora
2016-09-15 9:01 ` Laszlo Ersek
2016-09-15 11:31 ` Ard Biesheuvel
2016-09-21 9:10 ` Bhupesh Sharma
2016-09-21 11:17 ` Laszlo Ersek
2016-09-21 11:20 ` Ard Biesheuvel
2016-09-21 11:32 ` Laszlo Ersek
2016-09-21 11:32 ` Bhupesh Sharma
2016-09-21 11:36 ` 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+Gu8MSaA54S+kC8zQt5juftNH=LG-kPMtizmz=-RgwzvNfw@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