All of lore.kernel.org
 help / color / mirror / Atom feed
From: Atish Patra <atishp@atishpatra.org>
To: u-boot@lists.denx.de
Subject: [PATCH v5 0/6] RISC-V DT related fixes for reserved memory & UEFI
Date: Tue, 7 Apr 2020 10:35:27 -0700	[thread overview]
Message-ID: <CAOnJCUJ4eiCoFRe4i6VyLy2NLGb0=tukhOaz-sNYn5nOrY4cTg@mail.gmail.com> (raw)
In-Reply-To: <CAKv+Gu9nGnR1j5ipJeWwVtao5j4CEk-tMFJCUBgtocuJXFLKiw@mail.gmail.com>

On Mon, Apr 6, 2020 at 11:51 PM Ard Biesheuvel
<ard.biesheuvel@linaro.org> wrote:
>
> On Tue, 7 Apr 2020 at 08:46, Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
> >
> > On 4/6/20 11:01 PM, Ard Biesheuvel wrote:
> > > On Mon, 6 Apr 2020 at 22:45, Atish Patra <atish.patra@wdc.com> wrote:
> > >>
> > >> This series adds few DT related fixes required for Linux EFI stub to work
> > >> on RISC-V.
> > >>
> > >
> > > I'm not sure how this is supposed to work, since DT reserved memory
> > > regions are not used by EFI. If you want to reserve memory on a UEFI
> > > system, you have to reserve it in the UEFI memory map from firmware.
> > > The DT reserved-memory node is taken into account too late, the
> > > /memreserve/ entries are ignored entirely.
> >
> > Hello Ard,
> >
> > thanks for reviewing.
> >
> > What do you mean by "The DT reserved-memory node is taken into account
> > too late"?
> >
> > Cf. commit 7be64b885a36 ("cmd: bootefi: Parse reserved-memory node from DT")
> >
>
> What I mean is that the EFI stub in Linux uses memory allocation
> functions, expecting the firmware to ensure that those allocations do
> not conflict with memory descriptions and reservations in DT. So if
> the firmware wants to express this redundantly, by passing
> reservations in both reserved-memory and in the EFI memory map, that
> is probably fine.
>
> Also, I must sheepishly admit that I only realize now that this patch
> set is against u-boot not Linux :-)
>
:)

> So if fixed reserved-memory regions are only being used to seed the
> reserved regions in the EFI memory map, you can safely ignore me.

Yeah. That's the purpose. Having reserved memory nodes in the final DT
used by linux
also ensures that proper Linux adds a reserved memory block or removes
it from memblock
entries depending on "no-map" property.

> Apologies for the noise.



-- 
Regards,
Atish

  reply	other threads:[~2020-04-07 17:35 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-06 20:44 [PATCH v5 0/6] RISC-V DT related fixes for reserved memory & UEFI Atish Patra
2020-04-06 20:44 ` [PATCH v5 3/6] riscv: Provide a mechanism to fix DT for reserved memory Atish Patra
2020-04-06 20:44 ` [PATCH v5 5/6] riscv: Copy the reserved-memory nodes to final DT Atish Patra
2020-04-06 20:44 ` [PATCH v5 6/6] riscv: Move all fdt fixups together Atish Patra
2020-04-06 21:01 ` [PATCH v5 0/6] RISC-V DT related fixes for reserved memory & UEFI Ard Biesheuvel
2020-04-07  6:41   ` Heinrich Schuchardt
2020-04-07  6:51     ` Ard Biesheuvel
2020-04-07 17:35       ` Atish Patra [this message]
2020-04-13 22:02         ` Atish Patra
2020-04-13 22:41           ` Bin Meng
2020-04-14 23:18             ` Atish Patra
     [not found]               ` <752D002CFF5D0F4FA35C0100F1D73F3FA46F743A@ATCPCS16.andestech.com>
2020-04-17  0:51                 ` Rick Chen
2020-04-17  1:10                   ` Bin Meng
2020-04-17  1:12                     ` Rick Chen
2020-04-17  2:12                       ` Bin Meng
2020-04-17  2:14                         ` Bin Meng
2020-04-17  2:26                           ` Bin Meng
2020-04-18  6:13                             ` Atish Patra
     [not found] ` <20200406204453.231945-2-atish.patra@wdc.com>
2020-04-13 23:04   ` [PATCH v5 1/6] riscv: Add boot hartid to Device tree Heinrich Schuchardt
2020-04-13 23:08     ` Bin Meng
2020-04-14 10:56       ` Auer, Lukas

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='CAOnJCUJ4eiCoFRe4i6VyLy2NLGb0=tukhOaz-sNYn5nOrY4cTg@mail.gmail.com' \
    --to=atishp@atishpatra.org \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.