WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Question about support for acpi_cpufreq module in Xen

To: "Xen-Devel (E-mail)" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Question about support for acpi_cpufreq module in Xen
From: "Santos, Jose Renato G" <joserenato.santos@xxxxxx>
Date: Tue, 22 Apr 2008 03:15:20 +0000
Accept-language: en-US
Acceptlanguage: en-US
Delivery-date: Mon, 21 Apr 2008 20:17:04 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20080421183429109.00000007176@djm-pc>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <C432D93C.16E57%keir.fraser@xxxxxxxxxxxxx> <20080421183429109.00000007176@djm-pc>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acij8qfr3eN+Hq6zQZSPY+jdn0NuoAAD7ehoAANECXAABRjAMA==
Thread-topic: Question about support for acpi_cpufreq module in Xen

Does Xen support changes to the processor P-state using acpi_cpufreq module?

I have an Intel core2-duo machine with 2 physical CPUs (4 logical CPUs in 
total) and acpi_cpufreq does not seem to work properly

When I run the command cpufreq-info (in dom0), I get the following:

> cpufrequtils 002: cpufreq-info (C) Dominik Brodowski 2004-2006
> Report errors and bugs to linux@xxxxxxxx, please.
> analyzing CPU 0:
>   driver: acpi-cpufreq
>   CPUs which need to switch frequency at the same time: 0
>   hardware limits: 2.00 GHz - 3.00 GHz
>   available frequency steps: 3.00 GHz, 2.00 GHz
>   available cpufreq governors: userspace, performance
>   current policy: frequency should be within 2.00 GHz and 3.00 GHz.
>                   The governor "userspace" may decide which speed to use
>                   within this range.
>   current CPU frequency is 3.00 GHz.
> analyzing CPU 1:
>   driver: acpi-cpufreq
>   CPUs which need to switch frequency at the same time: 1
>   hardware limits: 2.00 GHz - 3.00 GHz
>   available frequency steps: 3.00 GHz, 2.00 GHz
>   available cpufreq governors: userspace, performance
>   current policy: frequency should be within 2.00 GHz and 3.00 GHz.
>                   The governor "userspace" may decide which speed to use
>                   within this range.
>   current CPU frequency is 3.00 GHz.
> analyzing CPU 2:
>   no or unknown cpufreq driver is active on this CPU
> analyzing CPU 3:
>   no or unknown cpufreq driver is active on this CPU

It seems acpi_cpufreq is not recognizing 2 of my CPUs.

I think this problem is somehow related to the fact that if two cores share the 
same socket they cannot be set to distinct Power states.
Xen is reporting that the 4 CPUs are in 4 distinct physical CPUs (siblings=1) 
when each physical CPU has 2 cores, and this may be confusing acpi_cpufreq. 
(see the difference in /proc/cpuinfo between Xen and Linux in the attached 
files).

Is this a well known problem? Is there any way to fix this? I thought Xen has 
been fixed to report the right physical CPU topology but maybe I am wrong.

Any help would be greatly appreciated

Thanks

Renato

PS - I am using xen-unstable c/s 17193:f33328217eee

Attachment: cpuinfo_linux
Description: cpuinfo_linux

Attachment: cpuinfo_xen
Description: cpuinfo_xen

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>