public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Marcin Wojtas <mw@semihalf.com>
To: Leif Lindholm <leif.lindholm@linaro.org>
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 13:47:16 +0200	[thread overview]
Message-ID: <CAPv3WKfn91-pHyq6SDuK+X9VCuqFaZuBg208y7Dt4_6sF=k2Qg@mail.gmail.com> (raw)
In-Reply-To: <20170704114126.GN26676@bivouac.eciton.net>

2017-07-04 13:41 GMT+02:00 Leif Lindholm <leif.lindholm@linaro.org>:
> 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.

Ok, long time ago in early SoC revision, we PSCI was indeed broken and
later, we were not aware of the ArmPsciResetSystemLib existence:)
On the WIP branch, we have a replacement commit:
https://github.com/MarvellEmbeddedProcessors/edk2-open-platform/commit/b3fe877fe7207475ba293a1fc9b0a5c8f873d2c9
which will be submitted of course.

Best regards,
Marcin

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


  reply	other threads:[~2017-07-04 11:45 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
2017-07-04 11:47         ` Marcin Wojtas [this message]
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='CAPv3WKfn91-pHyq6SDuK+X9VCuqFaZuBg208y7Dt4_6sF=k2Qg@mail.gmail.com' \
    --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