All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rick Chen <rickchen36@gmail.com>
To: u-boot@lists.denx.de
Subject: [PATCH v5 0/6] RISC-V DT related fixes for reserved memory & UEFI
Date: Fri, 17 Apr 2020 08:51:05 +0800	[thread overview]
Message-ID: <CAN5B=e+xk_GeCE=-2e40A4nsQ9E1Zf4_wJ448675EagNGT1faQ@mail.gmail.com> (raw)
In-Reply-To: <752D002CFF5D0F4FA35C0100F1D73F3FA46F743A@ATCPCS16.andestech.com>

<rick@andestech.com> ? 2020?4?17? ?? ??8:39???
>
>
>
> -----Original Message-----
> From: Atish Patra [mailto:atishp at atishpatra.org]
> Sent: Wednesday, April 15, 2020 7:18 AM
> To: Bin Meng
> Cc: Ard Biesheuvel; Heinrich Schuchardt; U-Boot Mailing List; Anup Patel; Lukas Auer; Alexander Graf; Rick Jian-Zhi Chen(???); Palmer Dabbelt
> Subject: Re: [PATCH v5 0/6] RISC-V DT related fixes for reserved memory & UEFI
>
> On Mon, Apr 13, 2020 at 3:42 PM Bin Meng <bmeng.cn@gmail.com> wrote:
> >
> > Hi Atish,
> >
> > On Tue, Apr 14, 2020 at 6:02 AM Atish Patra <atishp@atishpatra.org> wrote:
> > >
> > > On Tue, Apr 7, 2020 at 10:35 AM Atish Patra <atishp@atishpatra.org> wrote:
> > > >
> > > > 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
> > >
> > > Any other comments on the series ? It would be great if this series
> > > could be merged before
> > > v2020.07 release.
> >
> > I hope so if no one objects the proposed solution here in U-Boot vs.
> > the PMP SBI extension. I need have another look at the latest version
> > of patches though.
> >
>
> Thanks. As far as I know, there is no opposition to the current approach adopted in U-Boot.
> I am hoping EFI stub series can be merged before 5.8. If this series can go in v2020.07, RISC-V will have all required support to boot via EFI from Linux kernel v5.8 and U-Boot v2020.07.

OK!
I will pull and send a PR ASAP.

Thanks,
Rick

  parent reply	other threads:[~2020-04-17  0:51 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
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 [this message]
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='CAN5B=e+xk_GeCE=-2e40A4nsQ9E1Zf4_wJ448675EagNGT1faQ@mail.gmail.com' \
    --to=rickchen36@gmail.com \
    --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.