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] [PATCH][1/2] AMD PowerNow! in the Hypervisor (dom0 changes)

To: xen-devel@xxxxxxxxxxxxxxxxxxx, Joachim Deguara <joachim.deguara@xxxxxxx>, bhavana.sarathy@xxxxxxx
Subject: [Xen-devel] [PATCH][1/2] AMD PowerNow! in the Hypervisor (dom0 changes)
From: Mark Langsdorf <mark.langsdorf@xxxxxxx>
Date: Fri, 20 Jun 2008 10:36:03 -0500
Delivery-date: Fri, 20 Jun 2008 08:33:07 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.6 (enterprise 20070904.708012)
This patch set moves support for AMD's PowerNow! technology from 
dom0 into the hypervisor, now that there is support for 
transferring ACPI data to the hypervisor.  It will only work for
AMD processors that support the architectural P-state driver,
such as 3rd generation Opterons, Phenoms, and Turion Ultras.

This patch guarantees that the previous dom0 PowerNow! 
controller will not instantiate if the hypervisor PowerNow!
controller is enabled.

It should apply to current linux-2.6-xen.hg.

-Mark Langsdorf
Operating System Research Center
AMD

Signed-off-by: Mark Langsdorf <mark.langsdorf@xxxxxxx>
Acked-by: Conny Seidel <conny.seidel@xxxxxxx>

diff -r 105239038a17 drivers/acpi/processor_extcntl.c
--- a/drivers/acpi/processor_extcntl.c  Mon Jun 02 10:01:34 2008 +0100
+++ b/drivers/acpi/processor_extcntl.c  Fri Jun 06 15:56:57 2008 -0500
@@ -37,6 +37,7 @@ static int processor_extcntl_get_perform
  * ops to get ACPI related notification. One example is like VMM.
  */
 struct processor_extcntl_ops *processor_extcntl_ops;
+EXPORT_SYMBOL(processor_extcntl_ops);
 
 static int processor_notify_smm(void)
 {
diff -r 105239038a17 arch/i386/kernel/cpu/cpufreq/powernow-k8.c
--- a/arch/i386/kernel/cpu/cpufreq/powernow-k8.c        Mon Jun 02 10:01:34 
2008 +0100
+++ b/arch/i386/kernel/cpu/cpufreq/powernow-k8.c        Tue Jun 03 13:01:02 
2008 -0500
@@ -1312,6 +1312,16 @@ static int __cpuinit powernowk8_init(voi
 {
        unsigned int i, supported_cpus = 0;
 
+#ifdef CONFIG_XEN
+        /*
+         * This effectively blocks in-kernel cpufreq driver to interfere
+         * external control logic
+         */
+        if (processor_pmperf_external()) {
+                return -ENODEV;
+        }
+#endif /* CONFIG_XEN */
+
        for_each_online_cpu(i) {
                if (check_supported_cpu(i))
                        supported_cpus++;


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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH][1/2] AMD PowerNow! in the Hypervisor (dom0 changes), Mark Langsdorf <=