All of lore.kernel.org
 help / color / mirror / Atom feed
* xen acpi cpufreq driver
@ 2012-04-24 17:04 Tobias Geiger
  2012-04-24 17:36 ` Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 4+ messages in thread
From: Tobias Geiger @ 2012-04-24 17:04 UTC (permalink / raw)
  To: xen-devel; +Cc: Konrad Rzeszutek Wilk

Hi,

i'm not sure if i understood the new acpi xen cpufreq driver - here's the 
output when loading  xen_acpi_processor module in linux 3.4:

dom0 dmesg:

[   32.728151] xen-acpi-processor: (CX): Hypervisor error (-22) for ACPI CPU8
[   32.728156] xen-acpi-processor: (CX): Hypervisor error (-22) for ACPI CPU9
[   32.728160] xen-acpi-processor: (CX): Hypervisor error (-22) for ACPI CPU10
[   32.728164] xen-acpi-processor: (CX): Hypervisor error (-22) for ACPI CPU11
[   32.728168] xen-acpi-processor: (CX): Hypervisor error (-22) for ACPI CPU12
[   32.728172] xen-acpi-processor: (CX): Hypervisor error (-22) for ACPI CPU13
[   32.728176] xen-acpi-processor: (CX): Hypervisor error (-22) for ACPI CPU14



xl dmesg:

(XEN) Monitor-Mwait will be used to enter C1 state
(XEN) Monitor-Mwait will be used to enter C3 state
(XEN) no cpu_id for acpi_id 8
(XEN) no cpu_id for acpi_id 9
(XEN) no cpu_id for acpi_id 10
(XEN) no cpu_id for acpi_id 11
(XEN) no cpu_id for acpi_id 12
(XEN) no cpu_id for acpi_id 13
(XEN) no cpu_id for acpi_id 14


here the according kernel config:

pc:~# zcat /proc/config.gz | grep FREQ
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_TABLE=y
CONFIG_CPU_FREQ_STAT=m
# CONFIG_CPU_FREQ_STAT_DETAILS is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=m
CONFIG_CPU_FREQ_GOV_USERSPACE=m
CONFIG_CPU_FREQ_GOV_ONDEMAND=y
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m
CONFIG_X86_PCC_CPUFREQ=m
CONFIG_X86_ACPI_CPUFREQ=m
# CONFIG_PM_DEVFREQ is not set

and of course:
CONFIG_XEN_ACPI_PROCESSOR=m

xl info:
nr_cpus                : 8
max_cpu_id             : 15
nr_nodes               : 1
cores_per_socket       : 4
threads_per_core       : 2


Greetings and thanks for clarification!
Tobias

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: xen acpi cpufreq driver
  2012-04-24 17:04 xen acpi cpufreq driver Tobias Geiger
@ 2012-04-24 17:36 ` Konrad Rzeszutek Wilk
  2012-04-24 23:28   ` Tobias Geiger
  0 siblings, 1 reply; 4+ messages in thread
From: Konrad Rzeszutek Wilk @ 2012-04-24 17:36 UTC (permalink / raw)
  To: Tobias Geiger; +Cc: xen-devel

On Tue, Apr 24, 2012 at 07:04:03PM +0200, Tobias Geiger wrote:
> Hi,
> 
> i'm not sure if i understood the new acpi xen cpufreq driver - here's the 
> output when loading  xen_acpi_processor module in linux 3.4:
> 
> dom0 dmesg:
> 
> [   32.728151] xen-acpi-processor: (CX): Hypervisor error (-22) for ACPI CPU8
> [   32.728156] xen-acpi-processor: (CX): Hypervisor error (-22) for ACPI CPU9
> [   32.728160] xen-acpi-processor: (CX): Hypervisor error (-22) for ACPI CPU10
> [   32.728164] xen-acpi-processor: (CX): Hypervisor error (-22) for ACPI CPU11
> [   32.728168] xen-acpi-processor: (CX): Hypervisor error (-22) for ACPI CPU12
> [   32.728172] xen-acpi-processor: (CX): Hypervisor error (-22) for ACPI CPU13
> [   32.728176] xen-acpi-processor: (CX): Hypervisor error (-22) for ACPI CPU14
> 
> 
> 
> xl dmesg:
> 
> (XEN) Monitor-Mwait will be used to enter C1 state
> (XEN) Monitor-Mwait will be used to enter C3 state
> (XEN) no cpu_id for acpi_id 8
> (XEN) no cpu_id for acpi_id 9
> (XEN) no cpu_id for acpi_id 10
> (XEN) no cpu_id for acpi_id 11
> (XEN) no cpu_id for acpi_id 12
> (XEN) no cpu_id for acpi_id 13
> (XEN) no cpu_id for acpi_id 14
> 
> 
> here the according kernel config:
> 
> pc:~# zcat /proc/config.gz | grep FREQ
> CONFIG_CPU_FREQ=y
> CONFIG_CPU_FREQ_TABLE=y
> CONFIG_CPU_FREQ_STAT=m
> # CONFIG_CPU_FREQ_STAT_DETAILS is not set
> # CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
> # CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
> CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y
> # CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set
> CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
> CONFIG_CPU_FREQ_GOV_POWERSAVE=m
> CONFIG_CPU_FREQ_GOV_USERSPACE=m
> CONFIG_CPU_FREQ_GOV_ONDEMAND=y
> CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m
> CONFIG_X86_PCC_CPUFREQ=m
> CONFIG_X86_ACPI_CPUFREQ=m
> # CONFIG_PM_DEVFREQ is not set
> 
> and of course:
> CONFIG_XEN_ACPI_PROCESSOR=m
> 
> xl info:
> nr_cpus                : 8
> max_cpu_id             : 15
> nr_nodes               : 1
> cores_per_socket       : 4
> threads_per_core       : 2

Can you include your xl dmesg and dmesg and as well
the /sys/firmware/acpi/tables/DSDT and /sys/firmware/acpi/tables/SSDT*
files please?

Does xenpm work properly?

> 
> 
> Greetings and thanks for clarification!
> Tobias

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: xen acpi cpufreq driver
  2012-04-24 17:36 ` Konrad Rzeszutek Wilk
@ 2012-04-24 23:28   ` Tobias Geiger
  2012-04-26 18:25     ` Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 4+ messages in thread
From: Tobias Geiger @ 2012-04-24 23:28 UTC (permalink / raw)
  To: Konrad Rzeszutek Wilk; +Cc: xen-devel

Am 24.04.2012 19:36, schrieb Konrad Rzeszutek Wilk:
> On Tue, Apr 24, 2012 at 07:04:03PM +0200, Tobias Geiger wrote:
>> Hi,
>>
>> i'm not sure if i understood the new acpi xen cpufreq driver - here's the
>> output when loading  xen_acpi_processor module in linux 3.4:
>>
>> dom0 dmesg:
>>
>> [   32.728151] xen-acpi-processor: (CX): Hypervisor error (-22) for ACPI CPU8
>> [   32.728156] xen-acpi-processor: (CX): Hypervisor error (-22) for ACPI CPU9
>> [   32.728160] xen-acpi-processor: (CX): Hypervisor error (-22) for ACPI CPU10
>> [   32.728164] xen-acpi-processor: (CX): Hypervisor error (-22) for ACPI CPU11
>> [   32.728168] xen-acpi-processor: (CX): Hypervisor error (-22) for ACPI CPU12
>> [   32.728172] xen-acpi-processor: (CX): Hypervisor error (-22) for ACPI CPU13
>> [   32.728176] xen-acpi-processor: (CX): Hypervisor error (-22) for ACPI CPU14
>>
>>
>>
>> xl dmesg:
>>
>> (XEN) Monitor-Mwait will be used to enter C1 state
>> (XEN) Monitor-Mwait will be used to enter C3 state
>> (XEN) no cpu_id for acpi_id 8
>> (XEN) no cpu_id for acpi_id 9
>> (XEN) no cpu_id for acpi_id 10
>> (XEN) no cpu_id for acpi_id 11
>> (XEN) no cpu_id for acpi_id 12
>> (XEN) no cpu_id for acpi_id 13
>> (XEN) no cpu_id for acpi_id 14
>>
>>
>> here the according kernel config:
>>
>> pc:~# zcat /proc/config.gz | grep FREQ
>> CONFIG_CPU_FREQ=y
>> CONFIG_CPU_FREQ_TABLE=y
>> CONFIG_CPU_FREQ_STAT=m
>> # CONFIG_CPU_FREQ_STAT_DETAILS is not set
>> # CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
>> # CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
>> CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y
>> # CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set
>> CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
>> CONFIG_CPU_FREQ_GOV_POWERSAVE=m
>> CONFIG_CPU_FREQ_GOV_USERSPACE=m
>> CONFIG_CPU_FREQ_GOV_ONDEMAND=y
>> CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m
>> CONFIG_X86_PCC_CPUFREQ=m
>> CONFIG_X86_ACPI_CPUFREQ=m
>> # CONFIG_PM_DEVFREQ is not set
>>
>> and of course:
>> CONFIG_XEN_ACPI_PROCESSOR=m
>>
>> xl info:
>> nr_cpus                : 8
>> max_cpu_id             : 15
>> nr_nodes               : 1
>> cores_per_socket       : 4
>> threads_per_core       : 2
> Can you include your xl dmesg and dmesg and as well
> the /sys/firmware/acpi/tables/DSDT and /sys/firmware/acpi/tables/SSDT*
> files please?
>
> Does xenpm work properly?
>
>>
>> Greetings and thanks for clarification!
>> Tobias


xenpm works - at least "xenpm get-cpuidle-states" and "xenpm 
get-cpufreq-states".

here you can find my acpi-tables including "xl dmesg" and "dmesg" output:

http://www.vido.info/stuff/acpi-tables-2.6.34-rc4.tar.bz2

Greetings
Tobias

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: xen acpi cpufreq driver
  2012-04-24 23:28   ` Tobias Geiger
@ 2012-04-26 18:25     ` Konrad Rzeszutek Wilk
  0 siblings, 0 replies; 4+ messages in thread
From: Konrad Rzeszutek Wilk @ 2012-04-26 18:25 UTC (permalink / raw)
  To: Tobias Geiger; +Cc: xen-devel

On Wed, Apr 25, 2012 at 01:28:38AM +0200, Tobias Geiger wrote:
> Am 24.04.2012 19:36, schrieb Konrad Rzeszutek Wilk:
> >On Tue, Apr 24, 2012 at 07:04:03PM +0200, Tobias Geiger wrote:
> >>Hi,
> >>
> >>i'm not sure if i understood the new acpi xen cpufreq driver - here's the
> >>output when loading  xen_acpi_processor module in linux 3.4:
> >>
> >>dom0 dmesg:
> >>
> >>[   32.728151] xen-acpi-processor: (CX): Hypervisor error (-22) for ACPI CPU8
> >>[   32.728156] xen-acpi-processor: (CX): Hypervisor error (-22) for ACPI CPU9
> >>[   32.728160] xen-acpi-processor: (CX): Hypervisor error (-22) for ACPI CPU10
> >>[   32.728164] xen-acpi-processor: (CX): Hypervisor error (-22) for ACPI CPU11
> >>[   32.728168] xen-acpi-processor: (CX): Hypervisor error (-22) for ACPI CPU12
> >>[   32.728172] xen-acpi-processor: (CX): Hypervisor error (-22) for ACPI CPU13
> >>[   32.728176] xen-acpi-processor: (CX): Hypervisor error (-22) for ACPI CPU14

So your DSDT has:

   External (\_PR_.CPUF, DeviceObj)
    External (\_PR_.CPUE, DeviceObj)
    External (\_PR_.CPUD, DeviceObj)
    External (\_PR_.CPUC, DeviceObj)
    External (\_PR_.CPUB, DeviceObj)
    External (\_PR_.CPUA, DeviceObj)
    External (\_PR_.CPU9, DeviceObj)
    External (\_PR_.CPU8, DeviceObj)
    External (\_PR_.CPU7, DeviceObj)
    External (\_PR_.CPU6, DeviceObj)
    External (\_PR_.CPU5, DeviceObj)
    External (\_PR_.CPU4, DeviceObj)
    External (\_PR_.CPU3, DeviceObj)
    External (\_PR_.CPU2, DeviceObj)
    External (\_PR_.CPU1, DeviceObj)
    External (\_PR_.CPU0, DeviceObj)

And along with some other stuff in the DSDT it advertises that
it has 16 CPUs and it sets up even sixteen _CST and _PST data structures.

But you only have eight. This is really a BIOS bug.

However, let me fix it in the driver so that you don't get that error.
(I had a similar fix in the driver for dealing with the P-states
but didn't do it for the C-states).

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-04-26 18:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-24 17:04 xen acpi cpufreq driver Tobias Geiger
2012-04-24 17:36 ` Konrad Rzeszutek Wilk
2012-04-24 23:28   ` Tobias Geiger
2012-04-26 18:25     ` Konrad Rzeszutek Wilk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.