xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: "Jan Beulich" <JBeulich@novell.com>
To: Gang Wei <gang.wei@intel.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	Keir Fraser <keir.fraser@eu.citrix.com>
Subject: Re: [PATCH]ACPI: workaround for S3 fail in two facs tables case
Date: Thu, 25 Feb 2010 08:38:52 +0000	[thread overview]
Message-ID: <4B86452C020000780003136C@vpn.id2.novell.com> (raw)
In-Reply-To: <E6467867A6B05E4FA831B7DF29925F5C40BBA48B@shzsmsx502.ccr.corp.intel.com>

>>> "Wei, Gang" <gang.wei@intel.com> 25.02.10 06:49 >>>
>ACPI: workaround for S3 fail in two facs tables case
>
>Some legacy BIOS which support ACPI2.0+ may expose two FACS tables via both FADT->FIRMWARE_CTRL and FADT->X_FIRMWARE_CTRL, but only lookup S3 waking_vector in the first one. So enhance the X_FIRMWARE_CTRL selection condition by adding FADT->FIRMWARE_CTRL == 0.
>
>Signed-off-by: Wei Gang <gang.wei@intel.com>
>
>diff -r e11c8dcbf690 xen/arch/x86/acpi/boot.c
>--- a/xen/arch/x86/acpi/boot.c	Wed Feb 24 11:00:11 2010 +0800
>+++ b/xen/arch/x86/acpi/boot.c	Thu Feb 25 20:47:37 2010 +0800
>@@ -365,7 +365,7 @@ acpi_fadt_parse_sleep_info(struct acpi_t
> 	       acpi_sinfo.pm1b_evt_blk.address);
> 
> 	/* Now FACS... */
>-	if (fadt->header.revision >= FADT2_REVISION_ID)
>+	if (fadt->header.revision >= FADT2_REVISION_ID && fadt->facs == 0)
> 		facs_pa = fadt->Xfacs;
> 	else
> 		facs_pa = (uint64_t)fadt->facs;

Wouldn't that generally suppress using fadt->Xfacs, since I think in
order to be pre-2.0-OS compatible a BIOS would not normally set
facs to zero when Xfacs is non-zero? Or is that a requirement by the
spec?

Jan

  reply	other threads:[~2010-02-25  8:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-25  5:49 [PATCH]ACPI: workaround for S3 fail in two facs tables case Wei, Gang
2010-02-25  8:38 ` Jan Beulich [this message]
2010-02-25 10:39   ` Keir Fraser
2010-02-26  1:43   ` Wei, Gang
2010-02-25 11:58 ` Keir Fraser
2010-02-25 13:17   ` Jan Beulich
2010-02-25 13:24     ` Keir Fraser
2010-02-25 20:57 ` Keir Fraser
2010-02-26  1:24   ` Wei, Gang

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=4B86452C020000780003136C@vpn.id2.novell.com \
    --to=jbeulich@novell.com \
    --cc=gang.wei@intel.com \
    --cc=keir.fraser@eu.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).