From: Leif Lindholm <leif.lindholm@linaro.org>
To: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: edk2-devel@lists.01.org
Subject: Re: [PATCH 1/2] ArmPkg/ArmMmuLib ARM: add missing support for non-shareable cached mappings
Date: Fri, 11 Jan 2019 18:04:51 +0000 [thread overview]
Message-ID: <20190111180451.pcvkknshh6gbmlyx@bivouac.eciton.net> (raw)
In-Reply-To: <20190104180432.24480-1-ard.biesheuvel@linaro.org>
On Fri, Jan 04, 2019 at 07:04:31PM +0100, Ard Biesheuvel wrote:
> We introduced support for non-shareable cached mappings to the AArch64
> version of ArmMmuLib a while ago, but the ARM version was left behind,
> so fix it.
Consider adding a reference to the corresponding aarch64 commit
(829633e3a82)?
Either way:
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
> Contributed-under: TianoCore Contribution Agreement 1.1
> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
> ---
> ArmPkg/Library/ArmMmuLib/Arm/ArmMmuLibCore.c | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
>
> diff --git a/ArmPkg/Library/ArmMmuLib/Arm/ArmMmuLibCore.c b/ArmPkg/Library/ArmMmuLib/Arm/ArmMmuLibCore.c
> index 889b22867dc7..b237321a8d8b 100644
> --- a/ArmPkg/Library/ArmMmuLib/Arm/ArmMmuLibCore.c
> +++ b/ArmPkg/Library/ArmMmuLib/Arm/ArmMmuLibCore.c
> @@ -135,6 +135,11 @@ PopulateLevel2PageTable (
> case ARM_MEMORY_REGION_ATTRIBUTE_NONSECURE_WRITE_BACK:
> PageAttributes = TT_DESCRIPTOR_PAGE_WRITE_BACK;
> break;
> + case ARM_MEMORY_REGION_ATTRIBUTE_WRITE_BACK_NONSHAREABLE:
> + case ARM_MEMORY_REGION_ATTRIBUTE_NONSECURE_WRITE_BACK_NONSHAREABLE:
> + PageAttributes = TT_DESCRIPTOR_PAGE_WRITE_BACK;
> + PageAttributes &= ~TT_DESCRIPTOR_PAGE_S_SHARED;
> + break;
> case ARM_MEMORY_REGION_ATTRIBUTE_WRITE_THROUGH:
> case ARM_MEMORY_REGION_ATTRIBUTE_NONSECURE_WRITE_THROUGH:
> PageAttributes = TT_DESCRIPTOR_PAGE_WRITE_THROUGH;
> @@ -239,6 +244,10 @@ FillTranslationTable (
> case ARM_MEMORY_REGION_ATTRIBUTE_WRITE_BACK:
> Attributes = TT_DESCRIPTOR_SECTION_WRITE_BACK(0);
> break;
> + case ARM_MEMORY_REGION_ATTRIBUTE_WRITE_BACK_NONSHAREABLE:
> + Attributes = TT_DESCRIPTOR_SECTION_WRITE_BACK(0);
> + Attributes &= ~TT_DESCRIPTOR_SECTION_S_SHARED;
> + break;
> case ARM_MEMORY_REGION_ATTRIBUTE_WRITE_THROUGH:
> Attributes = TT_DESCRIPTOR_SECTION_WRITE_THROUGH(0);
> break;
> @@ -251,6 +260,10 @@ FillTranslationTable (
> case ARM_MEMORY_REGION_ATTRIBUTE_NONSECURE_WRITE_BACK:
> Attributes = TT_DESCRIPTOR_SECTION_WRITE_BACK(1);
> break;
> + case ARM_MEMORY_REGION_ATTRIBUTE_NONSECURE_WRITE_BACK_NONSHAREABLE:
> + Attributes = TT_DESCRIPTOR_SECTION_WRITE_BACK(1);
> + Attributes &= ~TT_DESCRIPTOR_SECTION_S_SHARED;
> + break;
> case ARM_MEMORY_REGION_ATTRIBUTE_NONSECURE_WRITE_THROUGH:
> Attributes = TT_DESCRIPTOR_SECTION_WRITE_THROUGH(1);
> break;
> --
> 2.17.1
>
prev parent reply other threads:[~2019-01-11 18:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-04 18:04 [PATCH 1/2] ArmPkg/ArmMmuLib ARM: add missing support for non-shareable cached mappings Ard Biesheuvel
2019-01-04 18:04 ` [PATCH 2/2] ArmPkg/ArmMmuLib ARM: fix thinko in second level page table handling Ard Biesheuvel
2019-01-11 18:07 ` Leif Lindholm
2019-01-13 16:36 ` Ard Biesheuvel
2019-01-11 18:04 ` Leif Lindholm [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=20190111180451.pcvkknshh6gbmlyx@bivouac.eciton.net \
--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