public inbox for linux-efi@vger.kernel.org
 help / color / mirror / Atom feed
From: Tyler Baicar <tbaicar@codeaurora.org>
To: Ard Biesheuvel <ard.biesheuvel@linaro.org>,
	James Morse <james.morse@arm.com>,
	AKASHI Takahiro <takahiro.akashi@linaro.org>
Cc: linux-efi@vger.kernel.org,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Jeff Hugo <jhugo@codeaurora.org>,
	Sameer Goel <sgoel@codeaurora.org>,
	Timur Tabi <timur@codeaurora.org>
Subject: Re: [PATCH 2/2] efi/esrt: mark ESRT memory region as nomap
Date: Mon, 26 Feb 2018 10:06:11 -0500	[thread overview]
Message-ID: <9e3fa182-0635-108f-590b-6f1966bdabe0@codeaurora.org> (raw)
In-Reply-To: <CAKv+Gu8bYzctzXKdYVDUDte=KoCPS1bzVoA6JYmidbc0ZrcZ+A@mail.gmail.com>

Hello Ard,


On 2/24/2018 3:03 AM, Ard Biesheuvel wrote:
> Hi Tyler,
>
> On 23 February 2018 at 19:42, Tyler Baicar <tbaicar@codeaurora.org> wrote:
>> The ESRT memory region is being exposed as System RAM in /proc/iomem
>> which is wrong because it cannot be overwritten. This memory is needed
>> for kexec kernels in order to properly initialize ESRT, so if it is
>> overwritten it will cause ESRT failures in the kexec kernel. Mark this
>> region as nomap so that it is not overwritten.
>>
> This is not the right fix. We should only mark regions NOMAP if it is
> uncertain whether the firmware may have a mapping of the same region
> with mismatched attributes. NOMAP regions punch holes in the linear
> region, increasing its TLB footprint significantly, so we should avoid
> them if we can.
Thanks for the explanation, that makes sense.
> This same issue has come up in relation to mapping ACPI tables after
> kexec. This should simply be a matter of ensuring that all
> memblock_reserve()d region appear as such in /proc/iomem rather than
> as 'System RAM'
Do you know why this memory region would be coming up as System RAM rather than 
reserved if we're
calling memblock_reserve() on it in efi_mem_reserve()?

Thanks,
Tyler

-- 
Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc.
Qualcomm Technologies, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project.

       reply	other threads:[~2018-02-26 15:06 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1519414953-5478-1-git-send-email-tbaicar@codeaurora.org>
     [not found] ` <1519414953-5478-3-git-send-email-tbaicar@codeaurora.org>
     [not found]   ` <CAKv+Gu8bYzctzXKdYVDUDte=KoCPS1bzVoA6JYmidbc0ZrcZ+A@mail.gmail.com>
2018-02-26 15:06     ` Tyler Baicar [this message]
2018-02-26 15:07       ` [PATCH 2/2] efi/esrt: mark ESRT memory region as nomap Ard Biesheuvel
2018-02-28  6:19 ` [PATCH 0/2] ESRT fixes for relocatable kexec'd kernel AKASHI Takahiro
2018-02-28 15:39   ` Jeffrey Hugo
2018-03-01  2:50     ` AKASHI Takahiro
2018-03-01 17:56       ` Tyler Baicar
2018-03-02  5:53         ` AKASHI Takahiro
2018-03-02 13:27           ` Tyler Baicar
2018-03-06  9:00             ` AKASHI Takahiro
2018-03-07 19:01               ` Tyler Baicar
2018-03-07 19:55               ` Ard Biesheuvel
2018-03-08 10:25                 ` AKASHI Takahiro
     [not found] ` <1519414953-5478-2-git-send-email-tbaicar@codeaurora.org>
     [not found]   ` <20180224072054.GA3264@dhcp-128-65.nay.redhat.com>
2018-03-08 16:11     ` [PATCH 1/2] efi/esrt: fix unsupported version initialization failure Tyler Baicar
2018-03-08 18:00       ` Ard Biesheuvel
2018-03-08 18:15         ` Ard Biesheuvel
2018-03-08 18:34           ` Ard Biesheuvel

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-all 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=9e3fa182-0635-108f-590b-6f1966bdabe0@codeaurora.org \
    --to=tbaicar@codeaurora.org \
    --cc=ard.biesheuvel@linaro.org \
    --cc=james.morse@arm.com \
    --cc=jhugo@codeaurora.org \
    --cc=linux-efi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sgoel@codeaurora.org \
    --cc=takahiro.akashi@linaro.org \
    --cc=timur@codeaurora.org \
    /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