From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Ben Guthro <Ben.Guthro@citrix.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
Jan Beulich <jbeulich@suse.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>,
Richard L Maliszewski <richard.l.maliszewski@intel.com>,
Gang Wei <gang.wei@intel.com>, Shane Wang <shane.wang@intel.com>,
Bob Moore <robert.moore@intel.com>,
"tboot-devel@lists.sourceforge.net"
<tboot-devel@lists.sourceforge.net>
Subject: Re: [PATCH v4 0/5] Xen/ACPI: support sleep state entering on hardware reduced systems
Date: Sun, 28 Jul 2013 01:31:52 +0200 [thread overview]
Message-ID: <4416509.Jzyj46NPce@vostro.rjw.lan> (raw)
In-Reply-To: <2A50FCBD-CD54-4C8D-A780-1CA7ACBC4E0B@citrix.com>
On Saturday, July 27, 2013 03:33:31 PM Ben Guthro wrote:
>
> On Jul 27, 2013, at 9:51 AM, "Rafael J. Wysocki" <rjw@sisk.pl> wrote:
>
> > On Thursday, June 27, 2013 11:01:58 AM Ben Guthro wrote:
> >> In version 3.4 acpi_os_prepare_sleep() got introduced in parallel with
> >> reduced hardware sleep support, and the two changes didn't get
> >> synchronized: The new code doesn't call the hook function (if so
> >> requested). Fix this, requiring a boolean parameter to be added to the
> >> hook function to distinguish "extended" from "legacy" sleep.
> >>
> >> This requires adjusting TXT, but the adjustments only go as far as
> >> failing the extended mode call (since, looking at the TXT interface,
> >> there doesn't even appear to be precautions to deal with that
> >> alternative interface).
> >>
> >> The hypervisor change underlying this is commit 62d1a69 ("ACPI: support
> >> v5 (reduced HW) sleep interface") on the master branch of
> >> git://xenbits.xen.org/xen.git.
> >>
> >> Signed-off-by: Ben Guthro <benjamin.guthro@citrix.com>
> >> Signed-off-by: Jan Beulich <jbeulich@suse.com>
> >> Cc: Richard L Maliszewski <richard.l.maliszewski@intel.com>
> >> Cc: Gang Wei <gang.wei@intel.com>
> >> Cc: Shane Wang <shane.wang@intel.com>
> >> Cc: Bob Moore <robert.moore@intel.com>
> >> Cc: Rafaell J. Wysocki <rjw@sisk.pl>
> >> Cc: linux-acpi@vger.kernel.org
> >> Cc: tboot-devel@lists.sourceforge.net
> >>
> >> v2: Extend description to include reference to hypervisor side change
> >> v3: Split into multiple patches, separating subsystems
> >> Remove bool parameters, in favor of u8
> >> v4: Remove linux/acpi.h dependencies
> >> Further patch split to break out acpica from OSL
> >> More bool vs u8 fixes
> >>
> >> Ben Guthro (5):
> >> acpi: Remove need to include linux/acpi.h in common acpica code
> >> acpi: Call acpi_os_prepare_sleep hook in reduced hardware sleep path
> >> acpi: Adjust linux acpi OS functions to new extended parameter
> >> x86/tboot: Fail extended mode reduced hardware sleep
> >> xen/acpi: notify xen when reduced hardware sleep is available
> >
> > The ongoing discussion means to me that the ACPICA maintainers don't want
> > acpi_os_prepare_sleep() and quite frankly I understand them, because ACPICA
> > is about implementing the spec and not about things beyond it.
> >
> > This means that patch [1/5] goes away.
> >
> > That said, at the same time we need to address the problem at hand, which
> > is to make Xen work with the reduced HW sleep.
> >
> > For that, I don't honestly think that modifying acpi_os_prepare_sleep() the
> > way the patchset is doing it is appropriate and the change of the meaning of
> > the arguments is simply disgusting.
> >
> > To me, it would be much cleaner to add acpi_os_prepare_extended_sleep()
> > specifically to be called by acpi_hw_extended_sleep() and make tboot and Xen
> > use that.
> >
> > This way or another, we'll need to live with one more divergence between the
> > upstream ACPICA and the Linux ACPICA code because of that, but that'd be just
> > a few added lines in acpi_hw_extended_sleep(), so I suppose it wouldn't be
> > such a big deal.
> >
>
> Ok, thank you for the review, and being open to addressing the problem at
> hand,
No problem, although I'm not exactly happy with it.
> without a full architecture rework (not to say that that discussion is not
> also needed)
Sure, it is needed.
> I will try to make some time next week to rework the patch set to address
> these concerns, and submit a new series.
Thanks!
Rafael
prev parent reply other threads:[~2013-07-27 23:21 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-27 15:01 Ben Guthro
2013-06-27 15:01 ` [PATCH v4 1/5] acpi: Remove need to include linux/acpi.h in common acpica code Ben Guthro
2013-06-27 15:02 ` [PATCH v4 2/5] acpi: Call acpi_os_prepare_sleep hook in reduced hardware sleep path Ben Guthro
2013-06-27 15:02 ` [PATCH v4 3/5] acpi: Adjust linux acpi OS functions to new extended parameter Ben Guthro
2013-06-27 15:11 ` Jan Beulich
2013-06-27 15:59 ` Moore, Robert
2013-06-27 16:12 ` Ben Guthro
2013-06-27 20:19 ` Moore, Robert
2013-06-27 20:35 ` Ben Guthro
2013-06-27 15:02 ` [PATCH v4 4/5] x86/tboot: Fail extended mode reduced hardware sleep Ben Guthro
2013-06-27 15:02 ` [PATCH v4 5/5] xen/acpi: notify xen when reduced hardware sleep is available Ben Guthro
2013-07-27 14:01 ` [PATCH v4 0/5] Xen/ACPI: support sleep state entering on hardware reduced systems Rafael J. Wysocki
2013-07-27 15:33 ` Ben Guthro
2013-07-27 23:31 ` Rafael J. Wysocki [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=4416509.Jzyj46NPce@vostro.rjw.lan \
--to=rjw@sisk.pl \
--cc=Ben.Guthro@citrix.com \
--cc=gang.wei@intel.com \
--cc=jbeulich@suse.com \
--cc=konrad.wilk@oracle.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=richard.l.maliszewski@intel.com \
--cc=robert.moore@intel.com \
--cc=shane.wang@intel.com \
--cc=tboot-devel@lists.sourceforge.net \
--cc=xen-devel@lists.xen.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
all inboxes | Powered by JetHome®