public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Leif Lindholm <leif.lindholm@linaro.org>
To: Marcin Wojtas <mw@semihalf.com>
Cc: edk2-devel-01 <edk2-devel@lists.01.org>,
	Ard Biesheuvel <ard.biesheuvel@linaro.org>
Subject: Re: [PATCH] Platforms/Marvell: switch to generic ResetSystemRuntimeDxe
Date: Tue, 4 Jul 2017 12:41:26 +0100	[thread overview]
Message-ID: <20170704114126.GN26676@bivouac.eciton.net> (raw)
In-Reply-To: <CAPv3WKd5oLrLUxwEjzfo_VKziakaMp1tvQ9RMDkor8B_43Xw1A@mail.gmail.com>

On Tue, Jul 04, 2017 at 01:19:10PM +0200, Marcin Wojtas wrote:
> 2017-07-04 13:10 GMT+02:00 Ard Biesheuvel <ard.biesheuvel@linaro.org>:
> > On 4 July 2017 at 12:04, Marcin Wojtas <mw@semihalf.com> wrote:
> >> Hi,
> >>
> >> 2017-07-04 13:00 GMT+02:00 Ard Biesheuvel <ard.biesheuvel@linaro.org>:
> >>> Switch to the generic implementation of the ResetSystem() runtime
> >>> service call, which is preferred over the one in EmbeddedPkg. This
> >>> involves selecting another DXE runtime driver, and morphing the
> >>> existing EfiResetSystemLib implementation into a ResetSystemLib one
> >>> (which is what the generic driver depends on for platform glue)
> >>>
> >>> Contributed-under: TianoCore Contribution Agreement 1.0
> >>> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
> >>> ---
> >>>  Platforms/Marvell/Armada/Armada.dsc.inc                       |   4 +-
> >>>  Platforms/Marvell/Armada/Armada70x0.fdf                       |   2 +-
> >>>  Platforms/Marvell/Library/ResetSystemLib/MvResetSystemLib.c   | 110 ++++++++++++++------
> >>>  Platforms/Marvell/Library/ResetSystemLib/MvResetSystemLib.inf |   7 +-
> >>>  4 files changed, 87 insertions(+), 36 deletions(-)
> >>>
> >>> diff --git a/Platforms/Marvell/Armada/Armada.dsc.inc b/Platforms/Marvell/Armada/Armada.dsc.inc
> >>> index 475fc6d05379..32eaa2942564 100644
> >>> --- a/Platforms/Marvell/Armada/Armada.dsc.inc
> >>> +++ b/Platforms/Marvell/Armada/Armada.dsc.inc
> >>> @@ -94,7 +94,7 @@
> >>>    # Reset and Time libraries
> >>>    EfiTimeBaseLib|OpenPlatformPkg/Library/EfiTimeBaseLib/EfiTimeBaseLib.inf
> >>>    RealTimeClockLib|OpenPlatformPkg/Platforms/Marvell/Armada/Library/RealTimeClockLib/RealTimeClockLib.inf
> >>> -  EfiResetSystemLib|OpenPlatformPkg/Platforms/Marvell/Library/ResetSystemLib/MvResetSystemLib.inf
> >>> +  ResetSystemLib|OpenPlatformPkg/Platforms/Marvell/Library/ResetSystemLib/MvResetSystemLib.inf
> >>
> >> Isn't it better to switch to generic PSCI:
> >> EfiResetSystemLib|ArmPkg/Library/ArmPsciResetSystemLib/ArmPsciResetSystemLib.inf
> >> and remove MvResetSystemLib whatsoever?
> >>
> >
> > Yes. But Leif tells me that 7040 does not support PSCI?
>
> Leif, where do you have this information from?

>From the source code in OpenPlatformPkg, which does not use it and the
documentation that does not mention it.

If this is incorrect, please submit patches to make the code in the
tree reflect reality.

/
    Leif


  reply	other threads:[~2017-07-04 11:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-04 11:00 [PATCH] Platforms/Marvell: switch to generic ResetSystemRuntimeDxe Ard Biesheuvel
2017-07-04 11:04 ` Marcin Wojtas
2017-07-04 11:10   ` Ard Biesheuvel
2017-07-04 11:19     ` Marcin Wojtas
2017-07-04 11:41       ` Leif Lindholm [this message]
2017-07-04 11:47         ` Marcin Wojtas
2017-07-04 11:49           ` Ard Biesheuvel
2017-07-04 11:51             ` Marcin Wojtas

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=20170704114126.GN26676@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