public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Matt Fleming <matt@codeblueprint.co.uk>
To: "Stanacar, Stefan" <stefan.stanacar@intel.com>
Cc: "Baluta, Daniel" <daniel.baluta@intel.com>,
	"linux-efi@vger.kernel.org" <linux-efi@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"Abbas, Mohamed" <mohamed.abbas@intel.com>,
	"Gumbel, Matthew K" <matthew.k.gumbel@intel.com>,
	"Musca, Constantin" <constantin.musca@intel.com>,
	"Purdila, Octavian" <octavian.purdila@intel.com>,
	Darren Hart <dvhart@infradead.org>
Subject: Re: [PATCH v2] efi: Introduce EFI bootloader control driver
Date: Thu, 24 Mar 2016 14:47:41 +0000	[thread overview]
Message-ID: <20160324144741.GA4328@codeblueprint.co.uk> (raw)
In-Reply-To: <1458328697.16385.21.camel@intel.com>

(Sorry for the delay)

On Fri, 18 Mar, at 07:18:17PM, Stanacar, Stefan wrote:
> 
> Hi Matt,
> 
> It is possible, but that means modifying those userspace apps :)
> There are reboot implementations that do "reboot <reason>", such as
> Android's reboot command [1] and Upstart's reboot replacement [2], which
> pass the reason as an argument to the reboot syscall. 
> Probably your first question will be - "Why don't you modify those
> apps?"

Your guess is correct ;)

> Well, I don't see platform-agnostic way how those could be
> modified to pass the reason to the bootloader, regardless of platform or
> bootloader.

This is true. But then again, what you're proposing isn't boot loader
or platform agnostic anyway. Yes it's transparent to both the app and
boot loader, but it's only going to work on EFI platforms running
gummiboot.

And because of that, if this is going to be merged upstream I think
something like drivers/power/reset/ would be a more appropriate place,
or drivers/platform/x86.

If this does get merged, please rework the patch to use the efivar API
instead of accessing efi.set_variable() directly. We've also got a
bunch of ucs2 string functions in lib/ucs2_string.c that you could
use. In fact, this version of the driver I found on the net is much
more like what I had in mind,

  https://github.com/BORETS24/Kernel-for-Asus-Zenfone-2/blob/master/drivers/external_drivers/drivers/platform/x86/reboot_target_uefi.c

  reply	other threads:[~2016-03-24 14:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-18 10:11 [PATCH v2] efi: Introduce EFI bootloader control driver Daniel Baluta
2016-03-18 11:22 ` kbuild test robot
2016-03-18 12:46 ` kbuild test robot
2016-03-18 16:15 ` Matt Fleming
2016-03-18 19:18   ` Stanacar, Stefan
2016-03-24 14:47     ` Matt Fleming [this message]
2016-03-24 16:15       ` Stanacar, Stefan
2016-03-29 12:53         ` Matt Fleming

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=20160324144741.GA4328@codeblueprint.co.uk \
    --to=matt@codeblueprint.co.uk \
    --cc=constantin.musca@intel.com \
    --cc=daniel.baluta@intel.com \
    --cc=dvhart@infradead.org \
    --cc=linux-efi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=matthew.k.gumbel@intel.com \
    --cc=mohamed.abbas@intel.com \
    --cc=octavian.purdila@intel.com \
    --cc=stefan.stanacar@intel.com \
    /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