From: Keir Fraser <keir.xen@gmail.com>
To: Paul Durrant <Paul.Durrant@citrix.com>,
Ian Campbell <Ian.Campbell@citrix.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: [PATCH 2 of 2] Add configuration options to selectively disable S3 and S4 ACPI power states
Date: Fri, 18 Nov 2011 13:12:43 +0000 [thread overview]
Message-ID: <CAEC0A4B.25205%keir.xen@gmail.com> (raw)
In-Reply-To: <291EDFCB1E9E224A99088639C4762022B4543AB75A@LONPMAILBOX01.citrite.net>
On 18/11/2011 11:11, "Paul Durrant" <Paul.Durrant@citrix.com> wrote:
>> -----Original Message-----
>> From: Ian Campbell
>> Sent: 18 November 2011 10:41
>> To: Paul Durrant
>> Cc: xen-devel@lists.xensource.com
>> Subject: Re: [Xen-devel] [PATCH 2 of 2] Add configuration options to
>> selectively disable S3 and S4 ACPI power states
>>
>> On Fri, 2011-11-18 at 10:29 +0000, Paul Durrant wrote:
>>> diff -r d22ef0f60497 -r 66bdcb90560f
>> tools/firmware/hvmloader/hvmloader.c
>>> --- a/tools/firmware/hvmloader/hvmloader.c Fri Nov 18
>> 10:28:52 2011 +0000
>>> +++ b/tools/firmware/hvmloader/hvmloader.c Fri Nov 18
>> 10:28:53 2011 +0000
>>> @@ -516,11 +516,17 @@ int main(void)
>>> .index = HVM_PARAM_ACPI_IOPORTS_LOCATION,
>>> .value = 1,
>>> };
>>> + int s3_enabled, s4_enabled;
>>> +
>>> + s3_enabled = !strncmp(xenstore_read("platform/acpi_s3",
>> "1"), "1", 1);
>>> + s4_enabled = !strncmp(xenstore_read("platform/acpi_s4",
>> "1"),
>>> + "1", 1);
>>
>> Is it not possible to do these in the underlying acpi_build_tables
>> and avoid the need to plumb them right the way through?
>>
>
> I guess that would be possible. It just seemed logical to group the acpi
> config xenstore reads close together. If we're happy to distribute use of the
> xenstore client code to all corners of the source then I can certainly do
> that.
I think distributing the xenstore reads is fine. I will apply the final
patch series that you sent, that includes this change.
-- Keir
>>> if ( bios->acpi_build_tables )
>>> {
>>> - printf("Loading ACPI ...\n");
>>> - bios->acpi_build_tables();
>>> + printf("Loading ACPI (S3=%s S4=%s) ...\n",
>>> + (s3_enabled) ? "ON" : "OFF",
>>> + (s4_enabled) ? "ON" : "OFF");
>>
>> If possible this printf could also be pushed down so you can
>> continue to print the config info.
>>
>
> Well, if the xenstore reads are pushed down then I'd clearly need to do that
> too :-)
>
>>> + bios->acpi_build_tables(s3_enabled, s4_enabled);
>>> }
>>>
>>> acpi_enable_sci();
>>
>> Ian.
>>
>
> Paul
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
next prev parent reply other threads:[~2011-11-18 13:12 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-18 10:28 [PATCH 0 of 2] Add configuration options to selectively disable S3 and S4 (V2) Paul Durrant
2011-11-18 10:29 ` [PATCH 1 of 2] Move acpi_enabled out of hvm_info_table into xenstore Paul Durrant
2011-11-18 10:29 ` [PATCH 2 of 2] Add configuration options to selectively disable S3 and S4 ACPI power states Paul Durrant
2011-11-18 10:33 ` Paul Durrant
2011-11-18 10:41 ` Ian Campbell
2011-11-18 11:11 ` Paul Durrant
2011-11-18 11:21 ` Ian Campbell
2011-11-18 13:12 ` Keir Fraser [this message]
2011-11-18 13:07 ` [PATCH 0 of 2] Add configuration options to selectively disable S3 and S4 (V2) Keir Fraser
-- strict thread matches above, loose matches on Subject: below --
2011-11-18 11:19 [PATCH 0 of 2] Add configuration options to selectively disable S3 and S4 (V4) Paul Durrant
2011-11-18 11:19 ` [PATCH 2 of 2] Add configuration options to selectively disable S3 and S4 ACPI power states Paul Durrant
2011-11-18 10:35 [PATCH 0 of 2] Add configuration options to selectively disable S3 and S4 (V3) Paul Durrant
2011-11-18 10:35 ` [PATCH 2 of 2] Add configuration options to selectively disable S3 and S4 ACPI power states Paul Durrant
[not found] <patchbomb.1321548234@cosworth.uk.xensource.com>
2011-11-17 16:43 ` Paul Durrant
2011-11-17 17:21 ` Keir Fraser
2011-11-18 8:56 ` Paul Durrant
2011-11-18 9:35 ` Keir Fraser
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=CAEC0A4B.25205%keir.xen@gmail.com \
--to=keir.xen@gmail.com \
--cc=Ian.Campbell@citrix.com \
--cc=Paul.Durrant@citrix.com \
--cc=xen-devel@lists.xensource.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).