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
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
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
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
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
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
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 +
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/
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
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
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
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
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
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
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
.
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
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
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/
.
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
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
.
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
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
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
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
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
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
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
-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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
-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
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
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
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
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
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
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
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
-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
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
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
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
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
: 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
61 matches
Mail list logo