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] Problems with enabling hypervisor C and P-state control

To: "Xen Developers" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Problems with enabling hypervisor C and P-state control
From: "Niraj Tolia" <ntolia@xxxxxxxxx>
Date: Wed, 22 Oct 2008 00:57:10 -0700
Delivery-date: Wed, 22 Oct 2008 00:57:57 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=Xd9GaLLpaArI3p4MvADlKVU4FFnbe4YMp2oucvsWNgs=; b=vsVDDtYXQQhgP083ZkTV3rte2GLQEQSupa8dxeJ1/V9cDFx+lRpN3uDwrUePmbE0OU b0usDhLuHtErU+3Mi0/qXyXbFUkMMmq6nPlx082qQCE8TP5rMqT91hykO+pgrhAaX7XX g5h8M7WmwoPpmn7hIjc5dDNbckW0ucdaFmYHg=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=W776x248LQjm04bYOzh2d6TzRDhFTU+KNHGlwysNmbJ1i1iwC9gzSpR+z+iMlaVMTN qxdPHgg3xLE6I/KVC5/mO2nYCrMOFXYFtibHfRt315NTk/OJHstD/05y+9LBYIBO6kAA ApFZyjSeNPIgfK9jlLHUqFlUwbBXK3LPvQUOg=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

Is there any documentation on enabling hypervisor support for both C
and P-state control?

On xen-unstable and linux-2.6.18-xen.hg, if I enable cpuidle=1 on the
xen command line and then run xenpm, I will get output for C-states
(shown below) but it complains that "Xen cpufreq is not enabled!"

cpu id               : 0
total C-states       : 2
idle time(ms)        : 73264
C0                   : transition [00000000000000000000]
                       residency  [00000000000000000000 ms]
C1                   : transition [00000000000000025505]
                       residency  [00000000000000000000 ms]

(repeats for all cores)

However, CPU_FREQ depends on PROCESSOR_EXTERNAL_CONTROL being set to
'n'. There doesn't seem to be a way to enable/disable
CONFIG_PROCESSOR_EXTERNAL_CONTROL from menuconfig. I therefore
manually twiddled that bits in .config and enabled CPU_FREQ and
CPU_FREQ_TABLE (plus the performance governor). If I don't specify the
cpufreq option on the dom0 kernel command line, xenpm doesn't give me
C-state information anymore (output below) and will repeat the same
warning about cpufreq not being enabled.

cpu id               : 0
total C-states       : 0
idle time(ms)        : 0

(repeats for all cores)

If I then add cpufreq=xen to the kernel command line, xenpm's output
does not change. Any ideas on what I might be doing wrong? This is on
a quad-core Xeon (E7330).

Cheers,
Niraj

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel