linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Chen, Yu C" <yu.c.chen@intel.com>
To: Matt Fleming <matt@codeblueprint.co.uk>
Cc: "linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
	"linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>,
	"Rafael J. Wysocki" <rafael@kernel.org>,
	Len Brown <lenb@kernel.org>, Thomas Gleixner <tglx@linutronix.de>,
	Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>,
	"Zhang, Rui" <rui.zhang@intel.com>,
	"linux-efi@vger.kernel.org" <linux-efi@vger.kernel.org>,
	"x86@kernel.org" <x86@kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Ard Biesheuvel <ard.biesheuvel@linaro.org>,
	Mark Salter <msalter@redhat.com>
Subject: RE: [PATCH][RFC,v4] ACPI / PM: Introduce efi poweroff for HW-full platforms without _S5
Date: Fri, 11 Mar 2016 16:33:46 +0000	[thread overview]
Message-ID: <36DF59CE26D8EE47B0655C516E9CE640286D442A@shsmsx102.ccr.corp.intel.com> (raw)
In-Reply-To: <20160311155546.GJ15775@codeblueprint.co.uk>


Hi Matt,

> -----Original Message-----
> From: Matt Fleming [mailto:matt@codeblueprint.co.uk]
> Sent: Friday, March 11, 2016 11:56 PM
> To: Chen, Yu C
> Cc: linux-acpi@vger.kernel.org; linux-pm@vger.kernel.org; Rafael J. Wysocki;
> Len Brown; Thomas Gleixner; Ingo Molnar; H. Peter Anvin; Zhang, Rui; linux-
> efi@vger.kernel.org; x86@kernel.org; linux-kernel@vger.kernel.org; Ard
> Biesheuvel; Mark Salter
> Subject: Re: [PATCH][RFC,v4] ACPI / PM: Introduce efi poweroff for HW-full
> platforms without _S5
> 
> On Fri, 11 Mar, at 05:05:33PM, Chen Yu wrote:
> > The problem is Linux registers pm_power_off = efi_power_off only if we
> > are in hardware reduced mode. Actually, what we also want is to do
> > this when ACPI S5 is simply not supported on non-legacy platforms.
> > That should handle both the HW reduced mode, and the HW-full mode
> > where the DSDT fails to supply an _S5 object.
> >
> > This patch introduces pm_power_off_default which would be used by
> > pm_power_off if nothing else is available. And in this case we
> > leverage efi power off to be this role. However since efi power off
> > may not be stable enough thus in order not to interfere with other
> > poweroff path, we only make a minimum enhancement for x86 in
> > native_machine_power_off.
> >
> > Suggested-by: Len Brown <len.brown@intel.com>
> > Signed-off-by: Chen Yu <yu.c.chen@intel.com>
> > ---
> > v4:
> >  - Since in v3 efi_poweroff_required() is not guaranteed to run
> >    after all of the other code that may register alternative
> >    power off handling, add the pm_power_off_default that would
> >    be used by pm_power_off if nothing else is available.
> > v3:
> >  - Only assign pm_power_off to efi_power_off when there are no
> >    other pm_power_off registered at that time, in case other
> >    commponents would like to customize their own implementation.
> > ---
> > v2:
> >  - Convert the acpi_no_s5 to a global bool variable in sleep.c and
> >    add a declaration to include/linux/acpi.h.
> > ---
> >  arch/x86/kernel/reboot.c       | 3 +++
> >  arch/x86/platform/efi/quirks.c | 5 +++++
> >  drivers/acpi/sleep.c           | 7 +++++++
> >  drivers/firmware/efi/reboot.c  | 8 ++++++++
> >  include/linux/acpi.h           | 1 +
> >  include/linux/efi.h            | 1 +
> >  include/linux/pm.h             | 1 +
> >  kernel/reboot.c                | 1 +
> >  8 files changed, 27 insertions(+)
> 
> Couple of things,
> 
>   1) I'm still waiting for an answer to my question on whether
>      platforms without _S5 that need EFI reset actually exist. You
>      said they "might" exist, which makes this all sound very
>      speculative. It is not obvious to me that this approach makes
>      sense.
There is  a future Base-IA platform, we are planning to skip
implementing the SLP_TYP register and the S5 object.  (already there
will be no S3 and no S4)

> 
>   2) In v4 you're modifying the generic EFI reboot code and should Cc
>      other developers who might care, e.g. the arm64 folks. I've Cc'd
>      them now.
OK, thanks.

yu

  reply	other threads:[~2016-03-11 16:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-11  9:05 [PATCH][RFC,v4] ACPI / PM: Introduce efi poweroff for HW-full platforms without _S5 Chen Yu
2016-03-11 15:55 ` Matt Fleming
2016-03-11 16:33   ` Chen, Yu C [this message]
2016-03-14 20:00     ` Matt Fleming
2016-03-16  5:59       ` Chen, Yu C
2016-03-17 14:39         ` 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=36DF59CE26D8EE47B0655C516E9CE640286D442A@shsmsx102.ccr.corp.intel.com \
    --to=yu.c.chen@intel.com \
    --cc=ard.biesheuvel@linaro.org \
    --cc=hpa@zytor.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-efi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=matt@codeblueprint.co.uk \
    --cc=mingo@redhat.com \
    --cc=msalter@redhat.com \
    --cc=rafael@kernel.org \
    --cc=rui.zhang@intel.com \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.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).