From: Egger Christoph <chegger@amazon.de>
To: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: jinsong.liu@intel.com, xen-devel@lists.xensource.com
Subject: Re: [PATCH] xen/acpi-stub: Disable it b/c the acpi_processor_add is no longer called.
Date: Fri, 22 Mar 2013 15:44:14 +0100 [thread overview]
Message-ID: <514C6E3E.6050207@amazon.de> (raw)
In-Reply-To: <1363962480-1366-1-git-send-email-konrad.wilk@oracle.com>
I think, Xen can get C and P states from ACPI itself.
Why is Dom0 needed as a dependency at all?
Christoph
On 22.03.13 15:28, Konrad Rzeszutek Wilk wrote:
> With the Xen ACPI stub code (CONFIG_XEN_STUB=y) enabled, the power
> C and P states are no longer uploaded to the hypervisor.
>
> The reason is that the Xen CPU hotplug code: xen-acpi-cpuhotplug.c
> and the xen-acpi-stub.c register themselves as the "processor" type object.
>
> That means the generic processor (processor_driver.c) stops
> working and it does not call (acpi_processor_add) which populates the
>
> per_cpu(processors, pr->id) = pr;
>
> structure. The 'pr' is gathered from the acpi_processor_get_info function
> which does the job of finding the C-states and figuring out PBLK address.
>
> The 'processors->pr' is then later used by xen-acpi-processor.c (the one that
> uploads C and P states to the hypervisor). Since it is NULL, we end
> skip the gathering of _PSD, _PSS, _PCT, etc and never upload the power
> management data.
>
> The end result is that enabling the CONFIG_XEN_STUB in the build means that
> xen-acpi-processor is not working anymore.
>
> This temporary patch fixes it by marking the XEN_STUB driver as
> BROKEN until this can be properly fixed.
>
> CC: jinsong.liu@intel.com
> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
> ---
> drivers/xen/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/xen/Kconfig b/drivers/xen/Kconfig
> index 5a32232..67af155 100644
> --- a/drivers/xen/Kconfig
> +++ b/drivers/xen/Kconfig
> @@ -182,7 +182,7 @@ config XEN_PRIVCMD
>
> config XEN_STUB
> bool "Xen stub drivers"
> - depends on XEN && X86_64
> + depends on XEN && X86_64 && BROKEN
> default n
> help
> Allow kernel to install stub drivers, to reserve space for Xen drivers,
>
next prev parent reply other threads:[~2013-03-22 14:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-22 14:28 [PATCH] xen/acpi-stub: Disable it b/c the acpi_processor_add is no longer called Konrad Rzeszutek Wilk
2013-03-22 14:44 ` Egger Christoph [this message]
2013-03-22 15:32 ` Jan Beulich
2013-03-25 8:49 ` Liu, Jinsong
2013-03-25 13:59 ` Konrad Rzeszutek Wilk
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=514C6E3E.6050207@amazon.de \
--to=chegger@amazon.de \
--cc=jinsong.liu@intel.com \
--cc=konrad.wilk@oracle.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).