[Xen-devel] [PATCH v6 2/6] x86/intel_pstate: introduce the internal_governor struct

2015-10-27 Thread Wei Wang
Introduce a simple internal_governor struct to manage internal governor related variables. Also, add a condition check in cpufreq_del_cpu to avoid going through the old ACPI governor framework when an internal governor is in use. Signed-off-by: Wei Wang <wei.w.w...@intel.com> --- changes

[Xen-devel] [PATCH v6 1/6] x86/intel_pstate: add some calculation related support

2015-10-27 Thread Wei Wang
The added calculation related functions will be used in the intel_pstate.c. They are copied from the Linux kernel(commit 2418f4f2, f3002134, eb18cba7). Signed-off-by: Wei Wang <wei.w.w...@intel.com> --- changes in v6: 1) #define clamp() - remove the typecast on the result of max(); 2) ad

[Xen-devel] [PATCH v6 5/6] x86/intel_pstate: support the use of intel_pstate in pmstat.c

2015-10-27 Thread Wei Wang
Add support in the pmstat.c so that the xenpm tool can request to access the intel_pstate driver. Signed-off-by: Wei Wang <wei.w.w...@intel.com> --- changes in v6: 1) add the NON_INTERNAL_GOV macro to replace literal 0; 2) code consolidation (e.g. merging some code into if/else, as re

[Xen-devel] [PATCH v6 3/6] x86/intel_pstate: the main body of the intel_pstate driver

2015-10-27 Thread Wei Wang
ser interacts with it via xenpm. The new xen/include/asm-x86/cpufreq.h header file is added. Signed-off-by: Wei Wang <wei.w.w...@intel.com> --- changes in v6: 1) change some of the unnecessary signed types to be unsigned, as requested by Jan in v2; 2) remove "__ready_mostly" from

[Xen-devel] [PATCH v6 6/6] tools: enable xenpm to control the intel_pstate driver

2015-10-27 Thread Wei Wang
identation are made to make the printed info looks tidy. Signed-off-by: Wei Wang <wei.w.w...@intel.com> --- changes in v6: No big change in this version, since we did not get any comments from the maintainers in the previous version. tools/mi

[Xen-devel] [PATCH v6 0/6] Porting the intel_pstate driver to Xen

2015-10-27 Thread Wei Wang
CPUs (e.g. the HWP feature on Skylake+), intel_pstate changes to tune P-state based on percentage values. The xenpm tool is also upgraded to support the intel_pstate driver. If intel_pstate is used, "get-cpufreq-para" displays percentage value based feedback. If the intel_pstat

[Xen-devel] [PATCH v6 4/6] x86/intel_pstate: add a booting param to select the driver to load

2015-10-27 Thread Wei Wang
he failure loading of intel_pstate. Also, adding the intel_pstate booting parameter to xen-command-line.markdown. Signed-off-by: Wei Wang <wei.w.w...@intel.com> --- changes in v6: 1) move the declaration of intel_pstate_init() to this patch. docs/misc/xen-command-line.markdown | 7 +

[Xen-devel] [PATCH v5 7/9] x86/intel_pstate: add a booting param to select the driver to load

2015-09-13 Thread Wei Wang
he failure loading of intel_pstate. Also, adding the intel_pstate booting parameter to xen-command-line.markdown. Signed-off-by: Wei Wang <wei.w.w...@intel.com> --- docs/misc/xen-command-line.markdown | 7 +++ xen/arch/x86/acpi/cpufreq/cpufreq.c | 9 ++--- xen/arch/

[Xen-devel] [PATCH v5 6/9] x86/intel_pstate: the main boby of the intel_pstate driver

2015-09-13 Thread Wei Wang
ser interacts with it via xenpm. The new xen/include/asm-x86/cpufreq.h header file is added. Signed-off-by: Wei Wang <wei.w.w...@intel.com> --- xen/arch/x86/acpi/cpufreq/Makefile | 1 + xen/arch/x86/acpi/cpufreq/intel_pstate.c | 880 +++ xen/include/acp

[Xen-devel] [PATCH v5 9/9] tools: enable xenpm to control the intel_pstate driver

2015-09-13 Thread Wei Wang
identation are made to make the printed info looks tidy. Signed-off-by: Wei Wang <wei.w.w...@intel.com> --- tools/libxc/include/xenctrl.h | 21 tools/libxc/xc_pm.c | 5 +- tools/misc/xenpm.c| 116 ++ 3 files changed, 108 i

[Xen-devel] [PATCH v5 5/9] x86/intel_pstate: changes in cpufreq_del_cpu for CPU offline

2015-09-13 Thread Wei Wang
We change to NULL the cpufreq_cpu_policy pointer after the call of cpufreq_driver->exit, because the pointer is still needed in intel_pstate_set_pstate(). Signed-off-by: Wei Wang <wei.w.w...@intel.com> --- xen/drivers/cpufreq/cpufreq.c | 6 +++--- xen/include/acpi/cpufreq/cpuf

[Xen-devel] [PATCH v5 2/9] x86/intel_pstate: APERF/MPERF feature detect

2015-09-13 Thread Wei Wang
Add support to detect the APERF/MPERF feature. Also, remove the identical code in cpufreq.c and powernow.c. This patch is independent of the earlier patches. Signed-off-by: Wei Wang <wei.w.w...@intel.com> --- xen/arch/x86/acpi/cpufreq/cpufreq.c | 6 ++ xen/arch/x86/acpi/cpufreq/powe

[Xen-devel] [PATCH v5 0/9] Porting the intel_pstate driver to Xen

2015-09-13 Thread Wei Wang
o upgraded to support the intel_pstate driver. If intel_pstate is used, "get-cpufreq-para" displays percentage value based feedback. If the intel_pstate driver is not enabled, xenpm will work in the old style. Wei Wang (9): x86/intel_pstate: add some calculation related support x

[Xen-devel] [PATCH v5 1/9] x86/intel_pstate: add some calculation related support

2015-09-13 Thread Wei Wang
The added calculation related functions will be used in the intel_pstate.c. They are copied from the Linux kernel(commit 2418f4f2, f3002134, eb18cba7). Signed-off-by: Wei Wang <wei.w.w...@intel.com> --- xen/arch/x86/oprofile/op_model_athlon.c | 9 xen/include/asm-x86/d

[Xen-devel] [PATCH v5 4/9] x86/intel_pstate: relocate the driver register function

2015-09-13 Thread Wei Wang
Move the driver register function to the cpufreq.c. Signed-off-by: Wei Wang <wei.w.w...@intel.com> --- xen/drivers/cpufreq/cpufreq.c | 15 +++ xen/include/acpi/cpufreq/cpufreq.h | 27 +-- 2 files changed, 16 insertions(+), 26 deletions(-) changes

[Xen-devel] [PATCH v5 3/9] x86/intel_pstate: add a new driver interface, setpolicy()

2015-09-13 Thread Wei Wang
. Signed-off-by: Wei Wang <wei.w.w...@intel.com> --- xen/drivers/cpufreq/utility.c | 3 +++ xen/include/acpi/cpufreq/cpufreq.h | 14 ++ 2 files changed, 17 insertions(+) changes in v5: 1) delay the addition of the structures that are used in later patches. diff --git a/xen/d

[Xen-devel] [PATCH v5 8/9] x86/intel_pstate: support the use of intel_pstate in pmstat.c

2015-09-13 Thread Wei Wang
Add support in the pmstat.c so that the xenpm tool can request to access the intel_pstate driver. Signed-off-by: Wei Wang <wei.w.w...@intel.com> --- tools/libxc/xc_pm.c | 15 ++-- xen/drivers/acpi/pmstat.c | 179 +--- xen/include/public/sy

[Xen-devel] [PATCH v5 7/9] x86/intel_pstate: add a booting param to select the driver to load

2015-09-13 Thread Wei Wang
he failure loading of intel_pstate. Also, adding the intel_pstate booting parameter to xen-command-line.markdown. Signed-off-by: Wei Wang <wei.w.w...@intel.com> --- docs/misc/xen-command-line.markdown | 7 +++ xen/arch/x86/acpi/cpufreq/cpufreq.c | 9 ++--- xen/arch/

[Xen-devel] [PATCH v4 06/11][RESEND] x86/intel_pstate: APERF/MPERF feature detect

2015-06-29 Thread Wei Wang
. Signed-off-by: Wei Wang wei.w.w...@intel.com --- xen/arch/x86/acpi/cpufreq/cpufreq.c | 6 ++ xen/arch/x86/acpi/cpufreq/powernow.c | 6 ++ xen/arch/x86/cpu/common.c| 4 xen/include/asm-x86/cpufeature.h | 4 4 files changed, 12 insertions(+), 8 deletions(-) diff

[Xen-devel] [PATCH v4 07/11] x86/intel_pstate: the main boby of the intel_pstate driver

2015-06-25 Thread Wei Wang
as Linux intel_pstate), instead of 4 +$; 2) added a new header file, xen/include/asm-x86/cpufreq.h. Signed-off-by: Wei Wang wei.w.w...@intel.com --- xen/arch/x86/acpi/cpufreq/Makefile | 1 + xen/arch/x86/acpi/cpufreq/intel_pstate.c | 870 +++ xen/include/asm-x86

[Xen-devel] [PATCH v4 09/11] x86/intel_pstate: add a booting param to select the driver to load

2015-06-25 Thread Wei Wang
. Signed-off-by: Wei Wang wei.w.w...@intel.com --- docs/misc/xen-command-line.markdown | 7 +++ xen/arch/x86/acpi/cpufreq/cpufreq.c | 9 ++--- xen/arch/x86/acpi/cpufreq/intel_pstate.c | 6 ++ 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/docs/misc/xen-command

[Xen-devel] [PATCH v4 10/11] x86/intel_pstate: support the use of intel_pstate in pmstat.c

2015-06-25 Thread Wei Wang
Add support in the pmstat.c so that the xenpm tool can request to access the intel_pstate driver. v4 changes: 1) changed to use the internal_governor struct; 2) coding style change (indentation of gov_num++). Signed-off-by: Wei Wang wei.w.w...@intel.com --- tools/libxc/xc_pm.c | 4

[Xen-devel] [PATCH v4 02/11] x86/intel_pstate: add some calculation related support

2015-06-25 Thread Wei Wang
The added calculation related functions will be used in the intel_pstate.c. They are copied from the Linux kernel(commit 2418f4f2, f3002134, eb18cba7). v4 changes: 1) in commit message, kernel changed to Linux kernel 2) if-else coding style change. Signed-off-by: Wei Wang wei.w.w...@intel.com

[Xen-devel] [PATCH v4 05/11] x86/intel_pstate: relocate the driver register function

2015-06-25 Thread Wei Wang
Register the CPU hotplug notifier when the driver is registered, and move the driver register function to the cpufreq.c. v4 changes: 1) Coding style change (the position of ||). Signed-off-by: Wei Wang wei.w.w...@intel.com --- xen/drivers/cpufreq/cpufreq.c | 14 +++--- xen/include

[Xen-devel] [PATCH v4 06/11] x86/intel_pstate: APERF/MPERF feature detect

2015-06-25 Thread Wei Wang
Add support to detect the APERF/MPERF feature. Also, remove the identical code in cpufreq.c and powernow.c. v4 changes: 1) this is a new consolidated patch dealing with the APERF/MPERF feature detection. Signed-off-by: Wei Wang wei.w.w...@intel.com --- xen/arch/x86/acpi/cpufreq/cpufreq.c | 6

[Xen-devel] [PATCH v4 08/11] x86/intel_pstate: changes in cpufreq_del_cpu for CPU offline

2015-06-25 Thread Wei Wang
We change to NULL the cpufreq_cpu_policy pointer after the call of cpufreq_driver-exit, because the pointer is still needed in intel_pstate_set_pstate(). v4 changes: None. Signed-off-by: Wei Wang wei.w.w...@intel.com --- xen/drivers/cpufreq/cpufreq.c | 6 +++--- 1 file changed, 3 insertions

[Xen-devel] [PATCH v4 04/11] x86/intel_pstate: avoid calling cpufreq_add_cpu() twice

2015-06-25 Thread Wei Wang
cpufreq_add_cpu() is already called in the hypercall code path (the bottom of set_px_pminfo() and inside cpufreq_cpu_init()). So, we remove the redundant calling here. v4 changes: None. Signed-off-by: Wei Wang wei.w.w...@intel.com --- xen/drivers/cpufreq/cpufreq.c | 2 -- 1 file changed, 2

[Xen-devel] [PATCH v4 11/11] tools: enable xenpm to control the intel_pstate driver

2015-06-25 Thread Wei Wang
-by: Wei Wang wei.w.w...@intel.com --- tools/libxc/include/xenctrl.h | 14 - tools/libxc/xc_pm.c | 17 --- tools/misc/xenpm.c| 116 +- 3 files changed, 115 insertions(+), 32 deletions(-) diff --git a/tools/libxc/include

[Xen-devel] [PATCH v4 01/11] x86/acpi: add a common interface for x86 cpu matching

2015-06-25 Thread Wei Wang
Add a common interface for matching the current cpu against an array of x86_cpu_ids. Also change mwait-idle.c to use it. v4 changes: None. Signed-off-by: Wei Wang wei.w.w...@intel.com --- xen/arch/x86/cpu/common.c | 38 ++ xen/arch/x86/cpu/mwait-idle.c

[Xen-devel] [PATCH v4 00/11] Porting the intel_pstate driver to Xen

2015-06-25 Thread Wei Wang
values. The xenpm tool is also upgraded to support the intel_pstate driver. If intel_pstate is used, get-cpufreq-para displays percentage value based feedback. If the intel_pstate driver is not enabled, xenpm will work in the old style. Wei Wang (11): x86/acpi: add a common interface for x86 cpu

[Xen-devel] [PATCH v3 00/11] Porting the intel_pstate driver to Xen

2015-06-11 Thread Wei Wang
on percentage values. The xenpm tool is also upgraded to support the intel_pstate driver. If intel_pstate is used, get-cpufreq-para displays percentage value based feedback. If the intel_pstate driver is not enabled, xenpm will work in the old style. Wei Wang (11): x86/acpi: add a common interface for x86

[Xen-devel] [PATCH v3 02/11] x86/intel_pstate: add some calculation related support

2015-06-11 Thread Wei Wang
The added calculation related functions will be used in the intel_pstate.c. They are copied from the kernel(commit 2418f4f2, f3002134, eb18cba7). Signed-off-by: Wei Wang wei.w.w...@intel.com --- xen/include/asm-x86/div64.h | 72 + xen/include/xen

[Xen-devel] [PATCH v3 01/11] x86/acpi: add a common interface for x86 cpu matching

2015-06-11 Thread Wei Wang
Add a common interface for matching the current cpu against an array of x86_cpu_ids. Also change mwait-idle.c to use it. Signed-off-by: Wei Wang wei.w.w...@intel.com --- xen/arch/x86/cpu/common.c | 38 ++ xen/arch/x86/cpu/mwait-idle.c | 28

[Xen-devel] [PATCH v3 04/11] x86/intel_pstate: relocate the driver register function

2015-06-11 Thread Wei Wang
Register the CPU hotplug notifier when the driver is registered, and move the driver register function to the cpufreq.c. Signed-off-by: Wei Wang wei.w.w...@intel.com --- xen/drivers/cpufreq/cpufreq.c | 15 --- xen/include/acpi/cpufreq/cpufreq.h | 28

[Xen-devel] [PATCH v3 03/11] x86/intel_pstate: add new policy fields and a new driver interface

2015-06-11 Thread Wei Wang
policy. The __cpufreq_set_policy needs to be intercepted to use the setpolicy driver if it exists. The perf_limts struct is included in the per-CPU policy struct, so that each CPU can be managed individually by the xenpm tool. Signed-off-by: Wei Wang wei.w.w...@intel.com --- xen/drivers/cpufreq

[Xen-devel] [PATCH v3 05/11] x86/intel_pstate: avoid calling cpufreq_add_cpu() twice

2015-06-11 Thread Wei Wang
cpufreq_add_cpu() is already called in the hypercall code path (the bottom of set_px_pminfo() and inside cpufreq_cpu_init()). So, we remove the redundant calling here. Signed-off-by: Wei Wang wei.w.w...@intel.com --- xen/drivers/cpufreq/cpufreq.c | 2 -- 1 file changed, 2 deletions(-) diff

[Xen-devel] [PATCH v3 06/11] x86/intel_pstate: the main boby of the intel_pstate driver

2015-06-11 Thread Wei Wang
the limits via sysfs (limits.min_sysfs_pct/max_sysfs_pct). In Xen, the policy-limits.min_perf_pct/max_perf_pct acts as the transit station. A user interacts with it via xenpm. Signed-off-by: Wei Wang wei.w.w...@intel.com --- xen/arch/x86/acpi/cpufreq/Makefile | 1 + xen/arch/x86/acpi

[Xen-devel] [PATCH v3 07/11] x86/intel_pstate: changes in cpufreq_del_cpu for CPU offline

2015-06-11 Thread Wei Wang
cpufreq_cpu_policy is used in intel_pstate_set_pstate(), so we change to NULL it after the call of cpufreq_driver-exit. Otherwise, a calltrace will show up on your screen due to the reference of a NULL pointer when you power down the system. Signed-off-by: Wei Wang wei.w.w...@intel.com --- xen

[Xen-devel] [PATCH v3 08/11] x86/intel_pstate: add a booting param to select the driver to load

2015-06-11 Thread Wei Wang
loading of intel_pstate. Signed-off-by: Wei Wang wei.w.w...@intel.com --- xen/arch/x86/acpi/cpufreq/cpufreq.c | 8 +--- xen/arch/x86/acpi/cpufreq/intel_pstate.c | 6 ++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/xen/arch/x86/acpi/cpufreq/cpufreq.c b/xen/arch/x86

[Xen-devel] [PATCH v3 09/11] docs/misc: add intel_pstate booting parameter to the doc

2015-06-11 Thread Wei Wang
Adding the intel_pstate booting parameter to xen-command-line.markdown. Signed-off-by: Wei Wang wei.w.w...@intel.com --- docs/misc/xen-command-line.markdown | 7 +++ 1 file changed, 7 insertions(+) diff --git a/docs/misc/xen-command-line.markdown b/docs/misc/xen-command-line.markdown index

[Xen-devel] [PATCH v3 10/11] x86/intel_pstate: support the use of intel_pstate in pmstat.c

2015-06-11 Thread Wei Wang
Add support in the pmstat.c so that the xenpm tool can request to access the intel_pstate driver. Signed-off-by: Wei Wang wei.w.w...@intel.com --- tools/libxc/xc_pm.c| 4 +- xen/drivers/acpi/pmstat.c | 130 +++-- xen/include/acpi/cpufreq

[Xen-devel] [PATCH v3 11/11] tools: enable xenpm to control the intel_pstate driver

2015-06-11 Thread Wei Wang
The intel_pstate driver receives percentage values to set the performance limits. This patch adds interfaces to support the input of percentage values to control the intel_pstate driver. Also, the get-cpufreq-para is modified to show percentage based feedback info. Signed-off-by: Wei Wang wei.w.w

[Xen-devel] [PATCH v2 2/9] x86/intel_pstate: add some calculation related support

2015-05-13 Thread Wei Wang
The added calculation related functions will be used in the intel_pstate.c. Signed-off-by: Wei Wang wei.w.w...@intel.com --- xen/include/asm-x86/div64.h | 68 + xen/include/xen/kernel.h| 30 2 files changed, 98 insertions

[Xen-devel] [PATCH v2 1/9] x86/acpi: add a common interface for x86 cpu matching

2015-05-13 Thread Wei Wang
Add a common interface for matching the current cpu against an array of x86_cpu_ids. Also change mwait-idle.c to use it. Signed-off-by: Wei Wang wei.w.w...@intel.com --- xen/arch/x86/cpu/common.c | 39 +++ xen/arch/x86/cpu/mwait-idle.c | 30

[Xen-devel] [PATCH v2 4/9] x86/intel_pstate: add new policy fields and a new driver interface

2015-05-13 Thread Wei Wang
policy. The __cpufreq_set_policy needs to be intercepted to use the setpolicy driver if it exists. Signed-off-by: Wei Wang wei.w.w...@intel.com --- xen/drivers/cpufreq/utility.c | 5 + xen/include/acpi/cpufreq/cpufreq.h | 11 +++ 2 files changed, 16 insertions(+) diff --git a/xen

[Xen-devel] [PATCH v2 3/9] x86/cpu_hotplug: add the unregister_cpu_notifier function to support CPU hotplug

2015-05-13 Thread Wei Wang
The unregister notifier function is needed to support cpu hotplug. Signed-off-by: Wei Wang wei.w.w...@intel.com --- xen/common/cpu.c | 7 +++ xen/include/xen/cpu.h | 1 + 2 files changed, 8 insertions(+) diff --git a/xen/common/cpu.c b/xen/common/cpu.c index 47e8b5b..508cee5 100644

[Xen-devel] [PATCH v2 5/9] x86/intel_pstate: relocate the driver register/unregister function

2015-05-13 Thread Wei Wang
Register/unregister the CPU hotplug notifier when the driver is registered, and move the driver register/unregister function to the cpufreq.c. Signed-off-by: Wei Wang wei.w.w...@intel.com --- xen/drivers/cpufreq/cpufreq.c | 27 +++ xen/include/acpi/cpufreq/cpufreq.h

[Xen-devel] [PATCH v2 6/9] x86/intel_pstate: the main boby of the intel_pstate driver

2015-05-13 Thread Wei Wang
-off-by: Wei Wang wei.w.w...@intel.com --- xen/arch/x86/acpi/cpufreq/Makefile | 1 + xen/arch/x86/acpi/cpufreq/intel_pstate.c | 852 +++ xen/include/acpi/cpufreq/cpufreq.h | 6 + xen/include/asm-x86/acpi.h | 2 + xen/include/asm-x86

[Xen-devel] [PATCH v2 7/9] x86/intel_pstate: add a booting param to select the driver to load

2015-05-13 Thread Wei Wang
to the failure loading of intel_pstate. Signed-off-by: Wei Wang wei.w.w...@intel.com --- xen/arch/x86/acpi/cpufreq/cpufreq.c | 9 ++--- xen/arch/x86/acpi/cpufreq/intel_pstate.c | 21 +++-- xen/include/asm-x86/acpi.h | 2 ++ 3 files changed, 27 insertions(+), 5

[Xen-devel] [PATCH v2 8/9] x86/intel_pstate: support the use of intel_pstate in pmstat.c

2015-05-13 Thread Wei Wang
Add support in the pmstat.c so that the xenpm tool can request to access the intel_pstate driver. Signed-off-by: Wei Wang wei.w.w...@intel.com --- tools/libxc/xc_pm.c | 4 +- xen/drivers/acpi/pmstat.c | 106 +++- xen/include/public/sysctl.h

[Xen-devel] [PATCH v2 9/9] x86/intel_pstate: enable xenpm to control the intel_pstate driver

2015-05-13 Thread Wei Wang
The intel_pstate driver receives percentage values to set the performance limits. This patch adds interfaces to support the input of percentage values to control the intel_pstate driver. Also, the get-cpufreq-para is modified to show percentage based feedback info. Signed-off-by: Wei Wang wei.w.w

[Xen-devel] [PATCH 1/9] x86/acpi: add a common interface for matching the current cpu against an array of x86_cpu_ids

2015-04-23 Thread Wei Wang
Re-organize the cpu matching code in the mwait-idle.c, so that it can be re-used in the intel_pstate.c. Signed-off-by: Wei Wang wei.w.w...@intel.com --- xen/arch/x86/cpu/common.c | 39 +++ xen/arch/x86/cpu/mwait-idle.c | 30

[Xen-devel] [PATCH 5/9] x86/intel_pstate: relocate the driver register/unregister function

2015-04-23 Thread Wei Wang
Register/unregister the CPU hotplug notifier when the driver is registered, and move the driver register/unregister function to the cpufreq.c. Signed-off-by: Wei Wang wei.w.w...@intel.com --- xen/drivers/cpufreq/cpufreq.c | 27 +++ xen/include/acpi/cpufreq/cpufreq.h

[Xen-devel] [PATCH 2/9] x86/intel_pstate: add some calculation related support

2015-04-23 Thread Wei Wang
The added calculation related functions will be used in the intel_pstate.c. Signed-off-by: Wei Wang wei.w.w...@intel.com --- xen/include/asm-x86/div64.h | 68 + xen/include/xen/kernel.h| 30 2 files changed, 98 insertions

[Xen-devel] [PATCH 4/9] x86/intel_pstate: add new policy fields and a new driver interface

2015-04-23 Thread Wei Wang
policy. The __cpufreq_set_policy needs to be intercepted to use the setpolicy driver if it exists. Signed-off-by: Wei Wang wei.w.w...@intel.com --- xen/drivers/cpufreq/utility.c | 5 + xen/include/acpi/cpufreq/cpufreq.h | 10 ++ 2 files changed, 15 insertions(+) diff --git a/xen

[Xen-devel] [PATCH 6/9] x86/intel_pstate: the main boby of the intel_pstate driver

2015-04-23 Thread Wei Wang
-off-by: Wei Wang wei.w.w...@intel.com --- xen/arch/x86/acpi/cpufreq/Makefile| 1 + xen/arch/x86/acpi/cpufreq/intel_pstate.c | 843 ++ xen/include/acpi/cpufreq/cpufreq.h| 6 + xen/include/acpi/cpufreq/processor_perf.h | 1 + xen/include/asm-x86

[Xen-devel] [PATCH 7/9] x86/intel_pstate: add a booting param to select the driver to load

2015-04-23 Thread Wei Wang
By default, the intel_pstate driver is loaded.a If intel_pstate=disable is added to the Xen booting param list, the old pstate driver will be loaded. Signed-off-by: Wei Wang wei.w.w...@intel.com --- xen/arch/x86/acpi/cpufreq/cpufreq.c | 9 ++--- xen/arch/x86/acpi/cpufreq

[Xen-devel] [PATCH 8/9] x86/intel_pstate: support the use of intel_pstate in pmstat.c

2015-04-23 Thread Wei Wang
Add support in the pmstat.c so that the xenpm tool can request to access the intel_pstate driver. Signed-off-by: Wei Wang wei.w.w...@intel.com --- tools/libxc/xc_pm.c | 8 +++ xen/drivers/acpi/pmstat.c | 57 +++-- xen/include/public/sysctl.h

[Xen-devel] [PATCH 3/9] x86/cpu_hotplug: add the unregister_cpu_notifier function to support CPU hotplug

2015-04-23 Thread Wei Wang
The unregister notifier function is needed to support cpu hotplug. Signed-off-by: Wei Wang wei.w.w...@intel.com --- xen/common/cpu.c | 7 +++ xen/include/xen/cpu.h | 1 + 2 files changed, 8 insertions(+) diff --git a/xen/common/cpu.c b/xen/common/cpu.c index 47e8b5b..508cee5 100644

[Xen-devel] [PATCH 9/9] x86/intel_pstate: enable xenpm to control the intel_pstate driver

2015-04-23 Thread Wei Wang
The intel_pstate driver receives percentage values to set the performance limits. This patch adds interfaces to support the input of percentage values to control the intel_pstate driver. Also, the get-cpufreq-para is modified to show percentage based feedback info. Signed-off-by: Wei Wang wei.w.w

[Xen-devel] [PATCH 0/9] Porting the intel_pstate driver to Xen

2015-04-23 Thread Wei Wang
: enabled Wei Wang (9): x86/acpi: add a common interface for matching the current cpu against an array of x86_cpu_ids x86/intel_pstate: add some calculation related support x86/cpu_hotplug: add the unregister_cpu_notifier function to support CPU hotplug x86/intel_pstate: add new policy