From: matt@console-pimps.org (Matt Fleming)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] arm64: support reboot and power off via EFI runtime
Date: Wed, 18 Jun 2014 16:53:56 +0100 [thread overview]
Message-ID: <20140618155356.GR24049@console-pimps.org> (raw)
In-Reply-To: <1403102507.32688.42.camel@deneb.redhat.com>
On Wed, 18 Jun, at 10:41:47AM, Mark Salter wrote:
> On Wed, 2014-06-18 at 09:09 -0500, Rob Herring wrote:
> > On Tue, Jun 17, 2014 at 11:45 AM, Mark Salter <msalter@redhat.com> wrote:
> > > Add handlers for arm_pm_resestart and pm_power_off which use EFI
> >
> > typo.
> >
> > > runtime services ResetSystem call to perform the functions. These
> > > handlers are only installed if no handler currently exists. This
> > > allows PSCI to take priority over EFI for these functions.
> > >
> > > Signed-off-by: Mark Salter <msalter@redhat.com>
> > > ---
> > > arch/arm64/kernel/efi.c | 40 ++++++++++++++++++++++++++++++++++++++++
> >
> > Where's the arm32 version? Surely this could be shared with all
> > arches. pm_power_off is at least architecturally independent. We
> > should do the same for restart/reboot. I'm not saying do that now, but
> > at least put it in the right place for that to happen.
> >
> > Rob
>
> Good point. So the right place would be drivers/firmware/efi I think.
> Add a CONFIG_EFI_RESET with default off. I suppose we could also
> go ahead and s/arm_pm_restart/pm_restart/ kernel-wide or have an
> ifdef in the code (or depends on ARM64 || ARM in Kconfig) until we
> do so.
>
> [Matt Fleming CC'd]
Heh, this is timely. I wrote some patches last week to use
EfiResetSystem() for ACPI Hardware Reduced platforms,
http://git.kernel.org/cgit/linux/kernel/git/mfleming/efi.git/log/?h=efi/reboot
so it would definitely be good if we could try and solve both of our
problems simultaneously.
Let me post that patch series to kickoff the discussion.
--
Matt Fleming, Intel Open Source Technology Center
prev parent reply other threads:[~2014-06-18 15:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-17 16:45 [PATCH] arm64: support reboot and power off via EFI runtime Mark Salter
2014-06-18 13:26 ` Mark Rutland
2014-06-18 13:52 ` Mark Salter
2014-06-18 14:09 ` Rob Herring
2014-06-18 14:41 ` Mark Salter
2014-06-18 15:53 ` Matt Fleming [this message]
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=20140618155356.GR24049@console-pimps.org \
--to=matt@console-pimps.org \
--cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).