linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Matt Fleming <matt@codeblueprint.co.uk>
To: "Chen, Yu C" <yu.c.chen@intel.com>
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: Thu, 17 Mar 2016 14:39:26 +0000	[thread overview]
Message-ID: <20160317143926.GL2619@codeblueprint.co.uk> (raw)
In-Reply-To: <36DF59CE26D8EE47B0655C516E9CE640286D5713@shsmsx102.ccr.corp.intel.com>

On Wed, 16 Mar, at 05:59:29AM, Chen, Yu C wrote:
> Hi Matt,
> 
> > -----Original Message-----
> > From: Matt Fleming [mailto:matt@codeblueprint.co.uk]
> > Sent: Tuesday, March 15, 2016 4:01 AM
> > 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 04:33:46PM, Chen, Yu C wrote:
> > >
> > > 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)
> > 
> > Cool. This is really valuable information that should go into the commit
> > message.
> > 
> > Because if this is the rationale for the change, I don't see why we'd need to
> > provide the default stuff. Instead we should just enforce EFI reboot, and
> > only add the pm_poweroff_default hook if there is an explicit user in the
> > future, IMO.
> 
> Do you mean the patch v3 make sense
> https://patchwork.kernel.org/patch/8514751/
> and we should use efi power off as our first choice, if there is no _S5  available(no acpi_power_off),
> even there is a customized  poweroff(driver provided, eg)? 

Unless someone can point to a platform driver that is in the upstream
kernel where this is actually a problem, the answer is: yes.
 
For that matter, unless someone can do the same for pm_power_off
overriding efi_reboot() (which on x86 would only happen for ACPI
HW-reduced platforms), I would be much prefer the original patch,
where you had,

bool efi_poweroff_reqired(voi)
{
	return acpi_gbl_reduced_hardware || acpi_no_s5;
}

since you've already explained that this change won't break legacy
platforms that are missing _S5 (if any even exist in the wild).

      reply	other threads:[~2016-03-17 14:39 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
2016-03-14 20:00     ` Matt Fleming
2016-03-16  5:59       ` Chen, Yu C
2016-03-17 14:39         ` 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=20160317143926.GL2619@codeblueprint.co.uk \
    --to=matt@codeblueprint.co.uk \
    --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=mingo@redhat.com \
    --cc=msalter@redhat.com \
    --cc=rafael@kernel.org \
    --cc=rui.zhang@intel.com \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.org \
    --cc=yu.c.chen@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;
as well as URLs for NNTP newsgroup(s).